ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  A Simpler Ajax Path
Subject:   Two bugs
Date:   2005-11-10 04:37:14
From:   ilyaporopudas
  1. 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.


  2. 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.