How to display ‘anything’ in Sharepoint 2010 pop up / modal window

By peter.stilgoe









Display a website:

<a onclick="javascript:NewItem2(event, &quot;http://www.bing.com&quot;);
javascript:return false;" href="http://www.bing.com/" target="_self">Show Bing In Modal Window</a>

Display a image:

<a onclick="javascript:NewItem2(event, &quot;http://sitename/Images/image.png&quot;);
javascript:return false;" href="/images/image.png/" target="_self">Show Image</a>

Display flash:

<a onclick="javascript:NewItem2(event, &quot;http://www.microsoft.com/games/gamesforwindows/games/madagascar2/Mad2_Final_ENU.swf&quot;);
javascript:return false;" href="http://www.microsoft.com/games/gamesforwindows/games/madagascar2/Mad2_Final_ENU.swf" target="_self">Flash Game</a>

Thanks to Erik @ http://erikswenson.blogspot.com/2010/09/ways-to-extend-sharepoint-modal-window.html




Share

,

About... peter.stilgoe

peter.stilgoeThis author published 497 posts in this site.
Sharepoint, InfoPath, K2, Nintex, Business Process Mapping, Business Intelligence, Automation, ECM, Document Management, Document Imaging, Internet Marketing & Online Business Consultant Email / MSN: pstilgoe@hotmail.com LinkedIn: Pete Stilgoe - Sharepoint Consultant









Share

FacebookTwitterEmailWindows LiveTechnoratiDeliciousDiggStumbleponMyspaceLikedin

1 Comment

  • At 2011.12.08 11:24, Web Parts by palmer_eldritch - Pearltrees said:

    [...] How to display ‘anything’ in Sharepoint 2010 pop up / modal window | Sharepoint Consultant, Auto… 2. javascript: return false; " href=" http: [...]

    (Required)
    (Required, will not be published)