Click here to Skip to main content
11,927,324 members (51,264 online)
Rate this:
Please Sign up or sign in to vote.
See more: Javascript
May be this is a silly one but i don't really know the solution.
My site when accessed using IE9 browser gives javascript pop up due to syntax error, now i don't really know the solution as the syntax error is with some script tag which is dynamically generated.
Could any one please help.
Posted 22-Mar-13 2:37am
ryanb31 22-Mar-13 7:53am
Dynamically generated by whom?
phil.o 22-Mar-13 8:14am
Technically not a valid question. You need to describe which error exactly, where it comes, and provide a little bit of existing code for us to analyze your problem.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Try firefox, open the page and then open the debug console from extra -> web developer. You'll see the script tags are placed in paragraph elements. Pasted the code below.

<p><script type="text/javascript"></p>
<p>  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-38777756-1']);
<p>  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

Good luck!
sneha kavinkar 22-Mar-13 8:22am
Thanks for quick reply, i got the problem but i am struggling for solution as i have no control over this dynamic script.
E.F. Nijboer 22-Mar-13 9:29am
But this piece of javascript is in the page source directly from the server and not added dynamically client-side. It looks like this javascript was added as content.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.1 | Last Updated 22 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100