1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    18
    Answers
    3
    Vote Rating
    0
    duke9985 is on a distinguished road

      0  

    Default Answered: Post request on other domain

    Answered: Post request on other domain


    Hello,

    I am developing an iPad/iPhone/Android application for a customer using Sencha touch 2.
    • I need to do HTTP POST to external website
    • I would like to open external webpage in my application (inside a modal view for example)
    For what I have read in the doc, the only way to do it will be to use jsonp and/or cors. None of them are implemented on the customer side and will not be.

    I am really surprise sencha touch 2 does not provide smth for that >

    The only option I see right now would be to use phonegap to do the packaging. But using phonegap for the packaging is quite inconvenient.

    Can someone help me with that ?

    Thanks in advance,
    loic

  2. Try Phonegap, AFAIK you don't have cross domain issues executing inside a WebView. But, I didn't try it myself.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You cannot. You will need to use a JsonP request which is only GET.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    18
    Answers
    3
    Vote Rating
    0
    duke9985 is on a distinguished road

      0  

    Default


    Thanks for your reply

    Quite amazing to have such a good support

    Anyhow, I do need to do a post.

    Should I package with phonegap then ?

  5. #4
    Sencha User
    Join Date
    Apr 2008
    Location
    Buenos Aires, Argentina
    Posts
    67
    Answers
    1
    Vote Rating
    1
    elmasse is on a distinguished road

      0  

    Default


    Try Phonegap, AFAIK you don't have cross domain issues executing inside a WebView. But, I didn't try it myself.

  6. #5
    Sencha User
    Join Date
    Jan 2012
    Posts
    48
    Vote Rating
    0
    $p00ky is on a distinguished road

      0  

    Default


    You can: "standardForm: true".

  7. #6
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Quote Originally Posted by $p00ky View Post
    You can: "standardForm: true".
    Only for forms, not store/proxy or regular request
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  8. #7
    Sencha User
    Join Date
    Feb 2012
    Posts
    18
    Answers
    3
    Vote Rating
    0
    duke9985 is on a distinguished road

      0  

    Default Webview ?

    Webview ?


    Hey guys,

    Now I am using phonegap, the cross-domain is not an issue anymore.

    One question tho. I want to be able to open external webpage inside a panel.

    I did it using ajax to get the page back, and then put inside the :html of the panel.

    The result does not look good tho. and some link get broken.

    What is the best way to have a kind of webview ?

    Cheers
    Loic

  9. #8
    Sencha User
    Join Date
    Jan 2012
    Posts
    48
    Vote Rating
    0
    $p00ky is on a distinguished road

      0  

    Default


    Use an iframe for that.
    But that's a different problem, maybe you should open a new topic, or look for answers on the forum, as there might be answers already.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi