Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts

    Unspecified Error, aka why IE can perform lurid acts upon my person

    Is there any way to get decent error reporting out of IE?

    I have scripts that run great in firefox... monitored with firebug and everything else with NO errors that are throwing "Unspecified Error" in IE on a line that DOESN'T EXIST.


    I'm using scriptaculous' drag 'n drop with prototype. And like I said... works great in firefox. IE? /fail

    Does anyone have any ideas or tips for troubleshooting mystery errors like this?

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Quote Originally Posted by ohgod View Post
    Is there any way to get decent error reporting out of IE?

    I have scripts that run great in firefox... monitored with firebug and everything else with NO errors that are throwing "Unspecified Error" in IE on a line that DOESN'T EXIST.


    I'm using scriptaculous' drag 'n drop with prototype. And like I said... works great in firefox. IE? /fail

    Does anyone have any ideas or tips for troubleshooting mystery errors like this?
    No way. IE is famous for his primitive error console.

    Still, there might be another solution: learn javascript and write your own codes. Don't use Scriptaculous, JQuery, Prototype or whichever framework. No framework/library in the world will ever be able to cover crossbrowser all the coders' needs, all the time, all over. And when a framework "cracks", it really hurts because it is almost impossible to debug a framework. It is huge and absurdly intricate.
    Last edited by Kor; 09-24-2008 at 03:09 PM.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts
    i totally understand what you mean... and i sorta agree. but just because i don't understand why my car is making a funny noise doesn't meant i want to build my own car from scratch. i would slap an error code reader on there and look it up in the hanes manual.

  • #4
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Show us a link to a test page, maybe we could do something...

    In coding job, there is no ready-made "car". Frameworks are surrogates. There is no professional way to avoid learning javascript.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #5
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts
    i know, but i'm not a professional. nor do i intend to put that idea out there haha.

    i don't get paid for any of it. i'm just a volunteer doing what i can to help some folks out.

    http://ims.tssar.com/login.php

    the page is private, but i'll pm you some generic creds so you can see what i mean.

  • #6
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts
    well, i've managed to tinker with it enough that the error is now an 'Object Expected'.

    moot i suppose, since it still won't tell me where or why

  • #7
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts
    not sure if it will ever help anyone in the future, but just in case: after some research i find that IE gets all upset if you manually update the dom and then try to use those draggable and droppable elements afterwards. to help this i added a line to my script that removes all the drag\drop elements and then recreates them after the update. while this helps maybe 75% of the time i do still receive the unspecified error periodically. but hey, at least it works a few times before pooping the bed now.

  • #8
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    At a first glace (might be or might be not the source of your problems, but it is an error, definitely): You have two contradictory code lines: Doctype and declaration.
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    Your Doctype is HTML, while your declaration is XHTML. Should be either HTML (without an xmlns declaration) or XHTML with and XHTML Doctype, such as:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • Users who have thanked Kor for this post:

    ohgod (09-24-2008)

  • #9
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts
    ah, whoops. an old artifact... not sure how i managed that.

    removed the xml line.

    as might be expected, the error continues after a few drag\drops.

  • #10
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    I can not reproduce the error you are talking about. I am able to drag'n'drop without error (IE7/XP SP3).
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

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