Microsoft KB Archive/931427

= A blank Microsoft Script Editor window opens when you try to debug custom script that was written for an InfoPath 2007 form template =

Article ID: 931427

Article Last Modified on 2/22/2007

-

APPLIES TO


 * Microsoft Office InfoPath 2007

-



SYMPTOMS
When you try to use Microsoft Script Editor to debug custom script that was written for a Microsoft Office InfoPath 2007 form template, a blank Microsoft Script Editor window opens. The script is not displayed. This problem occurs when the custom script was written in the Microsoft JScript or Microsoft Visual Basic Scripting Edition (VBScript) scripting language.



CAUSE
By default, Web Debugging is not installed in the 2007 Microsoft Office system. Therefore, you cannot use Microsoft Script Editor to debug the script because Web Debugging is not installed.



RESOLUTION
To resolve this issue, install Web Debugging.



Steps to reproduce the issue
 Start Microsoft Office InfoPath 2007. In the Getting Started dialog box, click Design a Form Template. In the Design a Form Template dialog box, click Blank, click to clear the Enable browser-compatible features only check box, and then click OK. Click Tools, and then click Form Options. In the Form Options dialog box, click Programming under Category. Click JScript or VBScript in the Form template code language list, and then click OK.</li> Click Tools, click Programming, and then click On Load Event.</li> In Microsoft Script Editor, type the appropriate code in the OnLoad function, and then click Save. The code that you type in the Onload function depends on the language that you selected as the form template code language: <ul>  If you selected JScript as the form template code language, type the following code in the OnLoad function. debugger; </li>  If you selected VBScript as the form template code language, type the following code in the OnLoad function. stop </li></ul> </li> In the InfoPath window, click Preview.</li> When the Debugger dialog box appears, click Microsoft Script Editor, and then click Yes.</li></ol>

Keywords: kbtshoot kbexpertiseinter kbprb KB931427

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.