Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Problem with IE 7 and Javascript

  1. #1
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default Problem with IE 7 and Javascript

    IE 7 is not displaying any javascript... though firefox is... it is very annoying because I have to finish something and i don't like using firefox, please, how do i re-enable javascript with IE 7?

    Please i need this solved very soon or i'm totally screwed.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Resetting to the defaults in the security tab would most likely take care of that. To be more specific, though other things might take precedence:

    Tools > Internet Options > Security > Custom Level

    scroll to near the bottom and make sure that:

    Scripting > Active Scripting

    is enabled.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default

    k thnx

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You'd have much better luck debugging with Firefox, though... IE's error console is notoriously useless. I use Konqueror primarily, but I still debug complex scripts with Firefox purely because its error messages are more informative than those of any other browser I've used.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I have to go with Twey on the issue of debugging scripts. At the same time, if your goal is mainly to get scripts recognised in IE, I'm certain that I haven't steered you in the wrong direction.

    I would like to add that IE's error reporting is not as useless as Twey makes out, but it is by far inferior to FF's.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I would like to add that IE's error reporting is not as useless as Twey makes out
    The only two JScript error messages I have ever seen it give (or at least remember it giving; admittedly I haven't used it seriously in a fairly long time) are "object expected" (which it uses for practically everything) and "unknown runtime error" (which it uses for everything else). On top of this, it rarely actually points to the right line, and it's quite common to find that the position to which it is pointing is several hundred lines away from the actual source of the error, in a different file. In my experience, the dialogue box offers no more real information than the little yellow warning triangle in the status bar.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by Twey View Post
    The only two JScript error messages I have ever seen it (sic IE) give . . .
    This probably will be of use to others, but right now (in this post of mine) it is just you and I talking, comparing notes, as it were. I would never say that IE's error reporting is better than that of the Fire Fox browser's. However, it does often give line numbers, and if the script is on the page, those numbers are as accurate (+-1) as FF's. If the script is external, they are also as accurate - for that external script's line numbers.

    Admittedly, this is something that is hard to get used to, comes with experience. But when the error is specific to IE, and it is IE that you are trying to debug, it is an invaluable aid.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    If the script is external, they are also as accurate - for that external script's line numbers.
    No, I sat down and worked this one out -- the line is that in the generated code. Generated code, as seen by IE, means (usually) code with all remote <script> elements replaced with the literal content of their file.
    But when the error is specific to IE and it is IE that you are trying to debug, it is an invaluable aid.
    Microsoft Visual Studio includes a debugger for IE that is far more useful.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by Twey View Post
    No, I sat down and worked this one out -- the line is that in the generated code.
    That hasn't been my experience. It is the line number in whatever file the error occurs. But by even pursuing this avenue, you are admitting that:

    Quote Originally Posted by Twey
    The only two JScript error messages I have ever seen it give (or at least remember it giving;
    was a bit overstated. Trust me, I have no reason to lie about this. IE's error reporting is useful if you get used to it. And it isn't nearly so clear or so helpful as is FF's.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Er, was that a misquote? I don't see what relevance that quote bears.

    It is at least very close to useless, since I'm a) not going to sit down and work that out when I can more easily and accurately find the problem with strategic log calls in the code, and b) entirely certain that that's all of the case. There have been exceptions where I simply can't work out what's accounting for the extra/missing lines.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •