Calling of javascript function in the method

Hi ,
  Is it possible to trigger a javascript method after the table rendering is done. I do not want the javascript method to trigger not only on the page loading, but also when only table rendering is done.
Thanks,
Appu

Hi ,
  Is it possible to trigger a javascript method after the table rendering is done. I do not want the javascript method to trigger not only on the page loading, but also when only table rendering is done.
Thanks,
Appu

Similar Messages

  • Help needed in calling a javascript function from a jsp

    Hey guys,
    I need help.
    In my jsp I have a field called date. When i get date field from the database, it is a concatination of date and time field, so I wrote a small javascript function to strip just the date part from this date and time value.
    The javascript function is
    function formatDate(fieldName)
              var timer=fieldName;
              timer = timer.substring(5,7)+"/"+timer.substring(8,10)+"/"+timer.substring(0,4);
              return timer;
    Now I want to call this javascript function from the input tag in jsp where I am displaying the value of date. Check below
    This is one way I tried to do:
    <input size="13" name="startDate" maxLength="255" value=<script>formatDate("<%=startDate%>")</script> onChange="checkDate(this)">
    I even tried this:
    <input size="13" name="startDate" maxLength="255" value="'formatDate(<%=startDate%>)'" onChange="checkDate(this)">
    But it dosen't work
    Please help. I am struggling on this for days.
    Thanks,
    Ruby

    Hey all you developers out there , Pleaseeee help me with this one.

  • Calling a Javascript Function

    Hello. I'm relatively new to Flash and CS4, which we just
    purchased. I want to call a JavaScript function in the page from a
    flash .swf file. I'm having trouble getting it to work. Can someone
    please help me understand what I'm doing wrong?
    Actionscript 3 code behind the Flash button:
    import flash.external.ExternalInterface;
    on (release) {
    ExternalInterface.call("GetState","WA");
    JavaScript function:
    <script language="JavaScript" type="text/javascript">
    <!--
    function GetState(state){
    alert(state);
    // -->
    </script>

    "on(release)" is not as3 syntax. If the name of your button
    is getState_btn, you must write something like this:
    getState_btn.addEventListener(MouseEvent.CLICK,getState);
    function getState(evt:MouseEvent):void {
    ExternalInterface.call("GetState","WA");
    I believe that your use of ExternalInterface is correct.

  • How do you call a JavaScript function from a Java applet

    I have an Applet that needs to run on the following platforms: Internet Explorer (Windows-NT, Windows -2000), Netscape (Windows-NT, Windows-2000, Sun(Solaris), RedHat(Linux), HP(11.0), IBM(AIX)).
    The Applet needs to call a JavaScript function that is included on the HTML page that contains the applet. In JRE-1.3.1 I used the AppletContext.showDocument(url,"_self" ) where the url is "javascript:MyScript('param1')". This works just fine. I tried using showDocument without the second parameter and all the other choices for the second parameter and none of them worked (nothing happened).
    I tried the same code with JRE version 1.4-beta. It seems that version 1.4-beta no longer supports a URL that starts with "javascript" in the AppletContext.showDocument(url,"_self" ) method. The error is:
    netscape.javascript.JSException: call does not support self.open
    at sun.plugin.javascript.navig.Window.call(Unknown Source)
    at sun.plugin.ActivatorAppletContext.showDocument(Unknown Source)
    I tried to catch the JSException but I cannot seem to.
    I then tried a completely different approach. I then grabbed the JSObject for the page and tried to call my javascript function (MyScript) directly:
    JSObject theObj = JSObject.getWindow(this);
    Object paramArray[] = new Object[1];
    paramArray[0] = Param1;
    theObj.call("MyScript", paramArray);
    This worked fine on Netscape[Windows-NT, Windows-2000]. HP throws a JSException on getWindow() and Solaris just hangs. I did not even try IE.
    What is the recommended approach here?

    you can try this, it worked for me:
    JSObject win = JSObject.getWindow(this);
    win.eval(function_call);
    I have other ways also, so if this doesn't work, let me know.

  • Calling a JavaScript function from an JApplet...

    Can anyone help? Is it possible to call a JavaScript function from within a JApplet? If so, what is the syntax? I've seen reference to the Netscape package but I've been led to believe it doesn't always work within Internet Explorer 6 which is the target browser.
    If the above is not possible can anyone tell me if and how it is possible to load images from outside the init() method of a JApplet? This would allow me to work around the problem.
    Thanks in advance - Jim.

    Call javascript you use the JSObject
    Please note the MAYSCRIPT int the html file.
    html file:
         <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
                  height="0" width="0" >
            <param name="code" value="someApplet.class" />
            <!--[if !IE]> Mozilla/Netscape and its brethren -->
            <object classid="java:someApplet.class"
                    height="0" width="0"
                    mayscript=true>
            </object>
            <!-- <![endif]-->
          </object>
    <LABEL id="lblOutputText">This text is the HTML text </LABEL>java class:
    // new class for jsObject!!!! compile this: javac -classpath "C:\Program Files\Java\jre1.5.0\lib\plugin.jar" someApplet.java
    // since jaws.jar does not exsist anymore
    // in 1.4.0 to compile: javac -classpath "C:\j2sdk1.4.0_03\jre\lib\jaws.jar" someApplet.java
    // for msjvm use the -source 1.3 -target 1.1 option so the command looks like this:
    // javac -source 1.3 -target 1.1 -classpath "C:\j2sdk1.4.0_03\jre\lib\jaws.jar" someApplet.java
    import netscape.javascript.*;
    public class someApplet extends java.applet.Applet {
        JSObject win;
        public void init() {
             try{
                 win = JSObject.getWindow(this);
    // you need win.eval("window.close();"); // to close the window. if the current window is not a popup
    // opened by a parent with window.open than the user will get a waring, your next question probably will
    // be "can I stop this warning" and the answer is simple: NO
                 JSObject textBoxLabel = (JSObject) win.eval("document.getElementById('lblOutputText')");
                 textBoxLabel.setMember("innerHTML", "<center><h1>Some text</h1></center>");
            }catch(Exception e){
                 e.printStackTrace();
    }

  • Call a javascript function (in ASPX) page from a javascript file

    I have a javascript file (viewer.js) situated in Scripts/viewer.js My
    default.aspx has a javascript functions that calls a c# function in the
    default.aspx.cs ( it sends a http webrequest)
    Now I want to call from the viewer.js the function in default.aspx which calls the c# function.
    How can I handle this in my viewer.js?
    I need to do this because I work with 3D objects and the select event is on the viewer.js
    When I select the 3D object it needs to call the function in default.aspx...
    Scripts/viewer.js
    function ClickPickItem(item) {
    $("#properties").show();
    /*Call function App() */
    Default.aspx
    function App() {
    PageMethods.Connect(callback);
    Default.aspx.cs
    [WebMethod]
    public static string Connect()
    string rsp = DigestAuthFixer.GrabResponse("http://<username>:<password>@nextbus.mxdata.co.uk/nextbuses/1.0/1");
    ... CODE TO MAKE HTTPWEBREQUEST}
    Sorry if I'm not clear enough
    I don't see another option like this
    What I need to do?
    Thanks!

    If my understanding is not wrong, you are trying to call a Javascript function in a separate script block from a linked Javascript page. rite?
    When it comes to Javascript, all scripts will be posted to the client side browser and we can access any method between pages provided those JS files are linked to the page.
    So you can directly call
    App()
    function from your
    ClickPickItem()
    function.
    Please try and let us know your result.

  • How can I have a backing file call a JavaScript function?

    I have a Weblogic portal with a JSP portlet. The portlet has a backing file. How can I get the backing file to call a JavaScript function in my portlet?
    thanks

    Hi
    your questions are not correct because you are mixing up server side operations with client side operations.
    First server side code executes then the page is sent to the browser , then any javascript executes on the browser. So asking for javascript to be called from backing file (server side) doesn't make sense or asking for javascript to read a parameter doesnt exactly work either.
    However in your server code suppose you have a variable action in the request that you want javascript to know then in your JSP you would add something like
    <script type="text/javascript">
    var action = '${requestScope.action}';
    alert(action);//or whatever you want to do
    <c:if test="${requestScope.someOthervariable == ''xyz'}"><%-- this check is done on the server --%>
    callSomeJavascript(); <%--this javascript is only executed when the server side value of someOtherVariable is xyz --%>
    </c:if>
    </script>
    i.e. you can output the javascript that has the variables you need or the function calls you want.
    Like I said understand whats server side and whats client side.

  • How to call a Javascript function from backing bean without any event

    Hi,
    Someone knows how to call a Javascript function from backing bean without any event ?
    thanks

    Please review the following thread:
    ADF Faces call javascript
    Luis.

  • Call a Javascript function without JSObject

    Hi all,
    With j2 sdk 1.4.2_08 the JSObject doesn't seem to ship anymore. I need to find a solution to either:
    1. call a javascript function from within an applet without the JSObject
    2. or find a different way of executing the http: or mailto: protocols in a new browserwindow.
    Would getAppletContext ().showDocument (new URL (oURLString),"Titlet"); be able to do this trick for me? The thing is that with this applet people can click on an image of a map, and then a new browserwindow opens up which calls an asp which shows certain database information. The mailto: protocol is used to enable users to send an email from the applet with certain informations about the map as well.
    TIA,
    Stefan

    hmmmm. That might do the trick for me as well, but I had hoped I would not have to change the page in which the applet loads ...
    I think I'll give showDocument a couple of tries, and I also think I should download the docs for this version.
    BTW, it could very well be that the JSObject was never part of the JRE/plugin. It's just that this project is a very old solution revisited (I first developed it in 1998 or 1999, then worked again on it in 2001/2003, and now it's come back to haunt me again). It's just that when I do a javac it complains about not being able to find netscape.javascript.*. For now I've commented them out, which means two of my commands don't work anymore, and before I deliver I have to fix that.
    Thanks,
    Stefan

  • Is it possible to call a JavaScript function from a dialog?

    Hi there,
    At the moment I have created a dialog, that consists of three text fields that a user fills out, and then clicks next.
    What I am attempting to do, is pass the result of these three textboxes to a JavaScript function I have laying in a file in Web Resources. I've done some research, and I can't find anything.
    So my question is - is it possible to call a JavaScript function from a dialog?
    Thanks for your time.

    Hi,
         It is not possible unfortunately. We can start dialog from script but not the other way unfortunately. However, you can always write server side code for this and it will surely execute. So instead of javascript, write plug-in.
    Hope this helps.
     Minal Dahiya
     blog : http://minaldahiya.blogspot.com.au/
     If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

  • How to call a javascript function from XSL

    I'd a requirement to take an action each time a page loads
    I called the javascript function from addLoadEvent() available in javascript.
    But my reviewer commented that it should be called using XSL as we are using XSLT,
    What is preferred?
    To pass function name to the already available function or somehow call it from xsl ? if second is preferred option then,
    how to call a function through XSLT, if it is to be called aftr the page loads?

    Thank u..
    but i'd seen that link wen i searched in google..
    Is it possible without using any 3rd party JARs and all?
    and more importantly plz tell me what should be preferred way to call a javascript function?
    Do it using addLoadEvent() or Windows.Load etc
    OR
    Call it thru Xsl? (I donno how to do dis)
    Thanks in Advance..
    Edited by: ranjjose on Jun 3, 2008 8:21 AM

  • Write javascript function in the mime repository

    Hey all,
    I Wrote a javascript functions inside the WAD html, and it works great.
    Now I want to distribute this code to many WAD's.
    I belive that the right way is to move the code to the mime repository and call it from the WAD's.
    How can I Call a function in a file.js file that exists in the se80?
    Thanks in advanced
    Hagai

    Try thowing this line in your <head> tag:
        <script language="JavaScript" src="/sap/bw/Mime/Customer/JavaScript/myJSFile.js">
          <!-- { } -->
        </script>
    When you refer to your javascript, just use
    <script type="text/javascript">
    //Javascript here
    </script>
    There are also caching issues when using javascript.  After you make a change to your file, use TCODE smicm.  In TCODE SMICM, from the file menu... Goto->HTTP Server Cache->Invalidate->Global in System.  This will invalidate the cache so you can see your new changes.
    Cheers,
    -Brendon
    Message was edited by: Brendon Lipchen
    Message was edited by: Brendon Lipchen

  • Call a special function in the dll using Call Library Function Node????

    Dear all,
          I am calling a special function in the dll using call library function node. There is a input parameter that it is a enum type in this function. I don't know how to deal this parameter for calling this function.Has anybody solved this problem?Please advise!
          I am appreciated of you anytime. 

    Most of the times an enum is just a U8/U16/U32, internally so probably you can call it with just a U8/U16/U32 or something. For the correct value you have to look at the definition.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Call SQL Server function through the gateway

    Hello, Does anyone know if it is possible to call a SQL Server system function such as SERVERPROPERTY through the gateway?
    I'd like to call a system function in the same way as a user defined function and not using DBMS_HS_PASSTHROUGH.

    Maybe I need to be a little bit more precise. It really depends on the data types being returned. When you look at the SERVERPROPERTY function you mentioned earlier and try to select for example the Collation, then SQl Server will return a SQL_VARIANT data type and that will fail - even using passthrough as SQL_VARIANT is not a supported data type.
    Let me use the passthrough example as it allows me to demonstrate it easily:
    SQL> SQL> declare
      2  val varchar2(100);
      3  c integer;
      4  nr integer;
      5  begin
      6  c:= dbms_hs_passthrough.open_cursor@DG4MSQL_EMGTW_1123_DB;
      7  dbms_hs_passthrough.parse@DG4MSQL_EMGTW_1123_DB (c, 'SELECT  SERVERPROPERTY(''Collation'') as Collation');
      8  LOOP
      9  nr:= DBMS_Hs_Passthrough.fetch_row@DG4MSQL_EMGTW_1123_DB(c);
    10  exit when nr=0;
    11  dbms_hs_passthrough.get_value@DG4MSQL_EMGTW_1123_DB(c,1,val);
    12  dbms_output.put_line(val);
    13  end loop;
    14  dbms_hs_passthrough.close_cursor@DG4MSQL_EMGTW_1123_DB(c);
    15  end;
    16  /
    declare
    ERROR at line 1:
    ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=emeagtw.de.oracle.com)(PORT=11231)
    )(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=dg4msql)))
    ORA-02063: preceding line from DG4MSQL_EMGTW_1123_DB
    ORA-06512: at line 6
    Process ID: 16919
    Session ID: 148 Serial number: 16721
    When I now make sure the return value is a char data type by slightly modifying the select and including a convert it will work:
    SQL> declare
      2  val varchar2(100);
      3  c integer;
      4  nr integer;
      5  begin
      6  c:= dbms_hs_passthrough.open_cursor@DG4MSQL_EMGTW_1123_DB;
      7  dbms_hs_passthrough.parse@DG4MSQL_EMGTW_1123_DB (c, 'SELECT  convert(char,SERVERPROPERTY(''Collation'')) as Collation');
      8  LOOP
      9  nr:= DBMS_Hs_Passthrough.fetch_row@DG4MSQL_EMGTW_1123_DB(c);
    10  exit when nr=0;
    11  dbms_hs_passthrough.get_value@DG4MSQL_EMGTW_1123_DB(c,1,val);
    12  dbms_output.put_line(val);
    13  end loop;
    14  dbms_hs_passthrough.close_cursor@DG4MSQL_EMGTW_1123_DB(c);
    15  end;
    16  /
    SQL_Latin1_General_CP1_CI_AS
    PL/SQL procedure successfully completed.
    Just in case you have a procedure that returns the correct data type you have to make sure the gateway is configured correctly which means the parameter
    HS_FDS_PROC_IS_FUNC needs to be set to TRUE and the function you want to call is listed in the HS_CALL_NAME parameter.
    Here for a userdefined function I have to specify:
    HS_FDS_PROC_IS_FUNC=TRUE
    HS_CALL_NAME = "dbo.fx_SumTwoValues"
    and then  the udf based select:
    SQL> SELECT "dbo"."fx_SumTwoValues"@DG4MSQL_EMGTW_1123_DB('7','8') AS SumOfTwoValues from "dummy"@DG4MSQL_EMGTW_1123_DB;
    SUMOFTWOVALUES
                15
    - Klaus

  • How to call javaScript function in the form from Action:Tab buttion in workspace

    Hi,
    I want to trigger JavaScript function that I have written in form from Action: buttons in workspace user's account.
    Is there any way that if i hit a button on action bar, it fire a javascript function.
    Reason is: I dont want to place button on the form to perform any action on the form. I want to take control of the form from these buttons. Like submit, edit a form, etc, etc..
    Please let me know if i couldnt explain it properly.
    regards
    Sunil

    Sunil, you want to look at the "Customizing the LiveCycle® Workspace ES User Interface" document at http://help.adobe.com/en_US/livecycle/9.0/customizeworkspaceui.pdf.  The workspace is a Flash component.  For ES4 there's an option to run the workspace in HTML5 which might be more productive long-term.

Maybe you are looking for