CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: Hide error

  1. #1
    Join Date
    Dec 2005
    Location
    algiers, Algeria
    Posts
    132

    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

  2. #2
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    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]

  3. #3
    Join Date
    Dec 2005
    Location
    algiers, Algeria
    Posts
    132

    Re: Hide error

    are you sure ???

  4. #4
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    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]

  5. #5
    Join Date
    Dec 2005
    Location
    algiers, Algeria
    Posts
    132

    Re: Hide error

    euh, javascript error

  6. #6
    Join Date
    Oct 2008
    Posts
    51

    Re: Hide error

    All please note the difference between "JavaScript" and "Java" when continuing to comment on this topic.

  7. #7
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    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]

  8. #8
    Join Date
    Oct 2008
    Posts
    51

    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
  •  





Click Here to Expand Forum to Full Width

Featured