HELP! Quick coding question!

by ak2000
4 replies
  • WEB DESIGN
  • |
Hi, on this webpage...

My Forex Trading Success

I am getting this error...

"Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MATM)
Timestamp: Wed, 16 Feb 2011 07:03:24 UTC


Message: Expected ')'
Line: 10
Char: 164
Code: 0
URI: http://www.myforextradingsuccess.com/?mystique=jquery_init&ver=2.4.2"

It says it's missing a ")" but when I try searching the string that is causing the issue (http://www.myforextradingsuccess.com...init&ver=2.4.2) I can't find it!

The issue is that with Internet Explorer any page with that uses that WP theme displays as an ugly text page whereas it loads correctly with Chrome or Firefox

Any ideas as to where the error that is causing this is?

Thanks!!
#code #question #quick
  • Profile picture of the author Janet Sawyer
    Well I found the string it's on line 409 if that's of any help to you.
    {{ DiscussionBoard.errors[3373097].message }}
  • Profile picture of the author ak2000
    Thank you for pointing that out Janet, I can see string now...yet, where is it expecting the ")"???

    {{ DiscussionBoard.errors[3373222].message }}
  • Profile picture of the author jminkler
    Like in here

    if (isIE6) {
    jQuery('#page').append("<div class='crap-browser-warning'>You're using a old and buggy browser. Switch to a <a href='http://www.mozilla.com/firefox/' onclick="pageTracker._trackPageview('/outgoing/www.mozilla.com/firefox/?referer=http%3A%2F%2Fwww.myforextradingsuccess.co m%2F');">normal browser</a> or consider <a href='http://www.microsoft.com/windows/internet-explorer' onclick="pageTracker._trackPageview('/outgoing/www.microsoft.com/windows/internet-explorer?referer=http%3A%2F%2Fwww.myforextradingsu ccess.com%2F');">upgrading your Internet Explorer</a> to the latest version</div>");

    you have started your string with " so, you cannot use " within the entire string they have to be ' so onclick=" is ending the string, and right there is where it expects to see the )


    }
    {{ DiscussionBoard.errors[3378574].message }}
  • Profile picture of the author ak2000
    Thanks Jminkler, I've tried removing all that section of the code in the init.js.php template and the page still appears in "text" format BUT the error warning is not present

    So the cause must be somewhere in that piece of code or any of the functions that are called within it - so we know it's somewhere related to the init.js.php template in the Mystique theme...

    Any clues as to where to dig further on what is causing it?

    Thank you

    (aaaah, the joys of debugging...NOT!)
    {{ DiscussionBoard.errors[3379565].message }}

Trending Topics