Link to home
Create AccountLog in
Avatar of yjchong514
yjchong514Flag for United States of America

asked on

Ajax simple question

Dear EE members,

I am new to AJAX and would like to test run the behavior of AJAX via the less1.html attached here. But , I hit the access denied error in  xmlHttp.open('GET','Content.html',false);

My browser is IE 8

Thanks.

Regards,

yjchong514
less1.html
Avatar of chaitu chaitu
chaitu chaitu
Flag of India image

USER jquery its simple.

$(document).ready(function () {

   $.get({
             'Content.html',
            success: function(msg){
document.getElementById('Family').innerHTML=msg
            }

            });
});
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of yjchong514

ASKER

Dear DaveBaldwin,

Thanks for your comment. I have attempted on Mozilla, the code works.

Regards,

yjchong514
Glad to help.