Deal of the Day

Home » Main » Manning Forums » 2005 » Ajax in Action

Thread: Problem on IE toolbar button / AJAX / onReadyState

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 0 - Pages: 1 Threads: [ Previous | Next ]
mr.burns

Posts: 1
Registered: 3/14/08
Problem on IE toolbar button / AJAX / onReadyState
Posted: Mar 14, 2008 4:24 AM
  Click to reply to this thread Reply

Hello,

I have a test.html page which uses the contentloader.js (from Ajax in action) to send a request to a webserver and parse the server response.
This works fine, the server gets the request and presents the expected response.
Now my problem:
For internet explorer it is possible to create a toolbar button using registry keys. (see http://msdn2.microsoft.com/en-us/library/aa753588(VS.85).aspx).
In the 'scripts' value of the registry key of that toolbar button, I added a link test.js.
Test.js uses the same javascript functions I use in test.html to send an AJAX request.
The problem is executing the script by clicking the toolbar button I never get the status 'READY_STATE_COMPLETE' (4).
It only presents two times 'READY_STATE_LOADING' (1).

But I need also to get the request finished to execute a certain function that parses the result.

Does anybody know why it works using the test.html but not if I click the toolbar button and run same JS functions?

Any help is highly appreciated, thanks in advance!

Best regards!

Legend
Gold: 300 + pts
Silver: 100 - 299 pts
Bronze: 25 - 99 pts
Manning Author
Manning Staff