Hey guys - long time no ask a question
I'm using the HTML Object Library to navigate a web page and automate a process. A one point a message box comes up asking me if I wish to proceed.
The message box is generated from the following javascript function which is called by the onClick event of the button:I can't edit the script part of the page, so i figured I could just change the onclick event to the javascript I wanted and bypass the function, so I changed it to:Code:function loadExport() { theTransferID = document.detailsForm2.xLayoutLoad.options[document.detailsForm2.xLayoutLoad.selectedIndex].value; if (confirm("Are you sure you wish to load this layout?")) { self.location.href="export.php?xType=orders&xCmd=load&xTransferID="+theTransferID+"&xUsername=Steve&xRandID=782399094"; } }but when I click the button - it just hangs, and doesn't load the page.Code:onclick='javascript:self.location.href="export.php?xType=orders&xCmd=load&xTransferID=13&xUsername=Steve&xRandID=782399094";'
Any ideas why? Am I changing the javascript correctly (the TransferID is put is correct btw)
I could hook the window and press the button through code, but I'd like to do something a little neater if possible.
cheers
edit - sidestepped the issue




Reply With Quote