![]() |
|
|
|||||||
| Javascript and Ajax Questions and information about working with Ajax and Javascript in Delphi for PHP. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi everyone. I have a form with 50 comboboxes, and I need to call essentially the same function in the Javascript OnChange event. I could duplicate the same code fifty times but I'm way too lazy for that.
.The problem I'm having is that I can't seem to discover the component that called the function. To illustrate the issue, I've created a simple function as follows, and configured the OnChange JS event in each of the comboboxes to call it (the comboboxes are called cbo1, cbo2...cbo50): PHP Code:
The problem is that the alert also says cbo1 when I change cbo2, and cbo3 etc. How can I discover which component called the JS function?
__________________
If it was too easy it would be no fun |
| Sponsored Links |
|
|
|
||||
|
Might have to tweak it some but wouldn't the same thing from dbrepeater work?
Get a row value form dbrepeater |
|
|||
|
Thanks, as always, 405hp.
Here's how it works: PHP Code:
![]()
__________________
If it was too easy it would be no fun |