Using JQuery with Apex
Hello, I have a question for those of you who are using JQuery with Apex:
This is my HTML header:
<script type="text/javascript" src="&WORKSPACE_IMAGES.jsapi.js"></script>
<script type="text/javascript">
google.load("jquery", "1.3.2");
</script>
The problem is that JQuery still loads from Google and since the Company Intranet has the cookies blocked the privacy icon appars in IE. I am sure somebody will one day notice this and it's gonna be a "big" problem.
I suspect that something must be changed below to make the privacy icon dissapear,
if (!window['google']) {
window['google'] = {};
if (!window['google']['loader']) {
window['google']['loader'] = {};
google.loader.ServiceBase = 'http://www.google.com/uds';
google.loader.GoogleApisBase = 'http://ajax.googleapis.com/ajax';
google.loader.ApiKey = 'notsupplied';
google.loader.KeyVerified = true;
google.loader.LoadFailure = false;
google.loader.Secure = false;
google.loader.GoogleLocale = 'www.google.com';
Any ideas how to change this code and if this is going to work?
George
Hi,
If you do not like use jQuery from Google, discard your code
<script type="text/javascript" src="&WORKSPACE_IMAGES.jsapi.js"></script>
<script type="text/javascript">
google.load("jquery", "1.3.2");
</script>and use e.g. this guide to integrate jQuery to your Apex apps
http://www.oracleapplicationexpress.com/tutorials/66-integrating-jquery-into-apex
Br,Jari
Similar Messages
-
File uploads using jQuery with jquery.fileupload.js fails in Firefox over SSL
Please see the link below where I originally posted the question.
http://stackoverflow.com/questions/27792614/file-uploads-using-jquery-with-jquery-fileupload-js-fails-in-firefox-over-sslThanks. In my estimation that is exactly the issue. But that doesn't help with a resolution.
The actual file size: 945,991 bytes
If Firefox is miscalculating the length (in Safari/Chrome 945991 and 946241 in Firefox), then Firefox is reporting erroneously and should be raised as a bug in Firefox, would you agree? -
I am using Apex 4.1
I am trying to animate a list, so wanted to use JQuery
So I edited my page and placed the following in Javascript box.
$(function() {
$("#MAIN").show("slide", { direction: "up" }, 500);
}); I gave my list region the id MAIN.
Unfortunately the animation does not work.
I believe the Jquery file required to make this work is jQuery UI Effects, which I believe is loaded automatically in Apex 4
or am I wrong
Cheers
GusGus C wrote:
I have now placed the following in to my page template
<script src="#IMAGE_PREFIX#libraries/jquery-ui/1.8.14/ui/minified/jquery.ui.effects.core.js" type="text/javascript"></script>
<script src="#IMAGE_PREFIX#libraries/jquery-ui/1.8.14/ui/minified/jquery.ui.effects.slide.js" type="text/javascript"></script>Still nothing
GusThe problem is in your paths that has file names spelled wrongly and also the point you are loading the files is before the *#HEAD#* tag, these files should be loaded after the *#HEAD#* tag because the actual jQuery file is loaded at that point by APEX
You should load the files with these names
<script src="#IMAGE_PREFIX#libraries/jquery-ui/1.8.14/ui/minified/jquery.effects.core.min.js" type="text/javascript"></script>
<script src="#IMAGE_PREFIX#libraries/jquery-ui/1.8.14/ui/minified/jquery.effects.slide.min.js" type="text/javascript"></script>Check your app/page now
Edited by: VC on Jun 21, 2012 9:22 AM -
Rating a List Item using jquery with out using User profile service
Hi,
I dont have access to Central admin and i was not not able to enable USer profile service.
can i rate a list item in Sharepoint 2010 using any jquery plugin
i got the link
http://blogs.msdn.com/b/carloshm/archive/2009/08/24/jquery-rating-in-sharepoint-lists.aspx
But i am not able to find any plugin in it.
Please advice.
Thnaks,
PallaviHi,
According to your post, my understanding is that you wanted to rate a list item using JQuery in SharePoint 2010.
The link you had posted above is for SharePoint 2007.
You can refer to the following articles which about using the JQuery to call the rating service.
http://blog.dennus.net/2011/08/09/using-spservices-and-jquery-to-include-social-rating-control-on-_layouts-page/
https://www.habaneroconsulting.com/insights/Calling-the-Rating-Service-using-jQuery-in-SharePoint-2010-Part-1-of-2#.UxbQxvmSz6k
You can also use the tool of the CodePlex to achieve it.
http://sptoolbasket.codeplex.com/
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Using alerts with ApEx 2.2
I want to use alerts from an ApEx application (after I insert to a table for example), the problem is that alerts can only be run as the apps account.
Is there a way to make alerts work?The question was misunderstood.
Because Oracle apps uses a different security scheme then apex you'll really have to code for it within your alert. Any user that updates/inserts/deletes on the table you would base your alert on will fire the trigger not just "apps" user. However because the apex users are not apps and not in fnd_user table the transaction would get recorded as anonymous user (user_id = -1). Probably the best you could do would be put some "if" statements in your alert to check for user not found in fnd_user then make a v('APP_USER') call to get the apex user_name. Because your dealing with two different security schemes you can't do anything but work around's.
Todd -
Hi All,
I'm new to Ajax and I'm trying to create an alert that prompts the user if the information that they entered into a form results in a primary key violation. The problem is that the application procedure that I created is not returning a value when it should be, because I am not receiving the alert when I violate a primary key...I don't know what I am doing wrong. Any help would be much appreciated.
My javascript code is as follows:
function checkNull(){
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=P3PK',0);
get.add('P3_MEMIMPNUM',$x('P3_MEMIMPNUM').value);
get.add('P3_ACTIONDATE',$x('P3_ACTIONDATE').value);
get.add('P3_ACTION',$x('P3_ACTION').value);
ajaxresult = get.get();
if (ajaxresult)
alert("Primary Key Violation!");
get = null;
The application process P3PK is processed On Demand and the PL/SQL Block is as follows:
DECLARE
str_memimpnum varchar2(15);
BEGIN
SELECT memimpnum
INTO str_memimpnum
FROM tblaction
WHERE memimpnum = :P3_MEMIMPNUM AND
actiondate = :P3_ACTIONDATE AND
action = :P3_ACTION;
HTP.prn(str_memimpnum);
END;
Finally, the save button is set to redirect to a URL and the URL target is as follows:
javascript:onclick=checkNull();
Note: There is more to the checkNull function, but I only included the section that I felt was applicable to this issue.
Thanks in advance!Hello,
Most likley it's an issue with your OnDemand Process.
Change your alert to
alert(ajaxresult);
And then in your process change it to with a htp.prn('Hello World'); to make sure your calling the right thing.
Then output the item values.
htp.prn(:P3_MEMIMPNUM);
Just work your way through it.
Also you can easily debug these returns using Firebug addon in Firefox. http://www.getfirebug.com
then
Regards,
Carl
blog : http://carlback.blogspot.com/
apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5 -
How to use Jquery with dreamweaver?
I downloaded the Jquery directory and tried linking it with <script src="jquery-1.11.0.js"></script> but my jquery wont work.
My Jquery looks like this.
$(document).ready(function(){
$('.pull-me ').click(function(){
$('.panel').slideToggle('slow')
Please help!Copy and paste the following into a new document, save it as test.html and view in your favourite browser.
<!doctype html>
<html>
<head>
<style>
.panel, .pull-me {
padding:5px;
text-align:center;
background-color:#e5eecc;
border:solid 1px #c3c3c3;
.panel {
padding:50px;
display:none;
</style>
</head>
<body>
<div class="pull-me">Click to slide the panel down or up</div>
<div class="panel">Hello world!</div>
<div class="pull-me">Click to slide the panel down or up</div>
<div class="panel">Hello world!</div>
<div class="pull-me">Click to slide the panel down or up</div>
<div class="panel">Hello world!</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
$(document).ready(function () {
$(".pull-me").click(function () {
$(this).next('.panel').slideToggle("slow");
</script>
</body>
</html> -
I need some help...
I need some examples using port(serial, usb or paralelo) any execise please send it... to [email protected]
i want do a lot of things with it... or if you know where are there examples on the web.. please tell me
Thank u,HTML is NOT really meant to do ANYTHING with the ports, you would need to look at Java or another higher level language.. What exactly ar eyou looking to do with the Ports?
Also, isn't this a duplicate of your other posting from today? Help in Apex3.2
Please try not to double post about the same topic..
Thank you,
Tony Miller
Webster, TX -
Problems using Ajax with Apex 3
Hi folks,
I've got a client website biult with Application Express on a Oracle Database System. I attached some Ajax funtionallities on fields and there are standard Interactive Reports which are biult on Ajax as well.
When I try to access the site normally (http) there are occuring no problems at all. But when I try to access the site via https, the Ajax functionallity doesn't work right.
For example: There is a field named P37_STD_ERFASSTER_WERT which has an onblur javascript event: onblur="viertelstunde_runden(this)". This calls the following javascript function.
The Java Script code calls an Application Process which calls a PL/SQL function on my database.
JavaScript code:
+function viertelstunde_runden(obj) {
var std = obj.value;
std = std.replace(".", ",");
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=rundStdErfassterWert',0);
get.add('P37_STD_ERFASSTER_WERT', std);
result = get.get();
obj.value = result;
}+
So I'm filling '2.4' into the field. After the Process i get the following response: "<html><body><p>2,5</p></body></html>". Does somebody have a clue, why the response is packed into the html tags?
As a proxy I've got an Apache2 server on a Ubuntu Server 8.1. Is there something wrong defined in the Apache2 Config?
Thanks for all tips and other helping responses.
Greetings
SandroHi Roel,
Thx for your quick answer.
The App-Process looks like this:
declare
l_std_erfasster_wert number;
begin
l_std_erfasster_wert := br_stunden.runde_viertelstunde(v('P37_STD_ERFASSTER_WERT'));
htp.prn(l_std_erfasster_wert);
end;
And the PL/SQL Procedure on the DB like this:
-- erfasste Stunden auf Viertelstunde-genau runden
FUNCTION runde_viertelstunde (
i_std_erfasster_wert IN stunden.std_erfasster_wert%TYPE
RETURN NUMBER
IS
l_std NUMBER;
l_min NUMBER;
BEGIN
l_std := TRUNC (i_std_erfasster_wert);
--Rest von Stunden sind Hundertstel-Minuten
l_min := (i_std_erfasster_wert - l_std) * 100;
--Hundertselminduten runden auf 25/50/75 oder 100
l_min := ROUND (l_min / 25) * 25;
--wenn Minuten aufgerundet auf volle Stunde (100), gibt es eine Stunde mehr
--und Minuten sind 0
IF l_min = 100
THEN
l_std := l_std + 1;
l_min := 0;
END IF;
RETURN l_std + (l_min / 100);
END runde_viertelstunde;
:Sandro -
I have seen examples of using dbms_resource_manager with Apex where Apex_public_user has its consumer group switched according to some rule. Trouble is many hundreds of apex users connect using this single username.
What I wish to know is it possible to perform this at a finer level of granularity, ie at individual Apex user level.
If so I control the resources available to Apex users individualy.
Is this even a sensible thing to do? Criticisms are welcome.Hi Tony,
I would be interesting to see any example.
I posted my question before: Creating interactive gantt chart in apex 4
but no one give any answer yet. -
Using wwv_flow_load_excel_data and apex collections
Hi!
I have a question regarding very popular subject: parsing csv files.
I made one application, which takes csv file, parses it using Vicas's code, presents validation report to the user, and finally allows to submit data into the datatable.
Everything works fine, but I don't like this solution. CSV can cause problems when quotation mark is used inside, when numbers have 1000 separators and so on.
Besides that, I have to add some code to validate column types. Lot of mess.
The solution incorporated into apex tool, called "Data Load/Unload" looks much better. It would be nice to use that inside apex application adding some business validations, and hardcoding table and columns names.
I have seen wwv_flow_load_excel_data package and I'm wondering if it is possible to use load_excel_data procedure to perform that task?
Is there any documentation to that package?
Somebody heard about using that with apex collections (to avoid a need of temporary table)?
Regards,
ArekAnd if somebody else is looking for "ApEx" forum:
Oracle Application Express (APEX) -
HP Quality Center Sprinter with APEX
Is anyone using this with APEX? HP says they aren't certified with this environment on their testing tools. They said that Quick Test Professional can be made to work but that Sprinter may not be able to.
You'll need some form of access to get a proper solution in place, one of which would be 2010 Business Connectivity Services(BCS)
http://msdn.microsoft.com/en-us/magazine/ee819133.aspx
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
Using jQuery Ajax Call within ApEx - How?
Hi,
I was just wondering if it's possible to replace Oracle ApEx way of performing ajax calls with a jQuery Ajax call instead - just curious if I can call an On Demand process using jQuery Ajax means?
Any examples would be much appreciated as unsure how to perform the equivalent process with jQuery.
Thanks.
Tony.I guess I found the solution for region pull for IR report
using the syntax
gReport = new apex.worksheet.ws('');
in the js script below.
When I pull the IR region from page8 into page1, I found that the IR toolbar's html/Js scripts are missing in Page1
and thats why the IR toolbar functions were not working, issuing "gReport is null or not an object" error.
But when I added the
gReport = new apex.worksheet.ws('');
syntax in the JS script below, the toolbar functions work using the p_arg_value.
<script>
function display_report(p1) {
$s('P1_SELECTED_NODE',p1);
$.ajax({
type: "POST",
url: "wwv_flow.show",
data: {
p_flow_id : $v('pFlowId'),
p_instance : $v('pInstance'),
p_flow_step_id : "4",
p_request : "SUBMIT",
p_arg_name : 'P4_SELECTED_NODE',
p_arg_value : $v('P1_SELECTED_NODE')
dataType: "html",
success: function(data){
var startTag = '<apex4ajax>';
var endTag = '</apex4ajax>';
var start = data.indexOf(startTag);
if (start > 0) {
data = data.substring(start+startTag.length);
var end = data.indexOf(endTag);
data = data.substring(0,end);
$("#EMP_REPORT").html(data);
//Workaround to make the report "pagination" and "order by" work
$x_Value('pFlowStepId', "4");
gReport = new apex.worksheet.ws('');
//gValid = new apex.validation.v();
//gReport.navigate.paginate('pgR_min_row=51max_rows=50rows_fetched=50');
//gReport.controls.reset();
</script> -
Anyone used PL/FLOW with APEX in Oracle 11g?
Greetings.
I'm trying to find out if any of you have successfully used SourceForge's PL/FLOW with APEX in an 11g environment. References to PL/FLOW seem to be limited to 9i and I need to have some assurance that it would be compatible in a more updated setting.
And do you have any advice on installation and use cases?
http://plflow.sourceforge.net/
Thanks very much!
ChrisHi Chris,
I've used it in a 10g DB without any problems, I have no reason to suspect (without trying it) that it wouldn't work in 11g.
Did you try it, did you have some problems?
John
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! -
Using JQuery deferred objects with JSOM
Hi,
I have written following query to execute a JSOM call using Jquery Deferred objects.
But It is not working. I am getting following error:
Uncaught TypeError: Cannot read property 'get_current' of undefined . Can anyone help what is wrong here?
<script type="text/javascript">
ExecuteOrDelayUntilScriptLoaded(getrelatedProjects, "sp.js");
function getrelatedProjects() {
var dfd = $.Deferred(function () {
var clientcontext = new SP.ClientContext.get_current();
var list = clientContext.get_web().get_lists().getByTitle("Roadmap");
var camlQuery = new SP.CamlQuery();
this.collListItem = list.getItems(camlQuery);
clientContext.load(collListItem);
context.executeQueryAsync(
function () {
var listItemCollection = list.getItems(camlQuery);
dfd.resolve(listItemCollection);
function () {
dfd.reject(args.get_message());
return dfd.promise();
getrelatedProjects().done(function (listColl) {
var listItemEnumerator = listColl.getEnumerator();
// do something with the list
while (listItemEnumerator.moveNext()) {
var oListItem = listItemEnumerator.get_current();
listItemInfo += '\nID: ' + oListItem.get_id() +
'\nTitle: ' + oListItem.get_item('Title');
alert(listItemInfo.toString());
</script>
I have been trying for help since one week on this issue. Here is my requirement. Can someone just help me modify this code. All I am looking for is to execute getStatus(project) synchronously.
// JavaScript source code
var roadmapList;
var collListItem;
var dashboardList;
var statusItem;
ExecuteOrDelayUntilScriptLoaded(loadRoadMap, "sp.js");
function loadRoadMap() {
var currentCtx = SP.ClientContext.get_current();
var currentWeb = currentCtx.get_web();
this.roadmapList = currentWeb.get_lists().getByTitle('Roadmap');
var camlQuery = new SP.CamlQuery();
this.collListItem = roadmapList.getItems(camlQuery);
currentCtx.load(collListItem);
currentCtx.executeQueryAsync(
Function.createDelegate(this, this.onQuerySucceeded),
Function.createDelegate(this, this.onQueryFailed)
function onQuerySucceeded(sender, args) {
var listItemInfo = '';
var listItemEnumerator = collListItem.getEnumerator();
while (listItemEnumerator.moveNext()) {
//alert("Success");
var oListItem = listItemEnumerator.get_current();
var projectUrl = oListItem.get_item('ProjectURL').get_url();
listItemInfo += '<tr><td>' + oListItem.get_item('Roadmap_x0020_Project')
+ '</td><td>' + getStatus(projectUrl) + '</td></tr>';
$('#statusTable').append($(listItemInfo));
function onQueryFailed(sender, args) {
alert('Request failed. ' + args.get_message() +
'\n' + args.get_stackTrace());
function getStatus(project) {
var crossSiteContext = new SP.ClientContext("http://myanothersite.com/it/");
var crossSiteWeb = crossSiteContext.get_web();
this.dashboardList = crossSiteWeb.get_lists().getByTitle('Dashboard');
var projectQuery = new SP.CamlQuery();
projectQuery.set_viewXml("<View><Query><Where><Eq><FieldRef
Name=\'Project\'/>" +
"<Value Type=\'URL\'>" + project + "</Value></Eq></Where></Query>"
+
"<RowLimit>1000</RowLimit></View>");
this.statusItem = dashboardList.getItems(projectQuery);
crossSiteContext.load(statusItem);
crossSiteContext.executeQueryAsync(
Function.createDelegate(this, this.onStatusQuerySucceeded),
Function.createDelegate(this, this.onStatusQueryFailed)
function onStatusQuerySucceeded(sender, args) {
var projectItemInfo = '';
var projectItemEnumerator = statusItem.getEnumerator();
while (projectItemEnumerator.moveNext()) {
var curstatusItem = projectItemEnumerator.get_current();
projectItemInfo += '\nID: ' + curstatusItem.get_id() +
'\nStatus: ' + curstatusItem.get_item('Project_x0020_Status').Label;
function onStatusQueryFailed(sender, args) {
alert('Request failed. ' + args.get_message() +
'\n' + args.get_stackTrace());
Maybe you are looking for
-
Iphone setting for video composite out
How can I set my Iphone in order to see composite video out; for beamer or for LCD TV
-
Here's the situation; 4402 controller (2 actually), AP-manager and manager in vlan 1, untagged, native vlan of trunked switchport set to 1. Not using LAG at this time. See access points, so that works (DHCP in VLAN 1). Got 3 additional data VLAN's. C
-
SAP MDM-GDS repository structure
Hi, Does anybody have any input or knowledge of SAP's direction regarding repository structures for MDM and GDS now that they've begun integrating the functions into the MDM solution the offer? At present, whilst the GDS Console is basically just acc
-
Graphics card issue recognition issue
I purhcased the 15", 16G, i7 ect. Standard, no upgrades. On the site it says it has the Intel Iris graphics card, AS WELL as the NIVIDIA Geforce, but when I go to "about this system" it lists as the Iris card. Is this just due to the automatic graphi
-
How to counter data skips while acquiring using LabView
Dear enthusiasts: I am using PCI-6031E measurement hardware and a self built LabView program to acquire data from a mp3 player. I am using AI configure, AI start and AI clear(Labview commands) in a loop so that buffer is cleared after each second(say