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.

Thaivisa Javascript Error

Featured Replies

Whenever I load a page on my favorite website Thaivisa.com :D I get an annoying JavaScript error which means I have to confirm I do not want to debug the page. I assume I am not alone on this ?

The problem would seem to be caused by a rather dodgy PHP statement that never gets executed (enclosing it in single quotes may help) and therefore ends up in the JavaScript supplying an extra set of double quotes:

<script language="javascript1.1">page="<? echo "$pagename"; ?>";</script>

Any chance of removing it since it doesnt seem to be doing a lot, or fixing it :

<script language="javascript1.1">page="<? echo $pagename; ?>";</script>

or

<script language="javascript1.1">page='<? echo $pagename; ?>';</script>

would work i assume.

Sorry to whinge :D It's really annoying me :o

If i can help also PM me.

Malc

post-28752-1186116851_thumb.jpg

Edited by malcolmswaine

I think all they should do is to change <? echo $pagename; ?> to <?php echo $pagename;?>

Been there a long time. I just switched off the Javascript Debug so it stops popping up.

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.