[CLOSED] MessageBus

  1. #1

    [CLOSED] MessageBus


    I am just taking a look at the new EXT.NET 2.0

    Amazing job. Great new controls and features.

    In regard to my first post http://forums.ext.net/showthread.php...-best-approach I think MessageBus will simplify desktop windows synchronization functionality.
    Is it shared between all windows doesn´t matter they load different aspx files?
    If so, better yet. It is no longer needed a Desktop (needed in the solution I built)

    Am I wrong?

    Am I about to throw my coding to the trash bin? ;-)

    Last edited by Daniil; Mar 29, 2012 at 10:47 PM. Reason: [CLOSED]
  2. #2
    Unfortunately, MessageBus doesn't pass events to the child iframes (communication is possible within one page only (it means browser page))
    We have ideas to add support of cross paging events but it is not implemented yet
    Vladimir Shcheglov
    Sr. Developer
  3. #3

    We implemented passing of message bus events between iframes, now event is fired in iframe (or parent page) is available in parent page and other iframes
    The code is available in SVN
    Vladimir Shcheglov
    Sr. Developer
  4. #4
    Glad to read that.

    Does it mean also cross-page messaging?

    I mean, if I open a brand new window with CreateWindow in iframe mode loading another aspx, will I be able to message to/from that page to/from others? (to accomplish what I ment in the referenced post).

    Lets say I have a window with CountryUpdate.aspx page loaded. When I update a country in database I fire a message 'CountryUpdated' throught that bus. Any other loaded page (countrylist.aspx, citiesByCountry.aspx, and so...) in different iframe mode windows could be listening to that bus and then notice about update and refresh grids and what ever controls they need to update. Would that be possible?

    I 'm not yet moved to EXT 2, but in regard that post I'll stop improving my code if that functionality will be available here.

  5. #5

    Does it mean also cross-page messaging?
    Yes, just two conditions:
    - page must be in the same domain (cross domain messaging is not supported)
    - messaging between browser windows (for example, if you have pages in different browser tabs) is not supported

    So, it means that messaging is possible between iframes and main page (main page and pages inside iframes must be in the same domain)
    Vladimir Shcheglov
    Sr. Developer
  6. #6
    Great! Can't wait to try it. May be next week end.

    Thank you very much

Similar Threads

  1. [CLOSED] Messagebus form iframe in IE8 keeps on firing
    By CarpFisher in forum 2.x Premium Help
    Replies: 2
    Last Post: Jul 26, 2012, 12:03 PM
  2. Replies: 6
    Last Post: Jul 04, 2012, 4:03 PM
  3. [CLOSED] MessageBus publish method
    By gets_gui in forum 2.x Premium Help
    Replies: 14
    Last Post: Apr 26, 2012, 8:22 PM

Tags for this Thread

Posting Permissions