jquery - Trying to load external website page from my ASP.NET MVC3 app into a popup -
I have an ASP.NET MVC3 website, which needs to display the card verification page in the popup. The card verification page is actually on the external website and I can not change it One of the requirements is that I have to make a POST request on that external page and pass the custom headers so that the card number can be pre-populated in their text box. I tried to make javascript jj call, but it can not load
XMLHttpRequest ... because they did not enable cross domain access If I use custom verb and to post a webclient in it and then download a feedback string and then send it back to a view, then it really does not work because I'm happy with my page Th lets get HTML source and it lost all related contexts as scripts and CSS files they no longer point to my site. Is there any way of doing it? Ideally i want to load my page with a post request in some iframe
what do you do Load the initial content for popup and popup from your website This content contains a hidden form with all data, which must be in the card verification service from POST . After the page has loaded (i.e. document ready) you use javascript to automatically hide the hidden form. If Javascript is not available ( & lt; noscript & gt; ... & lt; / noscript & gt; ) you can show a simple submit button to submit a hidden form to a user Have to click.
Comments
Post a Comment