Hi,
I am completing the checkout process on my shopping cart and am sending the payment details to my bank.
I have sorted out all of the Cross Origin stuff and I'm receiving the expected resonse to my Payment form POST and puuting it into an iFrame (via forms target=responseiframe).
My documentation says I will receive will receive an XML response:
<?xml version="1.0"?>
<response CUSTOMERID="999" AMOUNT="999" STATUS="999" ERROR="999" ></response>
I can see via the browser inspector the document exists.
<iframe src="" name="responseiframe" id="responseiframe">
#document
<response CUSTOMERID="999" AMOUNT="999" STATUS="999" ERROR="999">
</response>
</iframe>
My question is, how do I access the document in the iframe and parse the attributes of the response tag.
I'd really appreciate some help on this as every conventional javascript method I've used (getElementById, contents.find, etc, etc) has proven fruitless.
Thank you