<script type="text/javascript">
function getbillno(tbl){
$.get("getbillno.php?tbl="+ tbl, function(bill){
$("#billno").val(bill); });
}
</script>
QUICK开发者_如何学C Overview : function getbillno(tbl) returns a display of 1 as a default (ELSE echo "1").
PROBLEM : In IE no matter what I display even when the page is a blank, it would always display 1.
Instead of hitting refresh, I tried closing IE(9) and it did display the right value. I changed the value in my code again then refreshed IE, it would display the one before that - it's the value after I reopened IE.
Question : Is there a setting or whatever it is that I have to change or configure in IE(9)?
I've been asking questions around the internet before I found out what closing the browser would do. I thought it had something to do with my program, or maybe it does - so here are a few links. Just as background because I'm not sure if seeing my other questions would change much.
[1] $.get not working in IE [2] Is there a way to call php with an event other than $.get?
IE caches get requests
You can disable this with cache: false parameter in jquery get
Default: true, false for dataType 'script' and 'jsonp' If set to false, it will force requested pages not to be cached by the browser. Setting cache to false also appends a query string parameter, "_=[TIMESTAMP]", to the URL.
精彩评论