javascript - How to make data stable until we get back response in xhr? -
when send simple xmlhttprequest()
with asnyc
= 1
the html page i've loaded blinks, why?
can't stable until response got?
i using responsetext
fetch contents.
my actual code running at: http://fastchat.ga/chat
and also,
sometimes the request not sent, why?
can has answer?
fist of all,
setinterval(showmsg,5000);
please dont use strings calling functions... way better.
then, don´t notice blinking, if field boolean, should use boolean instead of using 1 (it's not falsy value, it's not true). i'd recommend, avoid using argument, given it's default value true.
good luck
Comments
Post a Comment