Results 1 to 5 of 5

Thread: Ext.ajax request

  1. #1

    Default Ext.ajax request

    hi i have read that ext.ajax is a singleton. how i can make 2 different requests for example a get on servlet1 and a post on servlet2?

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007


    The important part in the docs is:

    This class is a singleton and cannot be created directly.

    You can make multiple requests, you just don't create an instance of Ext.Ajax - there is one already - and if there is anything particular (i.e., non-common properties) about the request, you just change them in the request function's options parameter.

  3. #3


    thanks for the answer, but i don't understand all. my script is this at the beginning make a get request and servlet return a page with some links and when i click on a link i want make other request to get me the documet in the link. how i can do it?

  4. #4
    Sencha User
    Join Date
    Mar 2010


    There are many ways to do it..

    A couple of methods..

    1) You add onclick events to the links on the fly when you get the response.

    2) Add inline javascript to links calling a specific function which makes the request

  5. #5


    thanks i will try

Similar Threads

  1. add a param to all Ext.Ajax.request (tree, store, normal Ajax.request)
    By aj3423 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 26 Jan 2010, 9:18 AM
  2. autoLoad vs Ext.Ajax.request... loadScripts not working w/Ajax.request
    By zhegwood in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 6 Aug 2009, 3:28 PM
  3. Problem in send ajax request :The Ext.Ajax is null or not Object
    By flyingpig in forum Ext 1.x: Help & Discussion
    Replies: 7
    Last Post: 27 Aug 2007, 11:29 PM
  4. Ext.Ajax.request return Ext.Ajax has no properties
    By etiennesamson in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 4 Aug 2007, 11:43 PM

Posting Permissions

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