Close using Java Script
-
Hi All... I am using webparts and i have defined a verb and assigned it a client side event as its handler. Now i want to close this webpart using its id at clientside. I am giving the script im using to set its display to none. But it is not sufficient. I want to close it. function ClientClose(webPartID) { alert( "You clicked the following web part: " + webPartID + "." ) ; document.getElementById(webPartID).style.display="none"; }
Bye
-
Hi All... I am using webparts and i have defined a verb and assigned it a client side event as its handler. Now i want to close this webpart using its id at clientside. I am giving the script im using to set its display to none. But it is not sufficient. I want to close it. function ClientClose(webPartID) { alert( "You clicked the following web part: " + webPartID + "." ) ; document.getElementById(webPartID).style.display="none"; }
Bye
Hi Sam, What is webPartID?(is it the ClientID of your web part?) Is it showing any javascript error?
Sherin Iranimose
-
Hi Sam, What is webPartID?(is it the ClientID of your web part?) Is it showing any javascript error?
Sherin Iranimose
Yes im getting the client id of the webpart itself. and its style is also set as display =none but how can i close it so it may be available in design view Cutting short... Is there a way to implement close and minimize verb using javascript on client side. For instance you can see... www.smartjungle.com Please answer... -- modified at 7:29 Thursday 15th November, 2007
Bye