Hi all, i am using WebBrowser Control (csharp) in my application and my question is how i can hide javascript error :ehh: when i write in it.
thanksCode:webBrowser1.Document.Write(/*some html tags here*/);
Printable View
Hi all, i am using WebBrowser Control (csharp) in my application and my question is how i can hide javascript error :ehh: when i write in it.
thanksCode:webBrowser1.Document.Write(/*some html tags here*/);
it is not possible to Hide JavaScript error by visual stadio becuase such errors are handled with JVM (Java Virtual Machine) ar run-time. you should change your code somehow that prevent to occure such error at run-time. when you get the error in browser click on the error at bottom-left of the IE status bar and see detail to find which lines causes error then try to solve it.
are you sure ??? :confused:
would you please tell what kind of error are you talking about.
Compile Time error in visual studio, run-time error or java script error in the browser.
and please paste the error message here.
:ehh: euh, javascript error
All please note the difference between "JavaScript" and "Java" when continuing to comment on this topic.
so you can not handle that kind of error in Visual Studio.
I don't know if there are any tools in Visual Studio to debug Javascript. Besides the "script" that Internet Explorer uses is actually "JScript", Microsoft sat in on the JavaScript standardization discussions and just broke with anything they didn't agree with.
What makes this even harder is that though Mozilla Firefox and Google Chrome have very good debugging tools they implement JavaScript so if the problem is a JScript issue it doesn't help. If you can use JQuery, its a good lib and works well on all platforms. Another solution is to try to use another openly developed cross platform JavaScript lib like the Yahoo User Interface or others; http://en.wikipedia.org/wiki/Categor...ript_libraries