logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • Laurent de Walick
    • Posted on Fri 29 Nov 2002

    The server needs the __Click field when using javascript on form generation because a submit doesn't always result in the document being saved.

    For example I add 2 buttons to a form and a select box that hides or unhides a section of the document when changed. The first button is : @Command([FileSave]);@Command([FileCloseWindow]); and the second : @Command([FileCloseWindow])

    Both actions will have a different __Click value.

    Domino sends everything to the server using a submit action in order to determine what the next action will be and uses the __Click field to determine the used button. When it's submitted with the first button, it will see the document has to be saved and then return to the homepage. When submitted with the second, it will not save the document and only return to the homepage and when I change the select option it will submit and return in edit mode with the section added or removed.

    A possible solution would be to respond on the form.submit() action as if the first button was used, but I don't know if this will wreck other functions.

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: