Hi all,
I want to add listener to a div element from .js file. All the controls are being created in the .js file and then loaded in the .aspx page. The problem is that I cannot use jquery or prototype to add observe event to the div control from my .aspx page. [This is due to the nature of the solution itself. Any such attempt leads to error].
All I want is: the function defined in the .js file in the div's addEventListene r should be a function in my .aspx itself, so that when the div is clicked in the page, it looks for the function in the page and run it.
Is this possible? Or is there any other option to do this?
Thanks in advance.
I want to add listener to a div element from .js file. All the controls are being created in the .js file and then loaded in the .aspx page. The problem is that I cannot use jquery or prototype to add observe event to the div control from my .aspx page. [This is due to the nature of the solution itself. Any such attempt leads to error].
All I want is: the function defined in the .js file in the div's addEventListene r should be a function in my .aspx itself, so that when the div is clicked in the page, it looks for the function in the page and run it.
Is this possible? Or is there any other option to do this?
Thanks in advance.
Comment