Question about Ext.Net.X.Call

  1. #1

    Question about Ext.Net.X.Call


    I want to know if it is possible to make a javascript call to a function with parameters like this :

    Because when I try to do that I get errror message like
    test(...) is not a function under Firefox
    undefined is not a function
    under Chrome.

    Besides that, the call work because my function is well executed, so what happened?

    Last detail when error happened, it seems to be here :
    ext.axd?v=40838 (ligne 144
  2. #2

    Try to use AddScript:

    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
            X.AddScript("test(1, 2, 3);");
    <html xmlns="" >
        <head id="Head1" runat="server">
            <ext:ResourceManager ID="MainScriptManager" runat="server" DisableViewState="true"/>
                var test = function (a, b, c) {
                    alert('Hello, ' + a + b + c + '!');
    Last edited by geoffrey.mcgill; May 27, 2013 at 7:22 PM.
  3. #3

    In fact, I post in wrong forume I4m with Ext.NET 2.2.0. Besides that, I found the solution.


Similar Threads

  1. Question - Call JavaScript From CodeBehind
    By DanielU in forum 1.x Help
    Replies: 0
    Last Post: Apr 30, 2013, 2:30 PM
  2. [CLOSED] Strange question about directmethod call
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Nov 12, 2012, 12:37 PM
  3. [CLOSED] How to call a page in
    By Oliver in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 10, 2012, 6:51 AM
  4. call .ascx
    By corsaronero in forum 2.x Help
    Replies: 4
    Last Post: Mar 21, 2012, 2:35 PM
  5. DirectMethods Call Twice
    By santosbj in forum 1.x Help
    Replies: 2
    Last Post: Jun 17, 2010, 2:34 AM

Posting Permissions