javascript - Random string being added onto JS var -


basically trying load php div using js. using code:

$('#preview').load("includes/event_image_crop.php?img=" + fname); 

however, not putting fname string in there adding random string &_=1369168657782

any ideas?

thanks

this feature designed prevent caching. should have no effect on page (unless need use _ variable), if need disable should set cache: true using ajaxsetup:

$.ajaxsetup ({     cache: true }); 

of course, ian mentions, affect every ajax call on page, aware of if have other ajax calls. might better refactor code , use more configurable function .load().

see similar (opposite) question here: stop jquery .load response being cached


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -