ajax - Firefox does not wait to Jquery.load() function -


talkbox.load('/xxforum.php?webpage_id='+webpage_id , function() {       talkbox.append('<a href="/forum/'+webpage_id+'/1" style="margin-left:40%">go forum</a>'); });     talkbox.removeclass("invisible").addclass("visible"); 

i have above code. after load xxforum.php append <a> tag end. after make talkbox visible. in firefox not wait append <a> tag. directly shows box , appends <a> tag. not right because function inside $.load() function.in google chrome works want. encountered before?

problem load async move inside:

talkbox.load('/xxforum.php?webpage_id='+webpage_id , function() {       talkbox.append('<a href="/forum/'+webpage_id+'/1" style="margin-left:40%">go forum</a>');   talkbox.removeclass("invisible").addclass("visible"); });  

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -