Wednesday, June 24, 2015

jQuery load() Not Work or Firing

Maybe it is just the cached or the element container. Just happened today that jQuery.load()
seems not to work at all. After googling i came out with specifiying

$.ajaxSetup({cache: false, async: false});

The async:false just addition since i prefer synchronous connection than asynchronous.
Also redundant to add random number at the end of url query

$('.container').load("http://myweb/app/" + Math.random(100000000));

Fire! and did not work :(( After double check that i found out the .container was missing
or overwrite by accident to other name. Fix has been patched and Fire! Ohh Yeah! it works.

while(true){ keepCoding("^^"); }


No comments: