Reply to Re: [PHP] onChange js running a php function

Your name:

Reply:


Posted by "Richard Lynch" on 10/12/05 23:35

On Tue, October 11, 2005 3:11 pm, Dan McCullough wrote:
> Its been awhile since I tried this so I was wondering if anyone had
> any luck with this.
>
> I need to get a list of tables from a database, which means I have to
> run a function, I would like to have an onChange event run when I
> change my selection in a select menu, that would send the value for
> the select menu to a php function.
> can that be done?

Yes, but...

You can do it with XmlHttpRequest, or even just changing your
"location" in JavaScript.

But...

A) This doesn't really make any difference to the PHP code -- It's all
in the JS, so you should probably research in JS forums.

B) It's going to be DOG-SLOW if every menu change has to make a
round-trip to the web server and get stuff from the database, unless
it's a limited install on a LAN or other high-speed-only network.

--
Like Music?
http://l-i-e.com/artists.htm

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация