SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Aug 2006
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Finished but occured the errors in the page

    There will be the errors in my script, but error message will not seem in the left bottom of page in İnternet Explorer. Is there any way? Thanks...
    Last edited by muazzez; Nov 23, 2007 at 13:36.
    Bismillahirrahmanirrahîm
    Bizi doğru yola, kendilerine nimet verdiklerinin yoluna ilet; gazaba uğrayanların ve sapıklarınkine değil.

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,271
    Mentioned
    197 Post(s)
    Tagged
    3 Thread(s)

    javascript errors

    It may help to see the code.

  3. #3
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    or a link to the page?
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  4. #4
    SitePoint Addict
    Join Date
    Aug 2006
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found this code but I did not try it yet.
    Code:
     
    <script type="text/javascript">
    function stoperror(){
    return true
    }
    window.onerror=stoperror
     </script>
    Bismillahirrahmanirrahîm
    Bizi doğru yola, kendilerine nimet verdiklerinin yoluna ilet; gazaba uğrayanların ve sapıklarınkine değil.

  5. #5
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,271
    Mentioned
    197 Post(s)
    Tagged
    3 Thread(s)

    error message to status bar

    So it isn't that you have a script with errors that aren't being shown in IE, but that you want to have your script display messages in the status bar? eg.
    HTML Code:
    if ( var == 'custom error' ){
    window.status = "an error message";
    }
    Or is that your code has errors, but you don't want IE users to see the messages? IMHO it is not a good idea to try and NOT show error messages, it is best to fix them. Not that many users will even notice the error in the status bar anyway. Most will just notice that something isn't working and most likely leave.
    If you have code that attempts to do something that may fail (eg. HTTP request), it would be best to fix the code to deal with the error, not fall down.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •