I am running the capScrAndSendMail() function using the following JScript file upon the click of a link as a reference in one of my pages (within the function, I am calling upon an applet embedded in the page which contains a method that returns a String value):
When I render my page in IE 6, I get the following error on the scripting console (i.e. the alert on the status bar):
This happens as soon as I load my page (without clicking on the link i.e.). When I refresh my page, the error seems to vanish.
Can anyone help me with this? Thank you.
P.S. I'd really like to know which line the scripting console is referring to. Is it purely indicating the line in the JScript file? Or in the rendered HTML page? Does it take blank lines into account while indicating the line number? [ July 02, 2008: Message edited by: Sridhar Venkataraman ]
Thanks. I managed to debug it (or so I think for the time being atleast).
I have another pressing issue and I don't know if it can be solved using JavasScript.
The implementation works fine, except that as soon as the applet method is called and the file save dialog thrown, the browser appears to freeze (i.e. the file save dialog cannot be used). I have to take the focus away from the applet by clicking outside it (alt-tabbing or using the taskbar) and then return to the applet in order to make it functional and usable.
Are there any workarounds for this at all? I'd be really grateful to hear them. Although I've met the functional requirements that my application needs, this behavior is a body blow because its grossly user-unfriendly .
The browser is IE 6 and the platform is Windows 2000/XP. [ July 02, 2008: Message edited by: Sridhar Venkataraman ]