Click here to Skip to main content
11,812,712 members (72,276 online)
Rate this: bad
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 1:37am
ryanb31 at 22-Mar-13 7:53am
Dynamically generated by whom?
phil.o at 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 at 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 at 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
0 KrunalRohit 184
1 CHill60 180
2 Abhinav S 175
3 Palash Mondal_ 160
4 RyanDev 130
0 OriginalGriff 3,893
1 KrunalRohit 2,441
2 CPallini 2,240
3 Maciej Los 2,155
4 ppolymorphe 1,725

Advertise | Privacy | Mobile
Web01 | 2.8.151002.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