We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
A Simpler Ajax Path
|
| Subject: |
|
Two bugs |
| Date: |
|
2005-11-10 04:37:14 |
| From: |
|
ilyaporopudas
|
|
|
- Under the heading "Preparing form data to POST", on the line:
var queryString = '?ArtistName=' + escape(artistName) + '&SongName=' +
escape(songName);
The value of "queryString" variable should not start with a question mark.
- Under the heading "POSTing the data", on the line of code:
eval(strResultFunc + '(xmlHttpReq.responseText;);')
There's one semi-colon too many. The one after "xmlHttpReq.responseText" should be removed.
|