Morning group,
I have some mootools based javascript code in my <head> section, that
reloads one of two <select> boxes when the other one is changed.
This works on the first box, but not thereafter. I can't see any
errors in Firebug, nor does the debugger stop on the event calls
again.
Anyone know what I'm doing wrong?
Please see code below:
window.addEvent('domready', function(){
$('lum_sel').addEvents({
change: function (){
var x1 = new Ajax(
'/index.php?option=com_lightingcalculator&task=xml&type=la&id='+$('lum_sel').value+'&preset='+$('lam_sel').value,
{
method: 'get',
update: 'lamp_dropdown'
}
).request()
;
}
});
$('lum_sel').addEvents({
change: function (){
var x2 = new Ajax(
'/index.php?option=com_lightingcalculator&task=xml&type=lu&id='+$('lam_sel').value+'&preset='+$('lum_sel').value,
{
method: 'get',
update: 'luminaire_dropdown'
}
).request()
;
}
});
});
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---