Re: ordering data without a total refresh

From: Date: Sun, 03 Dec 2000 11:53:57 +0000
Subject: Re: ordering data without a total refresh
Groups: php.general 
Request: Send a blank email to php-general+get-28428@lists.php.net to get a copy of this message
If you're willing to use frames, you can put the table part in a separate frame, then reload that frame only, leaving the rest of the window undisturbed. If you're not up for frames, then it depends on the target browsers in your user population. If you're designing for the web at large, you pretty much can't do it, because there are too many browsers out there that don't support what you're trying to do. However, if you can limit your target browsers to those supporting layers/DHTML, you can implement the table as a layer, display the first result set, then change it's visibility to off, reorder it, set the visibility back to on, and so on. I'm pretty sure this is available in Netscape 4.0 and above (with the caveat that there's a bug such that if you draw a layer above a form, the form fields get drawn on top anyway, no matter what) as well as in Internet Explorer 4.0 and above. DHTML is not a short learning curve because it's different in each browser and the documentation was, in my experience, both incomplete and misleading. YMMV. You could also implement as a Java applet, but that's a whole other set of considerations. Hope that helps. At 01:24 PM 12/3/2000 +0200, Siim Einfeldt aka Itpunk wrote: > > >Lets say that I have a table... ><TABLE><TR> ><TD>name |</TD><TD> place</TD><TD> | number</TD><TD> >|etc</TD> ></TR></TABLE> > >name, place...etc are all links. What I want to do, is when I click on the >'name' for example, I get the stuff ordered by name. This can be done >easily, but what if I didn`t want the whole page to be refreshed? What if >i wanted only the needed data to be taken from database again in a right >order? I`ve seen something like that somewhere, but how could I do >it? XML? but then again, how? > >thanks >Siim > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > ...................................................................... Les Neste Cellphone 678-778-0382 Web http://www.lesneste.com

« previous php.general (#28428) next »