Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need modal pop up

Status
Not open for further replies.

varshaaa

Programmer
May 25, 2011
10
IN

<a href="../_layouts/listform.aspx?PageType=6&amp;ListId={{24b92116-5f1f-4866-97f8-13693b75cc47}}&amp;ID={@ID}">

<img border="0" src="/_layouts/images/edititem.gif"/>
</a>

I want to open the above URL as modal pop ..
Any help
 
Its sharepoint 2010... I got the solution ..Here I providing the code for sharepoint newbie like me :)

<script type="text/javascript">
function open(Id){
var options = {
url: &quot;../_layouts/listform.aspx?PageType=6&amp;ListId={24b92116-5f1f-4866-97f8-13693b75cc47}&amp;ID=&quot;+Id,
title: &quot;Edit&quot;,
allowMaximize: true,
showClose: true,
width: 625,
height: 525,
dialogReturnValueCallback: silentCallback};
SP.UI.ModalDialog.showModalDialog(options);}
function silentCallback(dialogResult, returnValue) {
}
function refreshCallback(dialogResult, returnValue) {
SP.UI.Notify.addNotification(&apos;Operation Successful!&apos;);
SP.UI.ModalDialog.RefreshPage(SP.UI.DialogResult.OK);
}
</script>
<a href="javascript:eek:pen({@ID})" target="_self">
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top