Steve R.
Retired
- Local time
- Today, 10:21
- Joined
- Jul 5, 2006
- Messages
- 5,600
A while back, I migrated my MS Access database to MySQL and I access the database using Firefox/PHP/HTML/CSS. Note the absence of JavaScript.
One of my tables is a list of authors. I can display (on Firefox) all the authors with a listbox, but it is a pain to scroll down to the correct author. To get around that, I would like to develop an Access like combo-box that matches all the names as one types them in.
The problem seems to be that PHP does not apparently have a "keydown" event which would re-query the author name table for all matching author names.
The solution would seem to be to use JavaScript (onkeydown) to read the author name array. (The author name array is imported using PHP). Would that the correct approach to pursue?
A potential alternative approach. Can Python (pygame.KEYDOWN) be embedded instead of JavaScript on a web-page? I have not yet experimented with embedding Python code in a web-page.
Note: I am not asking for a solution, just the appropriate approach to pursue as I will need to learn JavaScript and/or Python.
One of my tables is a list of authors. I can display (on Firefox) all the authors with a listbox, but it is a pain to scroll down to the correct author. To get around that, I would like to develop an Access like combo-box that matches all the names as one types them in.
The problem seems to be that PHP does not apparently have a "keydown" event which would re-query the author name table for all matching author names.
The solution would seem to be to use JavaScript (onkeydown) to read the author name array. (The author name array is imported using PHP). Would that the correct approach to pursue?
A potential alternative approach. Can Python (pygame.KEYDOWN) be embedded instead of JavaScript on a web-page? I have not yet experimented with embedding Python code in a web-page.
Note: I am not asking for a solution, just the appropriate approach to pursue as I will need to learn JavaScript and/or Python.
Last edited: