Re: [CODE4LIB] httpRequest javascript.... grrr [resolved]

2007-11-29 Thread Eric Lease Morgan
On Nov 29, 2007, at 9:21 AM, Eric Lease Morgan wrote: Why doesn't my httpRequest Javascript function return unless I add an alert? Grrr. I have resolved my problem, but I'm not exactly sure how. First of all, my httpRequest (XMLHttpRequest) code was just fine. I made no significant changes

Re: [CODE4LIB] httpRequest javascript.... grrr [resolved]

2007-11-29 Thread pkeane
Indeed, my proposed fix was incorrect -- an alert does NOT need to be passed into the function as a callback (it's always globally available) and since the parameter for the alert is response text, that's A-OK. If you want to insert that response into the page (and not just 'alert' it), you