Javascript Functions

Last Updated: 5/6/2009



Sections above here:
Home  »  Development  »  Javascript

Sections below here:

    Topics in this section:
    Overview
    Areas of Implementation
    Using Script Events
    Writing JavaScript Events
    More Script Events
    Javascript Functions
    Injecting JavaScript
    Hidden Fields
    Down Loading a File
    JavaScript Solutions

    Search Documentation:

    Common Functions

    IntraWeb includes several script files with JavaScript functions that are used internally. Some of these functions can also be called by the developer to perform certain actions. Following is a list of the more common ones:

    FindElem

    FindElem takes as parameter an object name and returns the object if it is found. You can use this function to find the instance of a certain element on the form.

    SubmitClickConfirm

    SubmitClickConfirm is used very often in IntraWeb. It takes fours parameters:

      function SubmitClickConfirm(AObjectName, AParam, ADoValidation, AConfirmation)

    The first is the object name, the second is a parameter passed to the action of the form. The third is whether validation is required or not and the fourth indicates the confirmation string. This function is used every time a confirmation string is entered into any control that supports the property. What happens is the following:

    When entering a value in the confirmation property of a TIWButton for example, the following code is called:

      SubmitClickConfirm("IWBUTTON1", "", True, "Did you really want to click this button?")

    What then happens is that SubmitClickConfirm will call a validation box with the text passed as parameter. If the confirmation box returns True, the form will be submitted. Otherwise it will not be submitted.

    When adding code prior to a SubmitClickConfirm, make sure that the code you add returns a True or False so that the form is submitted accordingly.



    (C) 2002-2009 - Atozed Software Ltd.