Calling JavaScript function

  1. #1

    Calling JavaScript function

    Hi
    how can I call JavaScript function from code?
    I have this example:
        protected void btnLogin_Click(object sender, DirectEventArgs e)
        {
            // some login stuff, if everything is OK, call JavaScript function:
            SomeJavaScriptFunction(0);  <-- this, of course, work not
        }
    Thanks
  2. #2
    Hi,

    Please use:
    X.Js.Call("someJavaScriptFunction", 0);
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    Please use:
    X.Js.Call("someJavaScriptFunction", 0);
    Thanks. Works perfect.

Similar Threads

  1. Replies: 5
    Last Post: Oct 23, 2012, 2:19 PM
  2. [CLOSED] DesktopShortcut calling a Javascript Function
    By FAS in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 18, 2012, 5:23 PM
  3. Success function in calling Direct Method..help!
    By Aleksa007 in forum 1.x Help
    Replies: 2
    Last Post: Jul 26, 2011, 4:36 PM
  4. [CLOSED] Calling a Javascript function of Child page from Popup (inside Frame)
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 27, 2011, 6:00 AM
  5. Calling js function inside a child tab
    By Rod in forum 1.x Help
    Replies: 2
    Last Post: Jul 23, 2009, 12:24 PM

Posting Permissions