miracle_potential Posted June 13, 2008 Share Posted June 13, 2008 Just wondered why this function wasnt working in Firefox <script type="text/javascript"> function Reload () { var basketrefreshingjs = document.getElementById('basket'); basketrefreshingjs.contentWindow.location.reload(true); } </script> Its called with this button it works in IE ( part of a PHP script I've written ) <a target="basketshowframe" class="maintxt" onmousedown="Reload();" onmouseup="javascript:basketshow.slideit();" href="../../basket/add/?action=add&ID=' . $row['ID'] . '">Add to Basket</a> I'm not a JS programmer so any help would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
miracle_potential Posted June 15, 2008 Author Share Posted June 15, 2008 Please anyone? Quote Link to comment Share on other sites More sharing options...
haku Posted June 16, 2008 Share Posted June 16, 2008 You can download the firebug extension for FF, and it will tell you what the errors are in your javascript. It will also do a million other things (best firefox extension there is if you are a developer). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.