2022.2

Table Of Contents
Note: Thestylesineachfollowingstylesheetadduptothestylesfoundinpreviouslyread
stylesheets.Whenstylesheetshaveaconflictingruleforthesameelement,classorID,
thelaststylesheet‘wins’andoverridestherulefoundinthepreviousstylesheet.
JavaScriptProperties
TheJavaScriptPropertiesdialogappearswhenyouright-clickaJavaScriptfileontheResourcespane
andselectProperties.(Seealso:"UsingJavaScript"onpage512.)
Itcontainsthreeoptions:
l
Name:ThisoptionletsyourenametheJavaScriptresourceinthetemplate.Thelinkbetweenthe
JavaScriptfileandWebsectionsthatincludeitwillnotbebrokenbyrenamingthefile.(Seealso:
"IncludingaJavaScriptfileinaWebcontext"onpage515.)
l
Async:Whenasyncischecked,thescriptexecutesasynchronouslywiththerestofthepage
(whilethepagecontinuestheparsing).
l
Defer:Thisoptionpostponestheexecutionofthescriptuntilthepagehasfinishedparsing.This
isrequiredbyAPIslikeGoogleMaps.
Itisrecommendedtocheckatleastoneoftheoptions:asyncordefer,orboth.Pagecontentwill
becomevisiblemorequickly,resultinginabetteruserexperience.
Ifyouenablebothoptions,asynctakesprecedenceonmodernbrowsers,whileolderbrowsersthat
supportdeferbutnotasyncwillfallbacktodefer.
Whenneitheroftheoptionsischecked,thescriptgetsfetchedandexecutedimmediately,interrupting
thepageloadingandrendering.
JSONsampledatadialog
TheJSONsampledatadialogletsyouloadJSONdataintotheDataModel(see"Loadingdata"on
page710).
Bydefault,theJSONdataismappedtocorrespondingfieldsintheexistingDataModel.Datathatdoes
notcorrespondtoanyfieldisdiscarded.
YoumayusetheReplaceDataModeloptiontolettheJSONdatareplacetheexistingDataModel.
Thedialogisopenedviathemenu:File > Add data > JSON sample data,orviatheJSONSample
DatatoolbarbuttonontheDataModelpane.
Theoptionsinthisdialogare:
l
File:ThepathandnameoftheJSONfiletouse.ThefileisassumedtobeUTF-8encoded.
l
Browse:OpensanexplorerwindowtobrowsefoldersandselectaJSONfile.
Page 891