Results 1 to 4 of 4

Thread: Navigate to another page

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Location
    Italia, Bologna
    Posts
    9

    Default Navigate to another page

    Hi,
    Is there way to navigate to another page?
    Something like this:
    Code:
    window.open('mypage.html');
    // or 
    document.URL='pypage.url';

  2. #2
    Sencha User
    Join Date
    Nov 2010
    Location
    Italia, Bologna
    Posts
    9

    Default

    found this solution:

    Code:
            var link = Ext.getDom('hiddenLink'); 
    // must be created first in html property
    // of any elemet as:
    //<a id="hiddenLink" target="_blank" href="" style="visibility:hidden;"><a/>
            link.href = url;
            var clickevent = document.createEvent("Event");
            clickevent.initEvent("click", true, false);
            link.dispatchEvent(clickevent);

  3. #3
    Ext JS Premium Member
    Join Date
    Apr 2010
    Posts
    20

    Default

    Much simpler:

    Code:
    window.location = "url";

  4. #4
    Sencha User
    Join Date
    Nov 2010
    Location
    Italia, Bologna
    Posts
    9

    Default

    Need to open in another tab(as popup)

Similar Threads

  1. Navigate in nestedList
    By Yoann M. in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 21 Mar 2011, 2:20 AM
  2. how to navigate from login page to home page in gxt
    By venu in forum Ext GWT: Help & Discussion (1.x)
    Replies: 8
    Last Post: 29 Jun 2010, 1:46 AM
  3. navigate to the first page after grid sorting
    By reecegwt in forum Ext GWT: Discussion
    Replies: 5
    Last Post: 18 Nov 2009, 6:38 AM
  4. Navigate DateField with keyboard?
    By dbassett74 in forum Ext 3.x: Help & Discussion
    Replies: 16
    Last Post: 20 Oct 2009, 9:51 PM
  5. how can i navigate to a new web page in panel
    By leonardzheng in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 21 Jan 2008, 9:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •