Re: Saving AJAX responseText to a variable



tempacct wrote:

I have a situation where I'm using AJAX to return some data

Get a real Ajax library, such as Scriptaculous' Prototype.js, or whatever
Ajax works best with PHP.

You are doing the equivalent of mucking with Assembler when you could
download a nice C compiler for free. These libraries all wrap
GetXmlHttpObject() up for you, as platform-neutral as possible, and they
take care of all irritations, like latency and timeouts. Don't reinvent the
wheel.

--
Phlip
http://www.oreilly.com/catalog/9780596510657/
"Test Driven Ajax (on Rails)"
assert_xpath, assert_javascript, & assert_ajax


.



Relevant Pages

  • Re: Can you do this with PHP?
    ... Basically the AJAX routine calls a PHP script. ...
    (comp.lang.php)
  • Re: Can you do this with PHP?
    ... Basically the AJAX routine calls a PHP script. ...
    (comp.lang.php)
  • Re: How do we get there from here?
    ... > 'AJAX approach'? ... I am using php and ajax, ... linked to the page back to the server, which could be a php script. ... but is not an entire page) to the JavaScript. ...
    (comp.databases.pick)
  • Re: [PHP] AJAX and PHP
    ... Click a language flag sends a request to the server. ... - how the ajax will reload this PHP page in the parent ... JSON object from PHP to javascript. ...
    (php.general)
  • Re: Can you do this with PHP?
    ... Basically the AJAX routine calls a PHP script. ...
    (comp.lang.php)