Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Click an entrie web part to open a Modal Dialog box

$
0
0

Hi there,

I am trying to open a Modal Dialog box, when an entire web part (the web part is just an image) is clicked. I am able to open the URL in another tab when the image is clicked using the following code:

var a = $("<a/>").attr("href", "www.google.com");
$("#WebPartWPQ2").wrap(a);

But cannot work out how to incorporate dialogOptions properties into this to force a dialog box to open.

Basically the clickable web part will be a mini image of the larger one (it's a report) that I will load into the dialog box, so when the user clicks it will open the more detailed report.

I would appreciate some help if someone out there has managed to do this before.


Viewing all articles
Browse latest Browse all 11571

Trending Articles