Hello
I'm trying to develop a gadget with a search-interface that includes a text input field and a button.
When you press the button a function is called that takes the text from the the input field and attaches it to the url which is then passed on to the Web.Network.createRequest Method. The resulting xml file is then parsed and the results are displayed. No problem if you hit the button the first time.
But if you try to perform a second search (with different text), nothing happens! Are there some restrictions on the Web.Network.createRequest method
Any help woul be greatly appreciated.
Thanks, sam

multiple Web.Network.createRequest
Chris Holt
Sounds like a limitation in the underlying XmlHTTPRequest object. I'd suggest you take the "easy" solution and disable your search controls if you're already in the process of searching. This would be as simple as disabling your controls right before you execute() the query and re-enabling them after you've done all your processing (make sure to enable if the callback gets a failure from the response as well).
RubenPieters
Hello
Thanks for answering. I discovered that the problem was not the Web.Network.createRequest Method, but the way the results are parsed. I just attached the resulting xml (after parsing) using p_elSource.innerHTML += ... After changing that to attaching using appendChild() I'm now able to do multiple requests. Strange... but functioning.
Thanks anyway, sam