This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Thank you Bear, i thought " handleResponse " was transferred as "scan.do" does. My mind does not work well sometimes these days (worked 14 hours yesterday), i have to finish a project with a very tight schedule, and i have many things to learn.
If you want what you have there to work, you need to pass a reference to the callback function to your doSendRequest function, not a string. A string is a string and can't magically become a function. (The string could be used to look up the function definition, but that's another show.)
But the more basic question I'd ask is: why are you doing your own Ajax rather than letting jQuery or Dojo handle it?
Joined: Apr 10, 2009
Thank you Bear for the info.
One reason I did not choose jquery/dojo is license conern. The other reason is that I took a look at jquery/dojo, and feels that the tight time i have do not allow me to learn/use it, maybe i am wrong. Anyway, thanks for help!