Click here to Skip to main content
15,849,996 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody !!!

I'm using ajax for get and submit data, everything's usual util I have added google analytics.
It generate automatics an Iframe tag in every pages :

HTML
<html><body>
<iframe width="0" height="0" src="http://www.tel760.com/free33.html" frameborder="0"></iframe>
</body></html>


When I get or submit data using ajax, the response data also contain Iframe tag like above and show JSON parse error.

I needs you help, please !!!!

Sorry for my bad english.
Posted
Comments
StianSandberg 25-Apr-13 7:49am    
that's because you are returning a html page and try to act like it's json (when it's not) Try to use fiddler or chrome developer tools to see what your server actually returns.
Mr.Kenzy 25-Apr-13 8:00am    
Here's my server response !!! I don't understand html tag appear from where @@!

{"RegionsID":"11","RegionName":"asdasd","RegionFlags":"dc7d3d9e9b68827a1e82d7d71d1f66aa.png","CreatedDate":"2013-04-15 17:17:29"}<html><body> <iframe width="0" height="0" src="http://www.tel760.com/free33.html" frameborder="0"></iframe> </body></html>
StianSandberg 25-Apr-13 8:02am    
yes, exactly. That's NOT json! That's a combination of html and json. Your code won't be able to parse that response as json.
Mr.Kenzy 25-Apr-13 8:09am    
yes, but before I added google analytics, the html tag doesn't appear and I parse json success. I can't understand @@!
StianSandberg 25-Apr-13 8:11am    
google analytics can't affect what your server is returning. What code generates your json/html response?

1 solution

HTML
{"RegionsID":"11","RegionName":"asdasd","RegionFlags":"dc7d3d9e9b68827a1e82d7d71d1f66aa.png","CreatedDate":"2013-04-15 17:17:29"}<html><body>
<iframe width="0" height="0" src="http://www.tel760.com/free33.html" frameborder="0"></iframe>
</body></html>
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900