Can't get simple ajax example to work?

Unless you're really committed to learning how to do this the hard way, I would really recommend jQuery for this. It handles all that weird browser difference for you with a great library for AJAX requests To make the call you want, it would be as simple as.

Unless you're really committed to learning how to do this the hard way, I would really recommend jQuery for this. It handles all that weird browser difference for you with a great library for AJAX requests. To make the call you want, it would be as simple as: $.

Get('tester. Txt'). Success(function (receivedData) { //do something with receivedData }); If you are looking to do this the hard way, well, best of luck to you.

You could look at how jQuery implements it for some clues, lines 7442 to 7980.

Hmm. I didn't know that jquery is asynchronous. Question: I'm trying to extend this further to make a simple online chat program.

Can jquery poll mysql database for chat information? What would be the best way to go about this? Thank you.

– de1337ed Aug 9 at 0:19 That sounds like a separate question. You'd probably want some sort of client-server system with a persistent connection using WebSockets or long polling. On the client-side with jQuery, it's a matter of getting AJAX calls into the proper loops to call to the server looking for new chat information.

– Stephen Searles Aug 9 at 0:36.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions