SetModelDialog Help

M

milli9

Hi I'm developing sharepoint 2007 site. On my page when I click on
some zone, it opens up a dialog box at the corner of the page. At the
bottom of the dialog box there is a link which opens up a tool pane.
I want to open the tool pane directly on my page instead of opening
from the dialog box.
But when i put that part of the code on my page it is not working
properly.
The code is like this for that link on the dialog box.

Function code:

function SetOpenToolPane()
{
setModalDialogReturnValue(parent.window,
'OpenToolPane');
window.close();
}


Link Code:

<td><a
id="ctl00_PlaceHolderDialogBodySection_OpenWebPartGalleryInToolPaneButton"
class="ms-webpartpickerpagetext" href="javascript:SetOpenToolPane();"
style="font-weight:bold;font-size:8pt;font-
family:tahoma;color:#345BA7">Advanced Web Part gallery and options</
a></td>

When I click on Advanced Web Part gallery and options it opens up a
toolpane by closing this dialog box.
Can anybody give me an idea how to open this toolpane directly on the
page?

Really appreciate your help,
Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,901
Members
47,439
Latest member
elif2sghost

Latest Threads

Top