Appendix B: JScript Reference


Scripting is a vital tool that developers can use to extend InfoPath functionality. The following material documenting JScript (one of the scripting languages that InfoPath supports) has been included in this appendix to make this book a “one-stop” reference for InfoPath.

Tip

For more information on using scripting in your own forms, turn back to Chapter 10 for everything you ever wanted to know about scripting with InfoPath.

This appendix is not designed to be an exhaustive reference on JScript but it does cover the most commonly used parts of the JScript scripting language.

A Few Words about Syntax

JScript is case sensitive, so you need to be careful when working with variable or function names. In addition, each line of JScript needs to finish with a semicolon:

XDocument.UI.Alert("Hello World");

If you do have errors in your script or if the script simply does not run, double-check both the case and semicolons to see if they are used correctly.




How to Do Everything with Microsoft Office InfoPath 2003
How to Do Everything with Microsoft Office InfoPath 2003 (How to Do Everything)
ISBN: 0072231270
EAN: 2147483647
Year: 2006
Pages: 142

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net