Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Perhaps you could try the longhand syntax (as $.get is a shorthand alias of $.ajax)</p> <pre><code>function getbillinfo(tbl) { $.ajax({ type: "POST", url: "getbillno.php", data: "tbl=" + tbl, success: function(bill){ $("#billno").val(bill); }); } }); } </code></pre> <p>See <a href="http://api.jquery.com/jQuery.ajax/" rel="nofollow">http://api.jquery.com/jQuery.ajax/</a></p> <p><strong>Edit:</strong> with regard to your problems with IE, there could be a couple of reasons</p> <p>Possibility One</p> <blockquote> <p>IE caches the results of Ajax calls to the same resource even if you tell it not to in your HTTP headers. So if you make a request to getbillinof.php?tbl=table over and over again, IE will make the request once and then stop making it in the future and simply return the result of the first request. To circumvent this you can call getbillinof.php?tbl=table&amp;random_string_here</p> <p>It may also be worth setting cache: false in the ajax() options and having a look into the isModified option.</p> </blockquote> <p>Possibility Two</p> <blockquote> <p>A <a href="http://en.wikipedia.org/wiki/Race_condition" rel="nofollow">Race Condition</a> is causing the IE render action to run before any data was returned. This however is unlikely as the success() function is only supposed to run once the data has been received. A race condition becomes far more likely if you're doing something like</p> </blockquote> <pre><code>function getbillinfo(tbl) { $.ajax({ type: "POST", url: "getbillno.php", data: "tbl=" + tbl, success: function(bill){ var mydata = bill; } }); $("#billno").val(mydata); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload