Jump to content

Recommended Posts

Posted (edited)

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

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.


  • Topics

  • Latest posts...

    1. 459

      UK Pensioners in Thailand Face New Scrutiny Over Pension Fraud

    2. 69

      Pattaya beach turns into unregulated booze and kratom market

    3. 116

      Official: Trump Nominates RFK Jr. for Health Secretary

    4. 459

      UK Pensioners in Thailand Face New Scrutiny Over Pension Fraud

    5. 168

      Why I left Thailand

  • Popular in The Pub


×
×
  • Create New...