nerdexam
Microsoft

70-573 · Question #17

70-573 Question #17: Real Exam Question with Answer & Explanation

The correct answer is A. Add a script link that references SP.js .. See the full explanation below for the reasoning.

Question

You are creating an application page that will open a dialog box. The application page uses a custom master page. You write the following code segment. (Line numbers are included for reference only.) 01 < script type="text/javascript" > 02 function DialogCallback ( dialogResult, retumValue ){> 03 function OpenEditDialog (id){ 04 var options = { width: 300, 05 height: 300, 06 dialogReturnValueCallback : DialogCallback 07 }; 08 SP.UI.ModalDialog.showModalDialog (options); 09 } 10 < /script > You need to ensure that the code opens the dialog box. What should you do?

Options

  • AAdd a script link that references SP.js .
  • BAt line 08, change showModalDialog to commonModalDialogOpen.
  • CAt line 08, change showModalDialog to openDialog.
  • DAdd a script link that references SharePoint.Dialog,js .

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice