New javascript functions

In looking through the new javascript libraries in ApEx 2.2 I've found this: function html_DisableOnValue(pThis,pValue,pThat) but there doesn't seem to be a corollary enable operation. Is there any good reason for this?
Earl

Slick,
I have done exactly what you want to do to style a single cell. Here's what I did:
1 - Create one or more styles in the Region Header of the report. eg:
<style type="text/css">
.HILITE {background-color:red; color:white;}
.NORMAL {}
</style>
2 - Update your SQL statement to return an additional field (eg, STYLE_NAME) that will hold the style name. The field should be calculated and would probably be a CASE statement (eg, CASE WHEN x = 1 THEN "HILITE" ELSE "NORMAL" END STYLE_NAME)
3 - In the column definition, add the following into the HTML Expression field:
<DIV CLASS="#STYLE_NAME#">#COLUMN#</DIV>
4 - Run the report
Andy

Similar Messages

  • JavaScript function which fetches return_value from List of Values

    Hi,
    I have created List of Values named "NICKS". I want to write JavaScript function "get_workers_fullname(nick)" which returns display_value from List of Values. The parameter of function is return_value of List "NICKS".
    I am new with this and don't know how to handle this case.
    Please help me.

    Hi,
    The LOV, I mean is the item in Application's Shared Components. I don't mean the visible SelectList on the page.
    This is what I found in ApEx's help: "A List of Values can be referenced by page items as well as report fields. It controls the values displayed and limits the user's selection. Lists of Values can be static (based on values you enter) or dynamic (based on a SQL query)."
    I'd like to access values in such LOV from JavaScript. I am not sure it is possible.
    Cheers,
    Tom.

  • How to pass value to pop up window using javascript function?

    I am not sure how to do this, I want to open new window from existing form,This is Mod/PLsql for consists some javascript functions also. When I am clicking on new window in form then new form should open with results of value entered,but new window form is opening with main page :( , not able to get text box value from parent form. How to call textbox input value in popup window from parent window using javascript?
    currently I'm using following code:
    HTP.p('<script type="text/javascript">
    function pop_up5()
    var l_url=window.opener.document.getElementById("p_single_store_pc").value;
    window.open(l_url, '''', ''fullscreen=no, scrollbars=1'');
    </script>' );
    Edited by: user11970612 on Jun 14, 2012 5:02 AM

    this is probably due to the Javascript code and not a "real link" to another page... I don't know if the null is due to the Javascript...
    But if you really really want to use javascript instead of a ... you can pass the location of the url with JSP (on your main page) as a parameter to the open window... (...) u can put instead of main.jsp <%= request.getServerName()+request.getRequestURI() %>
    the value <%= ... %> will return something like test.com/html/main.jsp
    Hope this helps.

  • How to call a bean method through a javascript function

    I dont discover any problems calling the bean method in this maner:
    <%= helpdesk.data() %>
    But, when I use a Button Onclick= to call the script function and which then is going call my bean method
    an error on the page is reported!
    I have include som code which gives you the idea of what Iam searching for. And is it possible to call
    the bean method without doing from a new jsp page?
    If you have any suggestions to why it doesnt work, please let me know.
    I use Apache Tomcat 4.0
    Best regards Micah.
    <jsp:useBean id='helpdesk' scope='application'
    class='helpdesk.testdb'/>
    <html>
    <head>
    <script language="javascript">
    function broadcast()
    helpdesk.data();
    </script>
    </head>
    <body>
    <input type="button" value="Broadcast" onclick= broadcast()>
    </body>
    </html>

    It's actually quite simple:
    Beans run server-side
    Javascript runs client-side
    So you will never be able to run server-side-code thru the client...

  • How to use request.setAttribute in javascript function.

    Here is my scenario.
    I am storing all open windows handles in the array( javascript ).
    I want to send this array to the servlet for which I need to do
    request.setAttribute("jsArray", windowArray);
    I am getting all kinds of errors while writing above statement in the javascript function.
    Here is my code:
    function save_javascript_array(){
    <% request.setAttribute("jsArray", %> + winArray + <% ); %>
    document.forms[0].action="/NASApp/inv/AuditServlet";
    document.forms[0].submit();
    Thanks in advance.

    try something like this:
    crate a JavaScript function that set a form parameter with the values contained in the array, for example make a string containing all elements of the array separated by colon (,):
    function save_javascript_array()
    var data;
    data = '';
    for( var i=0;i<winArray.length;i++ )
    data = data + winArray[i] + ',';
    document.forms[0].handles.value = data;
    document.forms[0].action="/NASApp/inv/AuditServlet";
    document.forms[0].submit();
    you must have a form like this:
    <form ...>
    <input type="hidden" name="handles">
    </form>
    Now in the servlet you must retirve the parameter called "handles" and iterate over the string:
    StringTokenizer tok = new StringTokenizer( request.getParameter("handles"),"," );
    while( tok.hasMoreElements() )
    String handle = tok.nextToken( );
    // do something with this handle...
    The code above may be different (I don't remember the names of the methods os StringTokenizer) and I don't known much about JavaScript (e.i. how to iterate over a array and how to concatenate each element in the array)
    JaimeS

  • Javascript function not working in IE but in Firefox

    Dear fellow developers and pros, I have a huge problem with the following function. While it works perfectly in Firefox, the Internet Explorer (my special friend) doesn't interpret the code correctly. At least this is my guess. The message box appears but the UPDATE process is not carried out and the application procedure "proc_delete_mx" is not carried out either. Only the redirect works!
    I need to get it to work in IE, as a lot of end users depend on the IE and are restricted to use alternative browsers.
    Can you please help me on this one!??? You're my last hope as I have already tried to paste this function into several template regions. In the past it used to work for jQuery code not interpreted by the IE.
    <script type="text/javascript">
      function warning1(){
        var lValue = $v('P231_CHECK_CE_STATUS');
        var pValue = $v('P231_INT_STATUS');
        if(lValue*1 > 0 && (pValue == 1 || pValue == 2 || pValue == 5 || pValue == 6 || pValue == 7 ) )
          $('#dialogwarning').dialog('open');
    else
          doSubmit('UPDATE');
          redirect('f?p=105:18:&APP_SESSION.::NO:');
    $(function(){
      $("#dialogwarning").dialog({
        autoOpen: false,
        bgiframe: true,
         modal: true,
            width: 400,
            minWidth: 400,
            resizable: true,
         buttons:
    {Speichern: function()
    var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=proc_delete_mx',0);
    gReturn = get.get();
    get = null;
    doSubmit('UPDATE');
    $(this).dialog(redirect('f?p=105:18:&APP_SESSION.::NO:'));     
    Abbrechen: function(){
    $(this).dialog('close');
    </script>
    <div id="dialogwarning" title="Achtung!">
    <p>
    <span class="ui-icon ui-icon-alert" style="float:left; margin:0 10px 40px 0;"></span>Es liegen bereits gutachterliche Bewertungen für diesen LRT vor.
    Wenn der Status geändert wird, werden alle gutachterlichen Bewertungseinstellungen und Ergebnisse verworfen.</p>
    </div>A million thanks for your answers!
    Regards,
    Seb

    Okay, I eventually found the bug myself and was able to fix it.
    The Internet Explorer 8 simply doesn't like a doSubmit followed by a straight redirect!
    doSubmit('UPDATE');
               redirect("f?p=&APP_ID.:1:&SESSION.");How I solved it??
    I created two custom pl/sql update procedures, which I'm calling in javascript with doSubmit.
    doSubmit('UPDATE_CUSTOM1');Additionally I created two new branches directing to the desired pages and set them to be conditional.
    Now the branches are taken after the request of my update procedures has been issued.
    Furthermore, I have no more problems with binding page items on subsequent pages, since the branches are doing it.
    Hope it helps!
    Regards,
    Seb

  • Javascript function not working in template-based html files

    Does anyone have any insight as to why the following function works only in the .dwt file but not in the related html files?
    *Note: it only works in the dwt file if I change the path of:
    var imgs = new  Array('images/header1.jpg','images/header2.jpg','images/header3.jpg');
    to
    var imgs = new  Array(../'images/header1.jpg',../'images/header2.jpg',../'images/header3.jpg');
    but with the paths reading correctly (as below) in the html files it still doesn't work...
    <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    var imgs = new Array('images/header1.jpg','images/header2.jpg','images/header3.jpg');
    var delay = 7500;
    var counter = 0;
    function preloadImgs(){
      for(var i=0;i<imgs.length;i++){
        MM_preloadImages(imgs[i]);
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
      MM_swapImage('rotator', '', imgs[counter++]);
      setTimeout('randomImages()', delay);
    </script>
    </head>
    <body onLoad="preloadImgs();randomImages()">
    Any help would be appreciated!
    Andy

    Wow - now I have a real doozy for you. That duplicate function has generated itself all on its own. The script in the template file is:
    <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    // Comma separated list of images to rotate
    var imgs = new Array('images/header1.jpg','images/header2.jpg','images/header3.jpg');
    // delay in milliseconds between image swaps 1000 = 1 second
    var delay = 5000;
    var counter = 0;
    function preloadImgs(){
      for(var i=0;i<imgs.length;i++){
        MM_preloadImages(imgs[i]);
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
      MM_swapImage('rotator', '', imgs[counter++]);
      setTimeout('randomImages()', delay);
    </script>
    As you can see - no duplication.
    For some inexplicable reason, this is being added in to all the html pages based on the template:
    MM_swapImage('rotator', '', imgs[counter++]imgs[i]);
    function randomImages(){
      if(counter == (imgs.length)){
        counter = 0;
    Which explains why it works in the template file but not in any the html files. Of course, because the code is not in an editable region, I can't remove it manually from the html files. Have you ever heard of code generating itself in this manner? Or how to solve it?

  • Javascript function not working

    Hi I am new in development.
    Could you tel me what problem may be in my jsp code.
    previously my .jsp file have some javascript functions all was working properly. Now i have made changes on one function which was working properly but now it is not working and the after clicking the button to which it is associated no action is taking place. .What may be the problem
    Thanks with regards

    The problem would be that you have introduced a syntax/runtime error into your javascript code with your changes.
    Unfortunately my mind reading powers are not working today, so I can't tell you exactly which line of code it is that you have broken.
    Maybe if you posted some code? (note I say some and not all) If you paste your whole page here unformatted, don't expect any help.
    Debugging javascript is not a nice thing to do.
    Try getting Mozilla/Firefox - it has a javascript debugger integrated with it.
    Myself I normally go along the lines of alert("step1") alert("step2") peppered through the javascript code. At the point the alerts stop, is where I focus my attention to find the error.
    Good luck,
    evnafets

  • Using JSP parameters as input in a JavaScript function

    hey
    I have a JavaScript function, which I call with JSP parameters.
    The function call looks similar to:
    <button onclick="myFunction(<%= jspParameter%>);"> </button>
    However, this JavaScript function is called from a jsp page, which is asynchronously refreshed upon a click of the button.
    The problem is that the JavaScript function does NOT function when I click the button for the first time (or maybe it functions, but with the old value of the jspParameter).
    Only after the second click it starts taking the jspParameter.
    Can you please tell me how to properly get the jspParameter as input in my case....
    thank you

    I'm sorry, you're right - I didn't give enough details.
    My whole page consists of several jsp-s.
    The jsp, from which I call the JavaScript function is just one part of the whole page. I'll call it partToBeChanged.jsp.
    When I press the button, the partToBeChanged.jsp should refresh asynchronously and call the JavaScript function using the new jsp parameter as input.
    To be more precise, here is roughly how myFunction looks like (JavaScript):
    function myFunction(url, jspParam) {
         var XMLHttpRequestObject = false;
         if (window.XMLHttpRequest) {
              XMLHttpRequestObject = new XMLHttpRequest();
         } else if (window.ActiveXObject) {
              XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
         if (XMLHttpRequestObject) {
              XMLHttpRequestObject.open("GET", myServlet + url, true);
              XMLHttpRequestObject.onreadystatechange = function() {
                   if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) {
                        //plug server response in the target place.
                        //The target is an id of a division, which holds the partToBeChanged.jsp page
                        //The server itself uses RequestDispatcher to direct the response to the partToBeChanged.jsp     
                        //NOTE: partToBeChanged is only a part of the whole HTML page, which is refreshed dynamically               
                        document.getElementById('target').innerHTML = XMLHttpRequestObject.responseText;
                        //changes the content of a div, which is IN ANOTHER .jsp fragment (different than partToBeChanged.jsp)
                        y = document.getElementById("div_to_change");
                        y.innerHTML = jspParam;
              XMLHttpRequestObject.send("");
    }the jspParam is a java object, initialized in the servlet and used in partToBeChanged.jsp
    To summarize: the servlet dispatches the response to the partToBeChanged.jsp page, which uses the jspParam as input for myFunction, and myFunction tries to change the content of the "target" div accorting to the jspParam. However it changes as expected only after the second button click.
    Thanks a lot for any help....

  • Problem with onBlur=validate_int_range javascript function

    Hi i have a java script function which is use to check for the range of the integer i enter.
    The function works fine but the problem is once i click ok on the validation boxes that come up when i enter a wrong value it allows me to click the submit box.But if i click back on the text box then the validation box appears again.
    The report code is
    to_clob(HTMLDB_ITEM.text(5, pref_val,15,30,'onBlur="validate_int_range('||pref_name||','''||pref_expr||''');"style="width: 220px;"',pref_name)),
    and the javascript function is
    <script language="JavaScript1.1" type="text/javascript">
    function validate_int_range(pref_name, range) {
    var pos = range.indexOf('-');
    var start_val, end_val;
    var actual_val = pref_name.value;
    var non_digits = /\D/;
    if ( non_digits.test(actual_val) ) {
    alert('Validation Fail: only digits allowed. ' + range);
    if ( pos > 0 ) {
    start_val = range.substr(0,pos);
    end_val = range.substr(pos+1, range.length-pos+1);
    if ( eval(actual_val) < eval(start_val) ) {
    alert('Validation Fail: smaller value than ' + start_val );
    if ( eval(actual_val) > eval(end_val) ) {
    alert('Validation Fail: larger value than ' + end_val);
    function validate_rule(pref_name, exp) {       
    var actual_val = pref_name.value;
    expression = new RegExp(exp);
    if ( ! expression.test(actual_val) ) {
    alert('Validation Fail: Rule ' + exp);
    </script>

    >thanks you so much for the code, I'll test it out and
    reply with >the
    >results.
    Shouldn't that be "Thanks so much for the Cod"?
    "Dave Bar" <[email protected]> wrote in message
    news:e28c7t$hk1$[email protected]..
    > ahh yes, you are right..
    > I should have said OR instead of AND.
    > If Field is blank OR range is not between 1900 &
    2006. Thanks for catching
    > and pointing that out.
    >
    > thanks you so much for the code, I'll test it out and
    reply with the
    > results.
    > Thanks
    > -Dave
    >
    >
    >
    >
    > "Lionstone" <[email protected]> wrote
    in message
    > news:e28b1a$fu5$[email protected]..
    >> That's probably because you asked for a fish to help
    you out
    >>
    >>> Can some kind sole help with a modified version
    to also check for an
    >>> entered
    >>> number range?
    >>
    >> and fish can't type.
    >>
    >> You're off on the logic though, since something is
    not likely to be both
    >> blank and outside a certain number range. If it's
    blank or outside the
    >> range, either condition is sufficient for an error,
    right?
    >> You also want to make sure that no letters, etc, are
    entered, because
    >> that will mess up your comparisons to the other
    numbers. Keeping in mind
    >> that javascript validation can be defeated by
    sneezing and you'll need to
    >> re-validate on the server, this will be closer to
    right (not tested).
    >>
    >> var ThisYear = ThisForm_Right.DOB_Year.value;
    >> ThisYear = ThisYear.replace(/[^/d]/g,"");
    >> if(ThisYear.length == 0)
    >> {
    >> alert("Please enter the year of your DOB.");
    >> ThisForm_Right.DOB_Year.focus();
    >> return false;
    >> }
    >> else
    >> {
    >> ThisYear = parseInt(ThisYear);
    >> if((ThisYear < 1900) || (ThisYear > 2006))
    >> {
    >> alert ("The year of your DOB must be between 1900
    and 2006.");
    >> ThisForm_Right.DOB_Year.focus();
    >> return false;
    >> }
    >> }
    >>
    >>
    >
    >

  • Calling Javascript function from PL/SQL Process

    I am new to APEX and Javascript so please forgive my question.
    I have a process on page which successfully runs a few procedures etc. but now, as part of this process, I want to call a javascript function I have typed into the HTML Header.
    My question is how can I call the javascript function from my process? Is it possible?
    Many thanks
    Winnie
    ps. as an example my javascript looks like:
    <script language="JavaScript">
    function test(){
    var decision = confirm("Click a button below and watch what pops up next.");
    alert(decision);
    </script>

    See: How to call a javascript function from pl/sql?

  • Will spry show a javascript function from an external page?

    I have two pages
    http://www.autosnetfree.com/clock_buttonajax.php //this page has the spry calling the external page.
    http://www.autosnetfree.com/clock_auction1.php //this page has a countdown clock to a future date
    The buttonajax page has a submit button which updates a database with the current date plus 60 seconds.
    The countdown clock page pulls that future date from the database with a recordset
    The spry on the buttonajax page is
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryStackedContainers.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    var ds2 = new Spry.Data.HTMLDataSet("clock_auction1.php", "countdowncontainer", {useCache: false, loadInterval: 1000, distinctOnLoad: true});
    //-->
    </script>
    </head>
    <body>
    <div spry:region="ds2" class="StackedContainers">
      <div spry:repeat="ds2" class="RowContainer">
        <div class="RowColumn">{column0}</div>
      </div>
    </div>
    The button updates but the called page with the javascript function does not show?
    thanks for your help,
    -Jim balthrop

    It looks like you need an onPostLoad observer that updates the region similar to what is done here http://labs.adobe.com/technologies/spry/samples/data_region/SharingDataBetweenDataSets.htm l

  • Problem when calling more than 1 Javascript function

    Hello everybody,
    I am trying to disable fields based on the value in a Select List. There is a table in which values are stored to tell if a field should be disabled for the selected value. I have created an Application Process and a JavaScript function for each field.
    The problem is that only the first function is executed, and the second not.
    I have tried the following:
    onchange="Disable_Dagen(this);Disable_Kg(pThis);"and I have put them together in a parent JavaScript function
    function Disable_Fields(pThis){
    Disable_Kg(pThis);
    Disable_Dagen(pThis);
    }In either case only the first works, so when I change the order then the other one is executed properly.
    Can anyone give me a clue on how to solve this?
    My complete JavaScript definition in the header is as follows:
    (the code in html_DisableOnValue is taken from the example site from Carl Beckstrom)
    <script language="JavaScript" type="text/javascript">
    <!--
    function html_DisableOnValue(pThis,pValue,pThat){
         var lTest;
      if(pThis.nodeName == 'SELECT'){
                   lTest = html_SelectValue(pThis) == pValue;
         }else{
                   lTest = $x(pThis).value == pValue;
         if(pThat){
               for (var i=2;i <= arguments.length; i++){
                          html_disableItem(arguments,lTest)
         return;
    function Disable_Dagen(pThis){
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=AP_RETURN_DISABLE_VAL_DGN',0);
    get.add('AI_AFW_CODE',pThis.value);
    gReturn = get.get();
    get = null;
    //alert('Return waarde is '+ gReturn );
    html_DisableOnValue(pThis,gReturn,'P43_AANTAL_DAGEN');
    function Disable_Kg(pThis){
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=AP_RETURN_DISABLE_VAL_KG',0);
    get.add('AI_AFW_CODE',pThis.value);
    gReturn = get.get();
    get = null;
    //alert('Return waarde is '+ gReturn );
    html_DisableOnValue(pThis,gReturn,'P43_AANTAL_KG');
    function Disable_Fields(pThis){
    Disable_Kg(pThis);
    Disable_Dagen(pThis);
    //-->
    </script>
    In this case the Form Element property is set toonchange="Disable_Fields(this)"
    Thanks, Wouter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Roel,
    Thanks again for your response.
    There is a lot more to Firebug then I had seen before. Now I have turned on the Console and the Script. Initially I saw the following in the Console:
    C is undefined
    $x_disableItem(undefined, true)apex_3_1.js (regel 1)
    html_DisableOnValue(select#P43_AFWIJKING_CODE, "101", "P43_AANTAL_DAGEN")f?p=104:...2606::::: (regel 38)
    Disable_Dagen(select#P43_AFWIJKING_CODE)f?p=104:...2606::::: (regel 51)
    onchange(change )f?p=104:...FPQ%3D%3D (regel 2)
    [Break on this error] var gDebug=true;var gkeyPressTime;var gL...Options;html_SelectValue=$f_SelectValue;When I removed the comments before the 2 Alerts, I only got one alert when I tested it.
    Then I replaced the function call to html_DisableOnValue to $f_DisableOnValue as you suggested, and that did the trick. Now it Works!
    I still don't know why the html_DisableOnValue function doesn't work. I just copied it from the demo site of Carl Beckstrom. Anyway my problem is solved.
    Have a nice weekend, Wouter

  • Access Java Array in Javascript function

    Hi, could someone please help me, I have an array that gets populated in java code and I need to see it in a javascript function.
    Here's what I have so far:
    //In java class for AvgCostChart.jsp
    private String[] month;
    public String[] getMonth()
    {//code to populate
    return month;}
    Then in my javascript onLoad function I try to access it. I know how to access the values one at a time like this.
    var month1='#{AvgCostChart.month[0]}';
    But how do I pass this to a function.
    I tried assigning to to another array to loop through the values like this:
    var myArr = new Array();
    myArr'#{AvgCostChart.month}';
    alert (myArr[0]);
    But that does not work, any one done this before.
    I've also tried saving it in the session and then accessing it but can't get that to work either.
    Any help will be greatly appreciated.

    Hi,
    Please go through the following thread:
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=60147
    Hope this helps
    Cheers
    Girish

  • Calling a javascript function from an Applet

    I am trying to make an applet that works on as many browsers as possible, so I am sticking to Version JCK 1.1
    I am trying to call pass the javascript function into a URL object like this
    URL url = new URL("javascript:" + function, "_self");but I keep getting a MalformedURLException. I've read some of the other comments, but they all say to use the netscape.javascript package and the JSObject class, but I can't find that object anywhere inside the API posted on Sun's website.
    Any help would be greatly appreciated.

    To access JavaScript methods, properties, and data structures from your Java applet, import the Netscape javascript package:
    import netscape.javascript.*
    public class myApplet extends Applet
    {   public void init()
    {     /* Use the following syntax to call JavaScript methods:*/
    JSObject.getWindow().eval("expression")
    /*expression is a JavaScript expression that evaluates to a JavaScript method call. */ }

Maybe you are looking for

  • Can use the same thread safe variable in the different processes?

    Hello, Can  use the same thread safe variable in the different processes?  my application has a log file used to record some event, the log file will be accessed by the different process, is there any synchronous method to access the log file with CV

  • Changing credit card info / Customer Support

    Since my credit card got swapped out (new one has RF chip) it also has a new expiration date. I can find no way to edit the credit card info on the website.Also, there's no way to contact customer support from the site, and I have no wish to be put i

  • Copying Verity Collection

    Since my shared hosting provider has the timeout set so low I can't index my verity collection of pdf files before it times out. So, I'm told I can index it locally, then FTP the index/collection up to my site at the hosting provider. But when I do t

  • NO SOUND IN BROWSER AT ALL

    A week or two ago i stopped getting sound in my browser, it doesn't work in Safari or Fire-fox. I didn't d/l any plugins or anything out of the ordinary. My iTunes works fine but i don't get any sound from the browser on any sites YouTube, MySpace et

  • How to remove an Alarm Song from Alarm Sound list?

    When using the standard Clock app, how do I remove an alarm song from the Alarm sound list under Edit Alarm? I can add new songs, but cannot find a way to remove unwanted ones.