|
-
November 29th, 2008, 10:00 AM
#1
Hide error
Hi all, i am using WebBrowser Control (csharp) in my application and my question is how i can hide javascript error when i write in it.
Code:
webBrowser1.Document.Write(/*some html tags here*/);
thanks
-
November 29th, 2008, 10:24 AM
#2
Re: Hide error
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.
Please rate my post if it was helpful for you.  Java, C#, C++, PHP, ASP.NET
SQL Server, MySQL
DirectX
MATH Touraj Ebrahimi
[toraj_e] [at] [yahoo] [dot] [com]
-
November 30th, 2008, 04:11 AM
#3
Re: Hide error
are you sure ???
-
November 30th, 2008, 04:52 AM
#4
Re: Hide error
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.
Please rate my post if it was helpful for you.  Java, C#, C++, PHP, ASP.NET
SQL Server, MySQL
DirectX
MATH Touraj Ebrahimi
[toraj_e] [at] [yahoo] [dot] [com]
-
November 30th, 2008, 05:26 AM
#5
Re: Hide error
euh, javascript error
-
December 1st, 2008, 12:39 PM
#6
Re: Hide error
All please note the difference between "JavaScript" and "Java" when continuing to comment on this topic.
-
December 2nd, 2008, 05:27 AM
#7
Re: Hide error
so you can not handle that kind of error in Visual Studio.
Please rate my post if it was helpful for you.  Java, C#, C++, PHP, ASP.NET
SQL Server, MySQL
DirectX
MATH Touraj Ebrahimi
[toraj_e] [at] [yahoo] [dot] [com]
-
December 3rd, 2008, 10:13 AM
#8
Re: Hide error
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|