nerdexam
Microsoft

70-573 · Question #17

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…

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 .

How the community answered

(38 responses)
  • A
    76% (29)
  • B
    13% (5)
  • C
    8% (3)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice