In both browsers, IE and Firefox, the developer can create a script that sends an HttpReqeust out via Javascript. The following code is pretty standard:
httpObj2.open("POST", url, false); // Asyn = true, Sync = false
httpObj2.onreadystatechange = parseSearchResponse;
httpObj2.setRequestHeader("Connection","close");
httpObj2.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
httpObj2.send("query="+ escape(query));
The above code will send a request synchronosly (it will block at send). Now Internet Explorer will still call the function attached to the onreadystatechange event after the send has finished blocking. Firefox on the otherhand will not call it.
Which is the correct behaviour. If anyone knows email me at paul.kinlan@gmail.com
| Technorati Tags |
| Ie7 [feed], Url [feed], Firefox [feed], Xmlhttprequest [feed], Browsers [feed], Javascript [feed], Ie 6 [feed] |
