0

I am migrating a sharepoint solution from Sharepoint 2010 to 2013, and so far everything works, but I'm stuck at one specific problem. In some lists, the user has the possibility to open an editor for a list item. This opens a modal dialog with some inputfields and some buttons. The masterpage is not shown in these dialogs, but that is how it's supposed to be, so no problem so far. There is however one aspx page that contains more than one asp panel, and in this modal dialog the master page layout is visible. I am not allowed to post any of my code but the general structure of these layout pages is:

A Redirect.aspx page with:

<frameset>
    <Frame></Frame>
</frameset>

Where another aspx page is loaded in. This aspx page is mostly a Panel with a table in it.

I don't expect anyone to solve my specific problem, but I'm out of ideas where to look for the issue.

I am using the default master page by the way, so I added no custom code to the masterpage.

1 Answer 1

0

I'm using SP15ModalDialog.js to show a poll in a dialog. Maybe this will help you a little bit.

https://alinimer.wordpress.com/2013/02/25/open-pages-and-forms-in-modal-dialog-for-sharepoint-2013/

I uploaded the .js in my StyleLibrary and in my page layout I added into the PlaceHolderMain something like that:

<script type="text/javascript" src="/Style Library/SP15ModalDialog.js"></script>

<table width="100%" class="ms-rteTable-0" cellspacing="0" style="height: 300px;">
   <tbody>
      <tr class="ms-rteTableEvenRow-0">
         <td class="ms-rteTableEvenCol-0" colspan="1" style="width: 1%; height: 336px;">
            ​</td>
         <td class="ms-rteTableOddCol-0" style="width: 33.33%; height: 336px;">      
            <p style="text-align: center;">
               <font class="ms-rteFontSize-3"> 
                  <em> 
                     <strong>Want more? </strong></em></font></p>
            <p style="text-align: center;"> 
               <strong> </strong> 
               <font class="ms-rteFontSize-3"> 
                  <em> 
                     <strong>Help us 
                        <span>NOW <span>to find a new SharePoint name!
                        <a href="#" onclick="openInDialog(500,300,true,true,true,'http://sp13/Lists/newname/NewForm.aspx?RootFolder=&IsDlg=1');"> 
                           <img class="ms-rtePosition-4" alt="ArrowRightGrey18.png" src="/PublishingImages/Sites/default/ArrowRightGrey18.png" style="margin: 5px;"/></a></strong></em></font></p>            
         </td>
         <td class="ms-rteTableOddCol-0" colspan="1" style="width: 1%; height: 336px;">
            ​</td>
      </tr>
   </tbody>
</table>

Maybe the above code helped you a little bit to find your solution.

If so, please mark it as answer, or rate it as helpful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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