Jump to content


Photo

Enableing and Disableing of the fly


  • Please log in to reply
3 replies to this topic

#1 Liquid-Fire

Liquid-Fire
  • Members
  • PipPip
  • Member
  • 16 posts

Posted 03 June 2006 - 01:59 PM

I thing I am going to need to know how to do for a project I am design in how to change or add form imput stuff for the fly with out having to read the page. What i mean is that let say the are 2 drop done boxes the first one a a yes and a no option adn the second as a list of stuff from a database. I am going to have the default value for the first box no and want to disable use, grayed out, the second. now when the user select yes in the first box, a tthat time I want the second box to be enable and ungrayed out. Now how would I pull something like this off? PHP? Javascript? I am really not sure how to do this so some help would be cool.

Thank You
Ryan Zec

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 03 June 2006 - 02:02 PM

You would use Javascript for that, not PHP.

Ken

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 03 June 2006 - 03:18 PM

You'll want to look into Ajax for that sort of thing. You can code the backend in PHP then you use AJAX that then sends a call to your php script which then populates the secound drop down menu. With AJAX it will be done in the background and doesn't require for the user to be redirected or the page to be refreshed.

#4 Liquid-Fire

Liquid-Fire
  • Members
  • PipPip
  • Member
  • 16 posts

Posted 03 June 2006 - 05:49 PM

Ok, it looks like Ajax mighjt be useful for more than that so i will take a look into that technology.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users