How to get the event of Checkbox appears in Embedded view

Dear All

Is there any way to get the onClick event of the Checkbox,

which is showing on the Embedde view.

I select the “Allow selection of Documents” property of the view. that’s why the checkbox is coming automatically in the first column of the view.

Now what i want, when user click on the check box, on the basis of selection hide/unhide Delete link from the page.

Please suggest me, if any body have any idea or suggestion to achieve this.

Thanks a lot.

Regards

Ashish

But not getting where I place the code

Subject: RE: How to get the event of Checkbox appears in Embedded view

You can’t affect the generation of the HTML code of the checkboxes (unless you want to use passthru HTML and generate the HTML of the whole view). But you can add inline Javascript code to execute just after the HTML of the view is loaded, to iterate through the checkbox objects on the form and add an onclick event to them. Study up on your Javascript references.

Subject: RE: How to get the event of Checkbox appears in Embedded view

Thank you Mr. Andre

I have done the suggested approach.

Onload of the page, I get all the checkboxes and attach an even into each checkbox using JavaScript addEventListener(‘onClick’, chageSelection(this),false); but it does not works.

is there any other things or I did any mistake.

Thanks

Ragards

Ashish

Subject: RE: How to get the event of Checkbox appears in Embedded view

“onclick” is all lower case when you access it programmatically, and it’s safer cross-browser to do this:

element.onclick = new Function(“changeSelect(this);return false”)