In my SP 2010 environment, I have a html page, that has an iframe, and the iframe is the page where you create a new alert for a list. In the html page, I dynamically create the iframe and then insert some script nodes in it to run jquery in the alert page.

The problem is, when I click the save button, I get the error message

Line: 1
Error: Object doesn't support property or method 'commitPopup'

coming from this line (which is the iframe source page)

<script type='text/javascript'>window.frameElement.commitPopup();<

Does anyone know how to fix this?



This TechNet forum recommends using

Check in your modal dialog code are you missing the below statement that handle closing the dialog

window.frameElement.commonModalDialogClose(1, 'text'); 



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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