Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    I looked up Shopify's documentation and I found this page that describes how to add a proxy to your app:

    http://docs.shopify.com/api/tutorial...cation-proxies
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  2. #17
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,401
    Thanks
    11
    Thanked 595 Times in 575 Posts
    Quote Originally Posted by duyba008 View Post
    Well the good news is that I have seemd to make some progress. I'm getting this error though returned when I submit the form:

    A potentially dangerous Request.Path value was detected from the client

    Is that something that I can change on my end.
    that's not a standard JS error message, you'll have to check with the server that issued it.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%

  3. #18
    New Coder
    Join Date
    Aug 2013
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts
    SO i think I may have made some progress with the Iframe approach. How would I tell if there is a response from the server?

  4. #19
    New Coder
    Join Date
    Aug 2013
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Is there a way to show the response from the server in the iframe?

  5. #20
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,401
    Thanks
    11
    Thanked 595 Times in 575 Posts
    Quote Originally Posted by duyba008 View Post
    Is there a way to show the response from the server in the iframe?
    yes, there's lots of ways. you can have the iframe not be hidden. banner size is not bad: you can show a short park page like [ waiting for confirmation ] in the iframe above the form. When you submit to the form, you can show something like [ Thanks for Registering ] in that banner iframe from the POST response.


    Another option is to use ajax to submit the data instead of a form. jQuery make this very simple with it's $.ajax and $(form).serialize() tools. You would then get the POST response as text from the server, and you can show it in a popup, div, desktop notification, etc.

    finally, there's a third option that might be the simplest if you want to use a form submit and don't want to mess with jQuery and don't care about IE7. in your response page, you have a snip of javascript that sends a message to the form page. you listen for that message event on the form page, and alert the user when a message arrives using the event.data you send from the form response page. lookup window.postMessage() or re-ask on a new thread for help if you get stuck.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%


 
Page 2 of 2 FirstFirst 12

Posting Permissions

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