ozziweb Posted March 28, 2013 Posted March 28, 2013 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <table width="597" border="0"> <tr> <td><script type="text/javascript" language="javascript"> <!-- var req = 'http://cobandcoimports.com/blue.php?dynamic_image=1'; function byId (id) { return document.getElementById ? document.getElementById(id) : document.all[id]; } function trigger() { byId('result_image').style.visibility = 'visible'; byId('result_image').src = (req + "&place=" + byId('place').value + "&state=" + byId('state').value + "&weight=" + byId('weight').value + "&handling=" + byId('handling').value + "&uniqueId=" + Math.round(Math.random()*1000000)); } //--> </script> <form method="get" id="frmQuery" onsubmit="trigger(); return false;" target="_blank" action="#"> <div align="center">Place: <input type="text" name="place" id="place" size="20" /> <select name="state" id="state"> <option value="">State</option> <option value="ACT">ACT</option> <option value="NSW">NSW</option> <option value="NT">NT</option> <option value="QLD">QLD</option> <option value="SA">SA</option> <option value="TAS">TAS</option> <option value="VIC">VIC</option> <option value="WA">WA</option> </select> <input type="hidden" name="weight" id="weight" value="109" /> <input type="hidden" name="handling" id="handling" value="50" /> <input type="hidden" name="popup" value="1" /> <input type="submit" name="btnSubmit" value="Calculate" onclick="trigger(); return false;" /> </div> </form> <div id="result"> <div align="center"><img id="result_image" width="500" height="20" alt="Postage cost" style="visibility: hidden;" /></div> </div></td> </tr> </table> </body> </html> Hi Guys I have paid a guy to try and fix this for me and have come up stumps. If I use this code in my browser (IE9) outside of the oscommerce store as in a HTML template, it works fine. If I copy and paste it to form part of a product description, it doesnt function Using mozilla it works fine but using IE9 it just wont work, IE10 it also works. I cant figure it out, so hoping someone here can see why it doesnt work when pasted in a product description. A live version of this script is here, http://smbfinance.com.au/catalog/product_info.php?products_id=29 if you type melbourne into the calculator you get a result with mozilla and IE10, but nothing with IE9. However as mentioned running the template not in the oscommerce description it functions fine in IE9 Thanks Richard
burt Posted March 28, 2013 Posted March 28, 2013 I hope you got a refund from "I have paid a guy to try and fix this for me and have come up stumps." You cannot have a form inside a form, anyone who takes money, calls themself a developer and doesn't know this needs their head checked. It's getting so much worse :( So: <form cart_quantity> <form shipping> </form end form shipping> </form end form cart_quantity> is WRONG <form cart_quantity> </form end form cart_quantity> <form shipping> </form end form shipping> is BETTER
Recommended Posts
Archived
This topic is now archived and is closed to further replies.