Internet Exploerer jQuery getJSON not working?

Try putting the button inside of the like so.

Try putting the button inside of the like so: $("body"). Append( /* markup for div and btn here */ ); ...instead of using after().

. After is working in IE , I tried . Append , its not working yet.

– sm21guy Nov 23 at 5:32 What, precisely, is not working then? – Christopher Nov 23 at 5:39 JSON getting the data and display it out – sm21guy Nov 23 at 6:09 So, what does it display? In other words, does execution ever get to your if / else?

– Christopher Nov 23 at 9:03 Wait a second - looking at your other comments, are you getting something about "cannot send cross-domain message"? Is the target URL of your getJSON() call from a domain other than the one from which you're making the request...? – Christopher Nov 23 at 9:06.

Maybe internet explorer is taking long time to add the html, try with live $('#getdata'). Live('click', function(){.

You are using very ugly code, after body incorrect to write any HTML content, for that you must add in body any div and append your cod to it, and then this code will work in IEs $(document). Ready(function () { $('#anydiv'). Html(''); $('#getdata').

Click(function () { alert("asd"); $. GetJSON('/HowItWork/Index? Id=' + 23, function (data) { var notfound = data'notfound'; var user = data'user'; if (notfound == '1') { $('#data').

Html("Not found"); } else { $('#data'). Html("Found , user is " + user); } }); //end of getJSON }); //end of click }); //end of document ready.

Okay I will change it – sm21guy Nov 23 at 6:08 and then this code will work in IEs – Artur Keyan Nov 23 at 6:11 sorry still not working , the internet explorer giving me an error "No Relay Set(used as window. PostMessage targetOrigin),cannot send cross-domain message" – sm21guy Nov 23 at 6:40 I have writen this in ASP. NET MVC application and this is work even in IE 7, maybe you have any other issue, for example in server side – Artur Keyan Nov 23 at 8:19 I've seen where folks get told to keep their cod to themselves, but this has got to be the first I've ever seen someone ordered to append their cod to anything!

– Christopher Nov 23 at 9:02.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions