jquery - Different behavior when I refresh the page -
i'm creating jquery webpage, , have instruction sets automatically width of header tag. when run 1st time jquery ignore , sets 1542px.
the weird thing when refresh page, or when re-run netbeans new tab, doesn't ignore instruction , works wanted, , perfect.
even more weird: of happens in firefox, works right ie (didn't tried other browsers).
code
i have piece of code html:
<script> var data = ""; var success = function (data) { onemenu.createmenu("#mainmenu", data); }; $.ajax({ datatype: "json", url: "/menuone/example_menu.json", data: data, success: success }); </script> inside createmenu i'm defining code using json, jquery instructions in there, , don't know if need more code or jsfiddle or anythig -just tell me if need it.
if have understood happening, guess problem comes cache memory, have no idea how fix this...
thanks mates
i think found happening: http://ask.metafilter.com/200230/my-webpage-wont-update-unless-i-hit-the-refresh-button
i don't know how solve problem yet, aknowledging comes start. hope can somebody. (i'll leave post open if has suggestions).
Comments
Post a Comment