Skip to main content
GameDev.net gamedev.net
🔒 Locked

C# and JavaScript = Evil.

Started by l0ki Sep 9, 2005 at 10:51 AM 0 replies 700+ views
Original Post
l0ki
l0ki
It would seem that once again JS is the bane of my life... Heres the deal: I have a tool that captures data sent to and from a webserver from a browser. The browser is an AxSHDocVw.WebBrowser object embeded into my application. Everything works as intended until I come to a page with &#106avascript methods on it, in particular the window.close() method. When my application catches a popup it replicates itself and carries on collecting the data, however when it comes to the window.close() method being evaluated, the whole application closes down? Argh! Does anyone have any info about how to stop particulart &#106avascript, or js as a whole? I would've caught the issue and deblt with it in the WindowClosing method for the webbrowser, but due to a bug in .NET the event doesn't get fired.. Thanks in advance. Lokes.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.