Click here to Skip to main content
Rate this: bad
good
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 www.turbofeedback.com 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
Comments
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
good
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']);
  _gaq.push(['_trackPageview']);</p>
<p>  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();</p>
<p></script></p>
 

Good luck!
  Permalink  
Comments
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 OriginalGriff 390
1 Sergey Alexandrovich Kryukov 329
2 Afzaal Ahmad Zeeshan 244
3 BillWoodruff 210
4 Maciej Los 192
0 OriginalGriff 5,560
1 DamithSL 4,476
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 22 Mar 2013
Copyright © CodeProject, 1999-2014
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