Hybrid View

  1. #1
    Sencha User junkfd's Avatar
    Join Date
    Nov 2011
    Location
    Jakarta - Indonesia
    Posts
    8
    Vote Rating
    1
    junkfd is on a distinguished road

      1  

    Default XmlP (The JsonP for XML data)

    XmlP (The JsonP for XML data)


    Do you remember JsonP ?
    Here I give you the XmlP …

    Detail :
    AjaxProxy cannot be used to retrieve data from other domains. If your application is running on http://domainA.com it cannot load data from http://domainB.com because browsers have a built-in security policy that prohibits domains talking to each other via AJAX.

    If you need to read data from another domain and can't set up a proxy server (some software that runs on your own domain's web server and transparently forwards requests to http://domainB.com, making it look like they actually came from http://domainA.com), you can use Ext.data.proxy.XmlP and a technique known as Xml-P (Xml with Padding), which can help you get around the problem so long as the server on http://domainB.com is set up to support Xml-P responses. The XmlP is based on Default JsonP created by Ed Spencer. Just a little modification add for working with XML. See http://market.sencha.com/addon/xmlp for more details.


    Screenshot :
    XmlP.PNG

    Code : http://market.sencha.com/addon/xmlp
    Download : http://market.sencha.com/addon/xmlp


    Regard,
    Jimmy Fines L.Tobing
    Jakarta - Indonesia
    Last edited by junkfd; 16 Jun 2012 at 1:47 AM. Reason: screenshot too little

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,197
    Vote Rating
    482
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Thank you for the contribution. FYI, you may want to make the screen a little bigger.

    Scott.

  3. #3
    Sencha User junkfd's Avatar
    Join Date
    Nov 2011
    Location
    Jakarta - Indonesia
    Posts
    8
    Vote Rating
    1
    junkfd is on a distinguished road

      0  

    Default screenshot fixed

    screenshot fixed


    screenshot fixed ... Thank you

  4. #4
    Ext JS Premium Member
    Join Date
    Nov 2008
    Location
    Bangladesh
    Posts
    38
    Vote Rating
    0
    titu is on a distinguished road

      0  

    Default


    I think the link https://market.sencha.com/addon/xmlp doesn't work anymore. Any new link that I can get that code?

    Quote Originally Posted by junkfd View Post
    Do you remember JsonP ?
    Here I give you the XmlP …

    Detail :
    AjaxProxy cannot be used to retrieve data from other domains. If your application is running on http://domainA.com it cannot load data from http://domainB.com because browsers have a built-in security policy that prohibits domains talking to each other via AJAX.

    If you need to read data from another domain and can't set up a proxy server (some software that runs on your own domain's web server and transparently forwards requests to http://domainB.com, making it look like they actually came from http://domainA.com), you can use Ext.data.proxy.XmlP and a technique known as Xml-P (Xml with Padding), which can help you get around the problem so long as the server on http://domainB.com is set up to support Xml-P responses. The XmlP is based on Default JsonP created by Ed Spencer. Just a little modification add for working with XML. See http://market.sencha.com/addon/xmlp for more details.


    Screenshot :
    Attachment 36298

    Code : http://market.sencha.com/addon/xmlp
    Download : http://market.sencha.com/addon/xmlp


    Regard,
    Jimmy Fines L.Tobing
    Jakarta - Indonesia

Thread Participants: 2

Tags for this Thread