Hello,

I have problem, I am using this code to get the shopping cart in Iframe when i click on the button. I am using GET method for this as I have to get the product id and value.

I have two pages, one for products and one for iframe where i have to load my shopping cart.

The code for both the page is below :

Product.html

<FORM METHOD="get" ACTION="cart.htm"><INPUT TYPE="hidden" NAME="Product_Code1" VALUE="9781586487409"><INPUT TYPE="hidden" NAME="Quantity1" VALUE="1"><INPUT TYPE="submit" Value="Buy Now"></FORM>

Cart.html

<iframe id="frame1" height="700" width="620" scrolling="auto" onload="SetHeight()" style="border:none;">
</iframe>

<script language="javascript" type="text/javascript">

var ZnodeSitename = 'http://example.com'; //New Znode public Affairs URL.
if (window.location.search.substring(1) == "Screen=ACCOUNT") {
var objFrame = document.getElementById("frame1");
objFrame.src = ZnodeSitename + "Account.aspx"

}
else if (window.location.search.substring(1) == "") {
var objFrame = document.getElementById("frame1");
objFrame.src = ZnodeSitename + "ShoppingCart.aspx"
}
else {
var objFrame = document.getElementById("frame1");
objFrame.src = ZnodeSitename + "WebServiceClass.aspx?" + window.location.search.substring(1);

}

function SetHeight() {
var objFrame = document.getElementById("frame1");
var the_height = objFrame.document.body.scrollWidth;
objFrame.height = the_height

}
</script>

Note : I do not want to show querystring in url and i cannot use url rewrite for this. Can we do this with some javascript. please help me, thanks in advance.