Jump to content

Irritating Script Bug


Richard W

Recommended Posts

http://www.thaivisa.com/forum/index.php contains the statement fragment

if ( ajax_loaded && use_enhanced_js )

Unfortunately, ajax_loaded is not defined, and, as I have the browser set to enable debugging (a pain to find and re-enable if I disable it), I keep being prompted to debug, which is irritating.

It may be relevant that ActiveX is disabled; IT does not consider viruses an appropriate part of the browsing experience.

OS: Windows 2000 Professional

Browser: Internet Explorer 6.0.2800.1106CO

Link to comment
Share on other sites

May I ask why are you running IE in debug mode on a public forum, Richard?

I believe the relevant box I have ticked in the 'Internet options, advanced tab' is something like 'display a notification about every script error'. When it encounters an error, then it invites me to enter debug mode. This is useful if I am using one of my utility web pages, which I do most weeks.

In this case I used the debugger to provide some context for the bug. For example, while it may have been fixed, it did not surface when I looked at pages using:

OS: Windows XP Home Edition (+SP2 +many other patches)

Browser: Internet Explorer 6.0.2900.2180.xpsp_sp2_gdr...

Also, there is no apparent problem with Mozilla Firefox 1.5. However, when I look at the Java console, I find a whole host of errors, such as:

Error: topic_scroll_to_post is not defined

Source File: http://www.thaivisa.com/forum/index.php?showtopic=53456

Line: 3151

Error: Selector expected. Ruleset ignored due to bad selector.

Source File: http://pagead2.googlesyndication.com/pagea...ug=9&u_nmime=22

Line: 2

Error: Error in parsing value for property 'cursor'. Declaration dropped.

Source File: http://www.thaivisa.com/forum/index.php?sh...pic=53456&st=15

Line: 1383

Error: Unknown property 'filter'. Declaration dropped.

Source File: http://www.thaivisa.com/forum/index.php?sh...pic=53456&st=15

Line: 1573

Error: Unknown property 'word-wrap'. Declaration dropped.

Source File: http://www.thaivisa.com/forum/index.php?sh...pic=53456&st=15

Line: 0

Error: ajax_loaded is not defined

Source File: http://www.thaivisa.com/forum/index.php?sh...pic=53456&st=15

Line: 1997

I don't know how stable those line numbers are, though. As the pages are being generated from a database on the fly, the number of the relevant line may be changing quite rapidly.

I take the view that the more information I can provide about a problem, the better.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.



×
×
  • Create New...