Displaying 1 result from an estimated 1 matches for "serversidealert".
2008 Aug 25
1
prototype.js Ajax is slow
...nd discovered
something interesting.  When I use the first ajax call the response from
the server take 53ms.  When I use the second on using the prototype
functions the request from the server is over 200ms.  My question is
why, and can it be fixed?
<p><a href="#" onclick="serverSideAlert();">Call server-side
function</a></p>
<p id="responseTxt"></p>
<script type="text/javascript">
  function serverSideAlert() {
    var request = new XMLHttpRequest();
    request.open(''get'', ''/jstest/server_response...