onload or/and onunload property of the <body> for a single topic? I would like to execute some JavaScript to initialize/save HTML form fields values.
Something like %HTMLBODY{onload="myjavascript" onunload="myotherjavascript"}% would be just great.
-- StephaneLenclud - 15 Sep 2006
If you are interested in JavaScript integration with TWiki also have a look at TreeBrowserPlugin.
-- StephaneLenclud - 15 Sep 2006
Don't use onload directly - it will be overwritten - use addLoadEvent from twiki.js, as described on SkinsAndJavaScript.
-- ArthurClemens - 15 Sep 2006
Support topics about JavaScript:
AccessConfigurefile, AccessControlIssue, AccessRestrictionsVersusTWikiSearch, AccessingMySqlTablesInTWikiUsingDakar, ActionTrackerBreaksCairoWebHomeTopics, ActionTrackerCloserAndClosedBugs, ActionTrackerConfigError, ActionTrackerLdapDeepRecursion, ActionTrackerNotStarting, ActionTrackerPluginSearchIssue, ActionTrackerPluginStateProblem, ActionTrackerStateDropDown, ActionTrackerWithLoginNames, AddJavascriptToHead, AdjustingHeadingsDuringInclude, AftersavehandlerPatchInstallation, AllowTopicViewForLoggedInUsers, AllowTopicViewInPreviousTopicRevisions, AlmostEverythingBreaksListStructure, ApacheErrorsDuringEdit, AskedQuestions, AttachmentEditLock, AuthenticationFailure, AvoidWLinksForCertainWikiNames, BestWayToEditContent, BetterEditWidget, BibtexPluginCygwin, BinConfigureAndTinyMce, BlacklistPluginIPStorage, BrokeAccountWithBadSidebarInput, BrokenPipeAfterDakarInstallation, BugInSubWebACLs, CGISessionComplaints, CalcInsideSearch, CalendarAppearsAndDisappears, CalendarBugOnEditTablePlugin, CalendarPlugInError, CalendarPluginfailed, CalendarWithLinkToPreviousAndNextMonth, CanIRenderWikiWordsSpacedOut, CanNotRegisterNewUser, CanWeIncludeFramesInAWikiSite, CannotCreateaNewTopic, CannotEditActionsActionTracker, CannotInlineFromHttpS, CannotRunConfigure, CannotUploadFiles, CannotVerbatimHeadTag, CannotViewConfigurePageInstallation, CantAuthoriseRight, CantEditPagesOnNewInstall, CantEditTWikiRegistrationTopic, CantInstallYetAnotherDBCacheContr, CantLocateEntitiesPm, CantLocateErrorPm, CantLocateErrors, CantLocateObjectMethodCheckPasswd, CantLocatePluginsInAtINC, CantRunConfigureScriptAnymore, CantSubmitNewUsers, CarriageReturnsInFormattedSearch, CategoriesDoNotDisplay, ChangeJSCalendarDateFormat, ChangeTheEditPage, ChangesToTWikiTemplateFile, ChangingRequirementsForWikiName, ChartPluginMissingGDpngMethod, CheckingIfFieldValueIsAWikiWord, ClickCancelToRegister, CollectingInformationOnUserPages, CombiningCalcAndSearchInTable, CommentInTable, ConditionalBasedOnTableCell, ConditionalViewTemplateForSearchOut, ConfigurationErrorLogFilesPath, ConfigurationErrors, ConfigurationNotBeingSaved, ConfigureDoesNotRecognizePluginFiles, ConfigureNotWorkingWithProxy, ConfigureScreenDoesNotHaveAllOptions, ConfigureScriptFailedToRunForPlugin, ContentMatrix, CreateNewPage, CreateWebNamesLongerThanTenCharacters, CreatingForms, CreatingPageWithUidAndUserText, CreatingTopicsWithWebBasedTemplates, CrossSiteScripting, CssAndjavascriptForOnlyOneTopic, CwdDotSoUndefinedSymbolStrlcpy, DatabasePluginDBSidError, DatabasePluginQuestion, DateNoShowInSignature, DatePickerInComment, DatePickerWithCOMMENT, DefaultGroup, DeleteAttachmentError, DeleteOrMoveAttachmentError, DiffProblemswithRevisionsofTWiki, DifferentHTMLGeneratedForIE, DifferentNatSkinWebSideBarForTheWeb, DirectedGraphPluginError1, DisableEditsForMaintenance, DisableLdapContribBuildingOfOwnCache, DisabledTextFieldsAndTemplates, DisplayUserImage, DisplayVisioImageOnWebPage, DisplayingTextareaFormValuesInSearchTable, DoINeedtoUpgradeTwiki, DoNotAllowEmptyCreate, DoNotShowAttachmentInTable, DragAndDropAttachments, DuplicateTopicNames, DynamicCellBGCOLORonListSelect, DynamicTopicNameInTemplate, EditHangsInternetExplorer, EditInputBoxMissing, EditParentDoesntScale, EditTableButtonTopAndBottom, EditTableDatePopupNotWorking, EditTableJavaScriptInterface, EditTablePlugInOpsSeemToHang, EditTablePluginCpuExceeded, EditTableWithInclude, EditingTextAreaMissingNeedHelp, EdittableAndIncludeIncompatible, EerieWierdnessWithFirefox, EmailWontSend, EmbedFlashApps, EmbedddingMacrosInWebList, EmptyFileInTopicClassificationAO, EnableAuthenticationForSimpleMinded, ErrorDocumentDoesNotFindOopsTemplate, ErrorLoadingClass, ErrorOnUpgradingExtensions, ErrorRegisteringNewUser, ErrorSavingTopic, ErrorSessionHASHref, ErrorWhenEditOddChineseCharacterWikiName, ErrorsUsingModPerl, EscapeKeyWhileEditing, ExpiryNotification, ExtendingSearchFunctionality, ExternalProgramLink, ExternalUncReferences, ExtractClassificationFromWebForm, FailedBecauseSearchPermissionsAreMissing, FailingPercentGROUPSPercent, FastAttach, FatalErrorCreatingWikiGroup, FileAttachmentsWithBlogPlugin, FirefoxForms, FirstInstall, FixingSendmail, FormattedPatternMatchSearch, FormattedSearchDoesNotWork, FormattedSearchTopicCrashesOnWindows, FormattingTipsInFormEditMode, FormsWithClassificationDependencies, FreePositioningOfForms, FunnylookingTwikihomepagePluginproblems, GenPDFAddOnConfiguration, GermanLocalisation, GetListofAllUsersSeparatedByCommaWithSearch, GlobalExcludeOfWikiWord, GoogleAjaxSearch, GoogleDesktopForIntranetTwiki, GoogleIndexOfTwikiPages, HardwareRecommendations, HeaderAndSomeTabsDisappearance, HelpOnSchoolProject, HideTWikiUserListdeletesList, HierarchicalNavigationSort, HistoryLikeInMediawiki, HistoryofBBCode, HorizontalScrollBarProblem, HowBulkRegistrationBehaves, HowCanIEnableFrenchCharsetInTwikiWord, HowDoINotExpandPluginVariablesInTemplates, HowDoYouSetupAnRssFeed, HowDoesRevisioningWork, HowTOEditMenu, HowToAddAPopUpCalculator, HowToAddIdAndTitleToLists, HowToAddNewTopic, HowToAggregateLocalWebNews, HowToBestUseMysqlToBuildForm, HowToBuildDynamicForms, HowToChangeDefaultTemplate, HowToChangeTopicParentUsingNatSkin, HowToColorCellsInAFormattedSearch, HowToConstrainRegistrationEmailToOneDomain, HowToConvertPrintableIntoPrint, HowToCreateASlideshow, HowToCreateAUniqueIndiviualTwikiWeb, HowToCreateEditOnIntranetTwiki, HowToCreateNewTopicUsingKupu, HowToCreateTopicNameFromFormField, HowToCreateVariableWithParameters, HowToCustomizedAccessControlList, HowToDenyAccessToAllUsersAndAllGroupInaWeb, HowToDisplaySiteHierarchy, HowToDynamicLayoutPage, HowToDynamicallyCreateTopics, HowToEditFormfieldsWithoutEdit, HowToEditSidebarVariables, HowToEmbedPopupMenuToTWiki, HowToEnableAutoLogout, HowToEscapeDataFromUntrustedSource, HowToExcludeWikiWords, HowToExpandVariableOnSave, HowToFixTWikiConfigurationErrors, HowToGenerateAdressListFromUsersPages, HowToGetTWikiRunningOnWindowsXPHome, HowToGrabHTMLValueInCalc, HowToHaveTwoLevelsInLeftBar, HowToHideEditActionForQuestionSuppor, HowToHostSeveralTWikis, HowToInsertAnyFileWithTinyMCE, HowToInsertJavaScriptInTheWebTopBar, HowToInstallMailerContribOnCairo, HowToInstallSearchSecurityPatch, HowToIntegrateFCKEditor, HowToIntegrateLegacyStaticReportingApplications, HowToIntegrateWeekAndMonthCalendar, HowToMakeCommentFieldMandatory, HowToMakeFieldInTheFormRequired, HowToMapTWikiNameFromUserName, HowToNestMetasearch, HowToPassJavascriptVarToTWikiFunc, HowToPhotoArchive, HowToPlaceFormAtTopOfPage, HowToProgrammaticallyEditAPage, HowToSaveFormData, HowToSaveSpreadSheetVariablesLocally, HowToSetMultipleFormCheckboxes, HowToSetParentTopicInEditTemplate, HowToSetRelativeLinksTopicIncludes, HowToSetUpCommandInCrontab, HowToSetupUserRegistration, HowToShowPageVisitorCount, HowToSnapshotRenderedPages, HowToSortAList, HowToSubscribeForSecurityAlerts, HowToTranslateLdapLoginToWikiname, HowToTurnOffBoldInaHeading, HowToUpdateFromVeryOldVersionToNewestTWiki, HowToUpgradeFromAthenToCario, HowToUseJSCalendarInTopic, HowToUseJavascriptOnload, HowToUseProjectPlannerPlugin, HowToUseProjectPlannerPlugins, HowToUseYahooUserInterfaceContrib, HowtoCreateTopicInAnotherWeb, HowtoMultipleSearchesInSameTopic, HtmlTwisties, HtpasswdGeneration, IE7DoesNotShowPatternLeftBar, IGotASoftwareError, INCArrayPerlProblems, IeMacBrowserIssues, IeWinBrowserIssues, ImageManagement, ImportingHtmlFiles, ImproperUseOfTheSaveScript, IncludeVariableDoesNotWork, IncorporatingWebCounter, IndigoPerlWindowsInstallationProblem, InsecurePathAgainOnWinXP, InstallPerlIISTaintIssue, InstallationError, InstallationHttpdConf, InstallationOfTWikiEdinburghRelease, InstallationOnApacheWithVirtualHosts, InstallingTWiki, InstantEnhancementSearchExample, IntegrateWeekAndMonthCalendar, InterwikiLinkWithQuotes, IsRCSLiteReadyForPrimeTime, IsoDocumentApprovalProcess, IssueWhileInstallingPlugins, IssuesWithNatSkinOverrideForaWeb, JSCalendarNotDisplayingOnOperaPatternSkin, JapaneseTemplateTranslation, JavaScriptExecutionProblem, KeepingLineBreaksInForms, KonquerorBrowserIssues, KupuEditorAddOnFormatProblems, KupuEditorFailedToSave, KupuWYSIWYGNotFunctioning, LDAPAuthenticationOnly, LaunchSeparateWindows, LayoutOfCSSForLynx, LdapContribAuthProblemOracleOID, LdapContribCannotFindMe, LdapNGPluginHowToFilter, LeftSideBarIsCreatedAtBottomOfPage, Line40ErrorExpectedLeftParen, LinksOfInterestLibraryCreation, LinktoWebNotTopic, ListOfWordsToForceAsLinks, LocalSiteFileDeleted, LocalhostCgiBinFlowChartPlugin, LoginForm, LogonBeforeFormSubmit, LostLogoutLink, METAformfieldDisplayBroken, MailInContribDoesntWorkWithExchange, MailToTWikiInDakar, MailerContribOutOfMemoryError, MailnotifyThroughCronNotWorking, MakingWebMenuWork, ManagingAccessOfSeveralTopics, MarkupLanguage, MathModePluginRenderingInTable, MenuDropDownInTopBar, MigratingDocOrHtmlToWiki, MissingViewPatchinTreeBrowser, ModeratingTWikiRegistration, MoreTopicActionsError, MoreTopicActionsNotWorking, MoreWebsMoreWebs, MouseHighlightingInIntenetExplorer, MoveUserpagesToAnotherWeb, MozillaDoesNotRender, MozillaFirefoxCrashBrowsingTwikiOrg, MultiColumnLists, MultiFileAttach, MultipleSearchResultInFeb2003Release, MultipleTagsToOneTopic, NameTopicBasedOnFormFieldContent, NatEditJavaScriptProblem, NatSkinEditProblem, NatSkinNoSaveOrCancelButton, NatSkinSearch, NavigatingBetweenFormInstances, NestedSearchOfMetaData, NewUserPagesDateIncorrect, NewUserPluginRenderLdapCnAsWikiName, NoAccessToConfigurePasswordMismatch, NoAutoLinkFailsInTables, NoPermissionToReadTopicNewUserTemplate, NoPopupCalendarInForm, NoTablePageWrapInPrintFromFirefox, NonExistingWikiWordsLinkProblems, NotoDisplayLeftBarOnWebHomeforAllUsers, NototalDoesNotAffectSearchResults, NovellMessengerLinkNotWorking, OnWindows500InternalServerError, OpenLinkInNewBrowserWindow, OrderSearchResultsMostRelevantFirst, ParseValuesBetweenTopics, PartialAuthenticationOnDakar, PatternSkinTOCRecipes, PermissionsDontWorkWithLdapContrib, PermissionsForWysiwygPlugin, PermissionsForbiddenonthisServerError, PhpScript, PluceneEmptySearchResults, PluginInstallScriptForLinux, PluginInstallerPackageUrl, PossibleToSearchRevisionDate, PostingUsingGETnotPOST, PreconditionFailed412, PreferenceVariableJSCalendar, PriorTopicRevisionsLost, ProblemWithPluginHandler, ProblemWithScriptTagInTwiki4, ProblemsEditingUserInfo, ProblemsWithFileAttachmentsAndDelete, ProblemsWithSavingTopics, ProblemsWithTwistyPlugin1Dot1, ProjectPlannerPluginNotWorking, ProsConsMultiOrSingleWeb, PublishAddOnConfiguration, QuickMenuSelectableSubMenus, QuickMenuSkinProblems, QuickMenuSkinWYSIWYGMenuItemFonts, RCSLiteEmptiesTheLockInRcsFiles, RCSUnlockingIssue, RFExAutoNumberingForHeadersToo, RSSFeedInvalid, RadioButton, RcsWrapDoesNotSupportRcsDirs, ReWritePubExperience, RedirectScriptNotWorking, RedirectUsersToCertainWebOnLogin, ReferenceFormValueOnSubmit, RegisterUser, RegisteringUsersAreNotAuthenticating, RegistrationForm, RegistrationFormMissingPasswordField, RemoveTagFromOneTopic, RenameTopicChangeLinksCheckboxMissin, ReplaceJumpWithSearch, ResetPasswordFailsWithErrorMessage, RestrictAccessToSelectedWebProblem, RetrieveValuesFromAFormsTable, RevisionComments, RssCantLocateLWPUserAgent, RtlSupportTinyMce, SEARCHFailWithFormFieldAfterUpgradeTo01Sep2004, SSLAndTWikiDrawDoesNotWork, SafariBrowserIssues, SafeEnvPathNotWorkingCorrectly, SafeToReorgRCSSubdirs, SanitisingHTML, SavingTruncatesText, ScriptTagSaveIssues, ScriptsNotFound, SearchAllWebsbyDefault, SearchProblem, SearchingForAttachments, SectionalEditPluginVsMultiEditPlugin, SecureAccessToOutside, SecurityWithSubdomainVsDomain, SelectivelyDisablingAutolinks, ServingTWikifromURLRoot, SetMaxCacheAgeToInfinite, SettingBrowserWindowSize, SettingUpFirstPageOnPrivateServer, SettingUpSingleSignOn, SetupRegistrationProblem, ShowAttachmentTableByDefault, SlowResponsePreviewAndSaveMore4k, SomeChineseCharactersBreakWikiLinks, SomethingWrongWithUTF8, SpaceAddedToIconUrlPath, SpellerPagesPluginAndFirefox, SpellerPagesPluginInstallationIssues, SpreadSheetPlugInSumOfEmptyCells, SpreadsheetPath, StillMultipleEditsWithinOneHour, SuddenStop, SupportPlugin, TOCVariableBugs, TWikiCygwinLighttpd, TWikiFuncModuleWithExternalScript, TWikiGroupEventCalendarProject, TWikiOrgLeftBarWithFirefox, TWikiRegistrationHtpasswdGeneratePasswdError500, TWikiServerHardwareRecommendations, TWikiServerLockUp, TWikiWithSingleSignOn, TableBGcolorAndAlignmentIsNotWorkingInBlueskin, TagMePluginTagSearchNotWorking, TestenvIconLinkBrokenSkinNotAppliedToSite, TextBodySearchNoResults, ThreadedDiscussionPluginNotWorking, ThreadedDiscussionPluginProblem, TimeTablePluginBreaksWysiwygOnIE7, TinyMCEButtonsConfig, TinyMCEPluginInstalCconfigure, TinyMceEditorCreateTableJavascript, TooManyCGISessFiles, ToolTipPluginInstallProblem, TopicAllegedNotToExist, TopicClassificationAddOnProblem, TopicNameGeneration, TopicNameWithSpaces, TopicTitleColour, TopicsRemovedIntermittentlyWhileSaving, TreeBrowserFileLink, TreeBrowserPluginError, TreePluginFormatVariables, TwikiInstallation, TwikiOnServerWithWrongTime, TwikiSecurityOnCorpNet, TwikiVariablesPageWontLoad, TwistiesDisappearedIn412, TwistyBehaviourProblem, TwistyBrokenAfterBundleUpgrade, TwistyExpandAllNotWorkingInIeSafari, TwistyPerformanceinIE, TwistyPluginInterferesWithAjax, TwistyPluginQuickMenuSkinIssue, TwistyPlusGluePlugin, UnableToEditTopics, UninitializedValueInConcatenationOrStringAtNetPM, UninitializedValueInStringError, UninitializedVariableInEdit, UnkownIssueInWarningTxt, UpgradeBreakEditFunction, UpgradeTo405CausesErrors, UploadedFileDoesNotExistOrIsEmpty, UseLDAPAuthenticationCannotLogOut, UseOfRemembranceAgentAsAlternateSearchEngine, UserListByPhotographNotWorking, UserTopicNotCreated, UsernameMappingBrokeAfterUpgradeTo02Sep2004, UsingGoogleAnalytics, UsingPreBreaksTOC, VersionControlUnderChroot, VersionHistoryDoesNotWork, ViewAccessControlsNotBeingHonoured, ViewHyperlinksThatExcludeSpecificTextUsingWildcards, ViewauthRedirectionBroken, VirtualMachineHangsWhileStarting, WYSIWYGEditorBreaksSystemTopics, WYSIWYGIsReadOnly, WYSIWYGPluginDeletesAllTopicContentWhenSaving, WebDavProblemCantOpenVarLockTWiki, WebNotify, WebNotifyAcrossMultipleWebs, WebNotifyNotWorking, WebPreferences, WebRssAndEUCJPAndMojibakeCorruption, WebSearchProblemWithCygwinAndXAMPP, WebStatisticsChangedDateIsWrong, WebleftbarTOCandWebtopiclist, WhatIsWEBTOPICLISTUsedFor, WhatVersionOfTwikiIsInstalled, WhenToUsePUBURLOverPUBURLPATH, WhereCanIDownloadOlderVersions, WhereIsTheLoginPage, WhereToPutTheTagmeTag, WhereToStoreTempFilesForAPlugin, WhySearchTotalsMissing, WhyTemplatesDontParse, WikiwygContribEditorNotWorking, WordpressIntegration, WouldYouLikeTo, WrongRcsUserName, WysiwygAndTextAreas, WysiwygRenderingProblem, WysiwygSearchFormProblem, XmppLinks,