Jump to content

Display cell content based on user input without buttons!


PHP_Idiot

Recommended Posts

Confusing title I know, but wasn't sure how else to describe it!

 

I have an html table with 5 columns:

Position, Points, MembershipNo, FirstName, LastName

 

Position and Points are populated using a php $counter loop.

MembershipNo will be user inputted

FirstName & LastName - I want these to look up the membership number that has been inputted and display the associated First & Last names of the players.

 

However, I want it to do this on the fly, so as soon as each membership number is entered the names appear. What I do not want to do is to have to click a button either at the end of each row or at the end of the form to fill these values.

 

I can't work out how to do this, but I suspect it may involve Java (although I desperately hope it doesn't as I have never used it!).

 

Can anyone offer any advice at all please?

 

 

Before you lock yourself in and start hitting the books you might want to know it's javaSCRIPT and not java. There is a massive difference between the two.

 

Ajax is just a term to describe doing fancy things with javascript requesting/posting urls without changing the page.

W3Schools has a rather limited tutorial on it, but it's a good start.

If you have no experience with javascript, their javascript tutorial is quite extensive http://w3schools.com

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.