Skip to content
View in the app

A better way to browse. Learn more.

Thailand News and Discussion Forum | ASEANNOW

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Irritating Script Bug

Featured Replies

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

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

  • Author
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.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.