PL/SQL Javascript Function Call

Can anyone offer some help on this? I am attempting to get a javascript tool tip to work on an application I am developing. I have developed a line calendar using PL/SQL outputting HTML. When I embed a javascript function into my PL/SQL htp.p function, the javascript appears to go a little crazy. Here is an example of my code:
"htp.p('<td onMouseover="ddrivetip("Yahoos Site", "yellow", 250)"
onMouseout="hideddrivetip()">Yahoo</td>')
I have tried a few iterations, using different javascript, and I always get the same result. The double quotes used in the onMouseover and onMouseout function calls are a result of PL/SQL not liking single quotes. The entire code for the tooltip can be found on dynamic drives page:
http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm
The CSS and javascript code is placed as appropriate in the HTML page header. Am I missing something on the htp.p command?
Message was edited by:
jason97m
Message was edited by:
jason97m

This post covers it well.
http://inside-apex.blogspot.com/2007/08/using-tooltips-in-oracle-apex.html
Good luck.
Brian

Similar Messages

  • Javascript function call from PL/SQL block

    Hello,
    I am writing this pl/sql block that has checkbox and onselect, it calls javascript function.
    I defined javascript function in page header, even though I get error that says function is not defined.
    Please help.
    Thank you,
    H.

    I got it resolved...!!!

  • JavaScript Function Calls it is called twice only when add the component

    Hi,
    I am developing a SAP Design Studio Extension and I noticed that when I add the component on Application, SAP Design Studio calls the JavaScript SDK Functions twice only when I drag and drop the component.
    I found out about this just put an alert message in which JavaScript Function (init, beforeUpdate and afterUpdate).
    Is it ok to work this way?
    I am really curious if anyone else has come across this issue.
    Thank you,
    Fabio Almeida

    Hi Fabio,
    Yes, there does appear to be an issue with SDK component functions being called twice.  Mike Howles has implemented a workaround in this Toolbar example code. Refer to the code in the this.init function at the end.
    Regards,
    Mustafa.

  • Flash file dissapears on JavaScript function call in IE

    I am not quite sure what is going on, and I have tried for
    several days to get this fixed. I can't find much on how to fix
    this except for the fact that the bug exists. In IE6 (on Windows
    98SE, 2000, and XP), the flash file disappears after I make a call
    to a JavaScript function. I am currently using the JavaScript
    gateway, but it also exhibits this behavior when I use
    getURL("javascript:"). I am using SWFObject, but it still happens
    when I put the <OBJECT> and <EMBED> tags in manually.
    It did not start doing this until about a week ago. Does anyone
    have any idea of what is going on and how I can fix this? The link
    to my page is:
    www.SeeMySites.net/index.php?flash=true.
    Right now I only have Flash enabled for non-IE browsers.

    Never mind - I found out what the problem is. It's the latest
    version of SWFObject. Once I reverted to an older version, the
    problem disappeared. Now to go report this to the creator... I
    reverted to 1.4.2 (from 1.4.4).

  • Javascript function call

    i am writing a jsp code, where i have put 2 functions in jscript, lets say f1() and f2(). I need to call f1() only once in the start of the program, while i have to put the second function f2() in a loop after that, lets say 100 times.
    I dont know how to call them seperately in the body (i am familiar with the <body onload = "f1()'> but am not able to solve my problem.
    Also is it possible that i put a thread in the f2() loop, as f2() is constantly updating some values while preserving the immediately previous values and i want them to be displayed on the screen. I guess threads would be the best solutions. Any suggestions to how to put them.
    Thanks
    Anuj

    Cross-posted here: http://forum.java.sun.com/thread.jsp?thread=415737&forum=45&message=1835945
    (WHY can't you guys figure out how to just post a link instead of duplicating the question and thus potentially waste people's time duplicating answers?)

  • Calling Javascript function from PL/SQL Page Process

    Hi All,
    So far I have seen many threads that answered the question: Calling a PL/SQL from a Javascript function. I would like to know if it's posiible to do the reverse process as follows:
    DECLARE
       v_name APPLICANTS.NAME%Type;
       v_surname APPLICANTS.SURNAME%Type;
       v_idNumber APPLICANTS.ID_NUMBER%Type;
    BEGIN
       select name, surname
       into v_name, v_surname
       from APPLICANTS
       where id_number = :P2_ID_NUMBER;
       //Javascript function call Syntax is what i'd like find out
       onchange="javascript:show_Name(v_name,v_surname);";
    EXCEPTION
       WHEN OTHERS
       THEN
       onchange="javascript:show_Exception(v_name,v_surname);";
    END;& Javascript function to shiow applicant's details is:
    function show_Name(item1,item2){
       alert('Applicant's Name is: '  + item1 + ' & Surname is: ' + item2);
    }THANK YOU!
    Regards
    Kamo

    Hi Dinesh, Thanks for the response!
    I've also tried doing the following without success:
    DECLARE
       v_name APPLICANTS.NAME%Type;
       v_surname APPLICANTS.SURNAME%Type;
       v_idNumber APPLICANTS.ID_NUMBER%Type;
    BEGIN
       select name, surname
       into v_name, v_surname
       from APPLICANTS
       where id_number = :P2_ID_NUMBER;
       htp.p('<script type="text/javascript">');
       htp.p('
                alert('Applicant's Name is: '  + v_name + ' & Surname is: ' + v_surname);
       htp.p('</script>');
    EXCEPTION
       WHEN OTHERS
       THEN
       htp.p('<script type="text/javascript">');
       htp.p('
             alert('Exception.');
       htp.p('</script>');;
    END;Do you know why this is not working?
    Regards
    Kamo

  • Calling javascript function with StageWebView problems

    I have a test html page I made to R&D some functionality, in my view I have a stageWebView and am calling a local html file from inside the app like this:
    stageWebView.loadURL(new File(new File('app:/assets/html/reports.html?stuff=1234').nativePath).url);
    I then try and call a javascript function called tester() from the html page like this:  stageWebView.loadURL("javascript:tester()");
    And the only thing I see in the debug console is:
    ReferenceError: Can't find variable: tester
    From what I have found online this is the way that this should be done.  Does anyone have any ideas?  I am not running this on a device yet, just in the FlashBuilder emulator.
    Thanks for any pointers.

    Are you able to load the local html file? I have been trying to load a local file, test.html, using the web view have have not been able to get it to load at all. It always gives me a blank page using file: or app:
    If you have gotten it to work could post a snippet for me to check out?
    Thanks,

  • Where to call the javascript function

    Hi,
    I am using JSF and ADF.
    I have a javascript function called by the body onload.
    The javascript is to set the first the first column of a table fixed.
    But when I click the next page link which is generated by defaut,
    the function from the javascript disappears.
    Can I call a javascript function when pressing the next page link which is
    generated by default ?
    Thanks.
    Ivan

    Hi Frank,
    My javascript function is to make the first column of the table fixed which
    is something like the function in the Excel.
    The function is called by body onload.
    But when the 'next page' link is clicked, it will not refresh the whole page.
    The above cannot be called.
    So I wanna add it during the action of pressing the link.
    any alternatives ?
    Ivan

  • How to passed an xsl parameter to a javascript function inside an xsl styel

    Hi:
    I am having problem passing an xsl param variable as a parameter to a javascript function inside an
    xsl styelsheet.
    Here is my xsl stylesheet.
    >
    <xsl:param name="numberOfRecordsFromDatabase" select="search-result/rec-num" />
    <xsl:template name="Body">
    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
    onLoad="cloneHeader();window.parent.shrinkIFrame(<xsl:value-of select='$numberOfRecordsFromDatabase'/>);"
    onresize="cloneHeaderResize();window.parent.shrinkIFrame(<xsl:value-of select='$numberOfRecordsFromDatabase'/>);">
    </body>
    </xsl:template>
    I am trying to pass a variable called numberOfRecordsFromDatabase to
    a javascript function called window.parent.shrinkIFrame(<xsl:value-of select='$numberOfRecordsFromDatabase'/>).
    Is this possible?
    If not, is there a way to do this.
    Any hint would be greatly appreciated.
    Yours,
    Frustrated.

    I would do it like this:
    Load the "search-result/rec-num" value into a field within an invisible div tag:
    <div id="miscproperties" style="visibility:hidden">
       <input id="numberOfRecs" type="text">
          <xsl:attribute name="value">
             <xsl:value-of select="search-result/rec-num"/>
          </xsl:attribute>
       </input>
    </div>Then, your js function can retrieve the value via
    var x = document.getElementById("numberOfRecs").valueR. Grimes

  • Help with javascript function

    I am getting a list of document urls from First Class by a
    loop, and I need to know how to save the identity of the one in the
    list that the user clicks on. I have tried many methods, but have
    nearly succeeded, if only I can solve the following problem. I have
    a javascript function called by the onclick method of <a
    href>, and I have used ToScript to pass the identity on to the
    next page. But I can't put the javascript variable into th
    ecoldfusion array. Here's the script:
    function getUrlNameFromLink(linkNumber){
    <cfoutput>
    var #toScript(XMLContent.rss.channel.item[3].link.xmlText,
    "jsURL")#;
    </cfoutput>
    alert(jsURL)
    This gives the correct link to the alert, if I hard-code the
    3 into the bracket. How do I use the linkNumber variable
    instead?

    well, using AJAX, and if your cf array is stored in a
    persistent scope
    (i.e. session), you could actually do it...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Getting status Pending when calling rest function call

    Hi,
    Coldfusion version 10.
    The app hangs using IE9 when I do a REST cf function call from js file. Observing the console, I see Pending status. However, it works fine in later versions of IE, Chrome and Mozilla.
    When I changed cffunction httpmethod from DELETE to PUT it worked. So, I figure that maybe javascript function call and cffunction header mismatch.
    Here is cffunction;
    <cffunction output="no" name="zeroUpdateCredits" access="remote" produces="application/json" consumes="application/json" returnType="struct" httpmethod="DELETE">
    <cfargument name="DATA" type="struct" required="yes"/>
    <cfset var retStatus = StructNew() />
    <cfset retStatus["success"] = true />
    <cftry>
    <cfset var qSponsDetails = APPLICATION.cfc.properties.getsettings(DATA.employee_id)>
    <cfif qSponsDetails.allow_credits>
      <cfset temp = saveCredits(credits = 0, employee_id = DATA.employee_id, effective_date = DATA.effective_date)>
    </cfif>
    <cfcatch type="any">
    <cfthrow errorcode="401" message="error zero credits" />
    <cfreturn>
    </cfcatch>
    </cftry>                  
    <cfreturn retStatus>
    </cffunction>
    Here is the function call:
    exports.clearCredits = function(employeeId, effectiveDate){
    data = {
      employee_id: employeeId,
      effective_date: effectiveDate
    var promise = rest.DELETE({
      url: appConfig.restPrefix + 'selections/unusedcredits?t=' + new Date().getTime(),
        contentType: 'application/json'
      }, JSON.stringify(data)
      return promise;
    Thank you,
    Gena

    Hi,
    Are you sure your Sender SOAP adapter is configured properly. Also ensure that the SIEBEL team is using the right URL to communicate to the SOAP adapter.
    First try using SOAP Client and see if the scenario is working fine. If so then the problem lies in SIEBEL.
    Check this link for confiuring SOAP sender
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    Thanks,
    Pakash

  • JavaScript Function Question

    In a JavaScript function call can I do a callablestatement or a preparedstatement? I have a button onClick that I want to call a function and in that function I want it to send 2 input values to a callablestatment but not sure how or the best way to do this.

    JavaScript is not Java.
    But assuming you are talking about initiating a server side request that does prepared statements from the use of a client side button, you could make an AJAX request.
    If you are talking about an embedded JavaScript engine in a Java application then you would do it the same way you call any Java from JavaScript when using it as a scripting enigne.

  • Javascript function undefined error

    Hi developers,
    I am generating a html file on the fly using a perl program. The main form to be used is generated by a javascript function called loadPage(). loadPage writes the <form> <input type="checkbox"> blah..</form> into the document by using document.write When the checkbox is unchecked, a javascript function called delFromList is called. This function is generated when the html is generated(by the perl program). The problem now is that the form comes out well but when I uncheck the checkbox, the javascript error says delFromList undefined...the same problem occurs for each function call...what am I missing here...any help will be highly appreciated...
    tia.
    vish
    PS: the sample html is inlined below
    Content-type: text/html
         <html>
         <head>
         <title>Level Refinement</title>
         <script Language=JavaScript>
    function delFromList(box) {
    blah blah....
    function addToList(box) {
    blah blah....
    ....and many other functions...all function that are used are defined....
    function loadPage()
                        document.write("<form name=layout action=\"http://software.somesite.com:81/cgi-bin/parser.pl\" Method=post>");
              document.write("<INPUT TYPE=CHECKBOX NAME=\"European\" VALUE=\"European\" onClick=\"if(this.checked){addToRankList(this)}else{delFromRankList(this)}\" CHECKED>European<BR>");
              document.write("<INPUT TYPE=CHECKBOX NAME=\"Canadian\" VALUE=\"Canadian\" onClick=\"if(this.checked){addToRankList(this)}else{delFromRankList(this)}\" CHECKED>Canadian<BR>");
              document.write("<INPUT TYPE=CHECKBOX NAME=\"Japanese\" VALUE=\"Japanese\" onClick=\"if(this.checked){addToRankList(this)}else{delFromRankList(this)}\" CHECKED>Japanese<BR>");
              document.write("<h4>Rank your preferences:<ul type=circle><li> Select the attribute to move<li> Use the \"Move Up\" and \"Move Down\" buttons to move the attribute ranking HIGHER and LOWER respectively.<br></h4>");
              document.write("<div align=center><center><table width=100% border=1><tr><td width=30% valign=top align=center>Ranking (High to Low)<br><select name=col1 size=10 onChange=checkSelectCol1()>");
              document.write("<option>European");document.write("<option>Canadian");document.write("<option>Japanese");               
              document.write("</select><p>");
              document.write("<INPUT TYPE=button value=\"Move Up\" size=4 onClick=javascript:col1Up(document.layout.col1)>");
              document.write("<INPUT TYPE=button value=\"Move Down\" size=4 onClick=javascript:col1Down(document.layout.col1)>");     
              document.write("</td></tr></table></div><br>");
              document.write("<INPUT TYPE=button value=\"Next\">");     
              document.write("</form>");
         </script>
    </head>
         <body onload="loadPage()">
         </body>
         </html>

    As mentioned above javascript and java are 2 different thigns. How ever after looking at your code I would have to guess that you missed a '{' or '}' some where in you actual code. Other than some minor html syntax errors I realy didn't see anything wrong with the code above. But since you didn't post the actual code it hard to say if fixing the few minor errors would make any diff. I'm going with missed curly braces.
    Ron_W

  • Passing a parameter to a javascript function

    I have declared a <jsp:usebean> on my jsp to extract a flag from the request. I want to then pass this String as a parameter to a javascript function called on the body onload. What is the best way of doing this? The javascript function is embedded in the jsp - does this mean I can access the variable directly, without even passing it as a parameter? do I use the <%= > syntax to reference the String on the onload? Do I use the <bean:write> the extract the varible within he javascript. Any help appreciated....

    JSP runs first on the server, and generates the HTML page with javascript.
    The javascript then runs on the client - it can't call any more JSP code, without submitting a request.
    In this case, you will want to use JSP to generate the javascript code that you need to run as a string on the page. You should probably use the <%= %> or the <bean:write tag>
    eg
      <script>
      <!--
        function loadForm(){
          var userName = "<%= user.getName() %>";
          alert("Hello " + userName);
      //-->
      </script>Note again. The use.getName() function will run on the server and produce static html/javascript like this
    var userName = "evnafets";
    JSP CODE DOES NOT RUN ON THE CLIENT. You cannot use JSP code to react to button clicks on the form for instance.
    Hope this helps,
    evnafets

  • How to call javascript function from PL/SQL procedure

    Can anybody advice me how to call javascript function from PL/SQL procedure in APEX?

    Hi,
    I have a requirement to call Javascript function inside a After Submit Process.
    clear requirement below:
    1. User selects set of check boxes [ say user want to save 10 files and ticks 10 checkboxes]
    2. user clicks on "save files" button
    3. Inside a After submit process, in a loop, i want to call a javascript function for each of the file user want to save with the filename as a parameter.
    Hope this clarify U.
    Krishna.

Maybe you are looking for

  • Zend_Framework and security

    In Dave Power's fantastic introductory book, ADOBE Dreamweaver, Training From the Source, I got a great intro using the Zend Framework to access my database.  One issue that I'm now beginning to think about is Security and SQL injection.  I've heard

  • Reconstruct -i needs Speed since mailbfr crashes

    Is there anyway to speed up this; sudo -u cyrusimap /usr/bin/cyrus/bin/reconstruct -i I've got Tons of Power here and i can watch in the Activity Monitor ant the reconstruct is just CRAWLING. It's hardly using any CPU time or resources. I normaly use

  • I ran the recent firmware update and I can no longer start the computer.

    Ran the firmware update 3 hrs ago,Computer never started up and it won't respond to start button.

  • Error while executing BAPI_FLIGHT_GETLIST

    Hi,    I am trying to execute the RFC Function "BAPI_FLIGHT_GETLIST".I am getting the below error at com.sap.mdi.ddtypes.DDDataelement.getDescription(DDDataelement.java:305)     at com.sap.dictionary.types.mdi.util.TextServices.getDescription(TextSer

  • After Effects cs5.5 aerender.exe Serial Number Problems

    We upgraded our company from cs2 to cs5.5 Windows 7 OS. We are trying to get our renderfarm machines to install render-only versions of the after effects render engine. We've have got it to install.. but when we send the command line renders we get t