Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have Created one aspx page and write in Main Content. I want to call SharePoint Modal Popup script on click event in sharepoint:MenuItemTemplate. How can i call javascript for modal popup in in Sharepoint 2013?

Any Suggestion?

share|improve this question
    
Please explain your question, not able to get your requirement properly. Thanks –  Anuja Feb 8 '13 at 6:02
    
Thanks for your reply @Anuja, I have modified my question.. –  Viraj Gorajia Feb 8 '13 at 7:11
add comment

1 Answer

 menuitemtemplate.ClientOnClickNavigateUrl ="javascript:SP.UI.ModalDialog.showModalDialog({url:'http:/sharedev/sitecreate.aspx', width:200px });";

or you can even try with ClientOnClickScript instead of ClientOnClickNavigateUrl

Hope this helps,

share|improve this answer
    
does the above one helps to you? –  Anuja Feb 10 '13 at 18:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.