Results 1 to 6 of 6

Thread: components in other browser window

  1. #1
    Ext User
    Join Date
    Nov 2008
    Posts
    39
    Vote Rating
    0
      0  

    Default components in other browser window

    Hi,

    although this is not really GXT specific I want to ask this question. Does any of the users of GXT have experience with using a second browser window to hold some part of your GWT/GXT components?

    I am currently in the process of exploring the features in native Javascript to see how stuff works. GWT/GXT does only have the static Window and Document classes which only refer to the 'current' document, what if I want to reference another window?


    Chris

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    You could write your own bridge between two windows, but i suggest to not do that. You should better stick in one window without opening other ones.

  3. #3
    Ext User
    Join Date
    Nov 2008
    Posts
    39
    Vote Rating
    0
      0  

    Default

    What do you see as problem to do so, except for that bridge needs to be build between the the pages?

  4. #4
    Ext User
    Join Date
    Nov 2008
    Posts
    39
    Vote Rating
    0
      0  

    Default

    Found one pitfall... Because the events are now defined as "new EventType()" both windows have a different instance of the same event. Therefore an check on event.getType() == Events.Click always fails between two windows. Using the 'oldschool' event numbers works better because an integer in one window is compared on value to the integer in the other.

  5. #5
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    1
      0  

    Default

    if you later have a working example of this "bridge" it would be nice to see example code :-)
    This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.

    GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts Search Results Advanced Search form Category overview http://www.extjs.com/forum/showthrea...041#post410041

  6. #6
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    Quote Originally Posted by chriswesdorp View Post
    Found one pitfall... Because the events are now defined as "new EventType()" both windows have a different instance of the same event. Therefore an check on event.getType() == Events.Click always fails between two windows. Using the 'oldschool' event numbers works better because an integer in one window is compared on value to the integer in the other.

    Yes and this is expected. They are two different apps. You would channel this over your bridge (own transmitting protocol)

Posting Permissions

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