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
Post a Comment