[CLOSED] open window by javascript

  1. #1

    [CLOSED] open window by javascript

    Hi
    I have window
    <ext:Window ID="win_scheduleAE" runat="server" Icon="User" Title="Add/Edit Schedule" Width="550" Height="497" Resizable="false" Show&#111;nload="False" Closable="True" Frame="True" ></ext:Window>
    I am opening window by ajax
        protected void scheduleAE(object sender, AjaxEventArgs e)
        {
            string s_url = Request.Url.Host.ToString();
            win_scheduleAE.LoadContent("http://"+s_url+":82/clientmajiccvc/schedule.aspx");
            win_scheduleAE.Show();
        }
    How can I open it by javascript?
    var s_win=Ext.getCmp('win_scheduleAE');
     
     //win_scheduleAE.url="<U>http://localhost:82/clientmajiccvc/schedule.aspx</U>";
     s_win.show({
             title: "tttt",
             width:1000,
             height:600,
             maximizable: true,
             minimizable: true,
             autoLoad:{
              url:"http://localhost:82/clientmajiccvc/schedule.aspx",
              mode:"iframe",
              showMask:true
              }
              });
    It opens but without url
  2. #2

    RE: [CLOSED] open window by javascript

    Hi,

    s_win.loadContent('http://...');
    s_win.show();

    or


    s_win.loadContent({url:'Page.aspx', mode: 'iframe'});
    s_win.show();
  3. #3

    RE: [CLOSED] open window by javascript

    Thanks
    It works
    Vlad

Similar Threads

  1. [CLOSED] open window out of its parent
    By imaa in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 26, 2011, 6:07 AM
  2. BorderLayout open a window black window
    By Hualin Yuan in forum 1.x Help
    Replies: 0
    Last Post: May 07, 2010, 3:03 AM
  3. [CLOSED] Open window from javascript
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 16, 2009, 3:28 AM
  4. Open a window and load a page with Javascript
    By Neeraj Sharma in forum 1.x Help
    Replies: 2
    Last Post: Jan 17, 2009, 1:12 AM
  5. Replies: 1
    Last Post: May 29, 2008, 8:29 AM

Posting Permissions