Handle a client component from a server during an AJAX request?

I know you asked a server side solution but there is a relatively easy client side solution to this problem which I think you might prefer if you want to add a function to all or some of the button elements on "onClick" you could try using the following code replace with your function to be added on the click event. Replace with the name of your form (you can pass is as a parameter) btw, this code supports IE FF CHROME etc function addFunctionToAllButtons() { var buttons = document. *YourForm*.

GetElementsByTagName("button"); for(i=0; iAddEventListener) { obj. AddEventListener(evt,fnc,useCapture); return true; } else if (obj. AttachEvent) return obj.

AttachEvent("on"+evt,fnc); else { MyAttachEvent(obj,evt,fnc); obj'on'+evt=function(){ MyFireEvent(obj,evt) }; } } Edit to suuport child pages we need to take special notice to the buuton id we refer to in the following line: if(buttonsi. Id =='yourButtonId') and to the form Id hope this helps.

I know you asked a server side solution but there is a relatively easy client side solution to this problem which I think you might prefer. If you want to add a function to all or some of the button elements on "onClick" you could try using the following code. Replace with your function to be added on the click event.

Replace with the name of your form (you can pass is as a parameter) btw, this code supports IE FF CHROME etc. Function addFunctionToAllButtons() { var buttons = document. *YourForm*. GetElementsByTagName("button"); for(i=0; iAddEventListener) { obj.

AddEventListener(evt,fnc,useCapture); return true; } else if (obj. AttachEvent) return obj. AttachEvent("on"+evt,fnc); else { MyAttachEvent(obj,evt,fnc); obj'on'+evt=function(){ MyFireEvent(obj,evt) }; } } -- Edit to suuport child pages we need to take special notice to the buuton id we refer to in the following line: if(buttonsi.

Id =='yourButtonId') and to the form Id hope this helps.

– radkrish Feb 14 at 13:26 @radKrish It can be implemented in child pages. Edited answer – Aba Dov Feb 14 at 13:39 got it. Now it works fine.! – radkrish Feb 15 at 4:08.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions