Hi everyone,
I am still stuck on the same problem which has to do with adding an
actionListener to an input button within a form
I mean,
I have a DynLayer with some HTML form set to it and also an actionListener
I want to know how I can refer to the object inside the HTML
for eg. myLayer.setHTML('<form>'+
'<tr><td><input TYPE="BUTTON" OnClick="RUN THE FUNCTION addItems() that
is a prototype of the Widget"></td></tr>'+
</form>')
myWidget.listener = new EventListener()
MyWidget.listener.onclick= function(e){
if (e.getTarget()==THIS IS WHERE I WANT TO CHECK WHETHER THAT PARTICULAR
BUTTON WAS CLICKED){
//do something
}
}
thanks in advance
Nikhil
|