[CLOSED] call control ext from javascript

  1. #1

    [CLOSED] call control ext from javascript

    I have code:
    <%@ Page Language="C#" AutoEventWireup="true"  %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
        <script type="text/javascript" >
           function show()
           {
            ext.win1.visible=true;
           }
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
          <a href="javascript:show()"> Show window</a>
          <ext:Window ID="win1" runat="server" Visible="false" > 
          </ext:Window>
        </div>
        </form>
    </body>
    </html>
    The code javascript don't execute.
    Last edited by Daniil; Jun 26, 2012 at 10:19 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please add
    <ext:ResourceManager runat="server" />
    on the page.

    It is required to get Ext.NET working.

    Please replace
    Visible="false"
    with
    Hidden="true"
    More details here:
    http://forums.ext.net/showthread.php...ll=1#post54033

    To show the Window call
    win1.show();
    instead of
    ext.win1.visible = true;

Similar Threads

  1. Replies: 2
    Last Post: Jul 20, 2012, 7:26 PM
  2. Replies: 3
    Last Post: Aug 27, 2010, 9:30 PM
  3. [CLOSED] Call Javascript Function
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 21, 2010, 3:58 AM
  4. [CLOSED] [1.0] call javascript from StoreSubmitDataEventArgs
    By ljankowski in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 12, 2010, 12:44 PM
  5. How to call JavaScript in other control?
    By dbassett74 in forum 1.x Help
    Replies: 1
    Last Post: May 27, 2009, 12:40 PM

Posting Permissions