Forum Moderators: open

Message Too Old, No Replies

how to update mysql without refreshing page by using DHTML

         

smagdy

1:21 pm on Mar 15, 2005 (gmt 0)

10+ Year Member



Hi, I am reading about DHTML since I knew that GMail is that fast cuz of the underlying DHTML concept they are using..

anyways.. I have a table that is full of text boxes that I extracted its contenct from mysql so I want when a user change content of a cell.. I just update it in the mysql table.. so I already do so but of course the whole page refresh so its boring.

so I wish I can do it by DHTML so that it update mysql without reloading infront of the user.

so how to do it?

thanks in advance

BlobFisk

2:29 pm on Mar 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to look at a JavaScript method called xmlHTTPrequest. This allows you to do background HTTP requests without refreshing the whole page.

HTH

smagdy

2:39 pm on Mar 15, 2005 (gmt 0)

10+ Year Member



Well thanks I will look for it now, but is it adviceable to use that method.. I mean why not everybody use cuz its very cool feature (speed wise)?

dcrombie

4:36 pm on Mar 15, 2005 (gmt 0)



There are a few sites using it, but most people just aren't aware it's available. Support varies between browsers, but the latest Explorer and all the Gecko/Mozilla browsers seem to work well enough if you limit yourself to GET requests that return text/xml content.

BlobFisk

4:43 pm on Mar 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Google achieve the speeds they do due to the huge amounts of machines in their data centres. For small requests you cen get a pretty decent response time using this.

smagdy

4:49 pm on Mar 15, 2005 (gmt 0)

10+ Year Member



I followed a tutorial that let me be able to check if username exists using "xmlHTTPrequest".

and its just GREATTT

U cant compare the speed and above all.. the user experience will be great cuz the page doesnt refresh.

how long have it been available.. its just great thing that must be used by every web developer.

Dont u think so?