Results 1 to 2 of 2

Thread: Most unobtrusive way to communicate with ext...

  1. #1

    Default Most unobtrusive way to communicate with ext...

    I have a server side framework that I'd like to use to "initialize" some ext-js based components I've created. I was wondering if anyone had any suggestions as to how I might go about doing this as unobtrusively as possible.

    The best example I can give in terms of what's going on here is that I have my pages, and when they're generated, the server is going to trigger certain UI widgets to appear along with the page.

    So far I've been prototyping these as very simple statement blocks injected into the document:

    Code:
    <script type="text/javascript">
         myCustomizedEXT.getInstance().addLink("Home", "/");
         myCustomizedEXT.getInstance().addLink("Administration", "/Admin");
    </script>
    Is there a prettier way of getting this done, or is what I've got above pretty much what most people are doing to have a server signal the client side of various things that need to be done?

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    If you don't want to use an extra request then this is probably the best way to do this.

    ps. For links you could also have the server add ths links to the HTML markup and in Ext.onReady read the links from the markup and add them to your own app.
    This has the advantage that the links are still visible, even if javascript is disabled.

Similar Threads

  1. Communicate Extjs
    By saadkhan in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 27 Feb 2010, 8:27 AM
  2. Ext and Accessibility (Unobtrusive Javascript)
    By daniel.rochetti in forum Community Discussion
    Replies: 16
    Last Post: 2 Oct 2009, 11:40 AM
  3. Dynamic Unobtrusive Type and Render in TableGrid
    By askohen in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 1 Apr 2008, 7:33 AM
  4. Unobtrusive HTML table
    By timcopeland in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 16 Mar 2008, 9:14 PM
  5. communicate/interact between classical js and Ext
    By mxu in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 8 Jan 2008, 9:04 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
  •