MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: help on understanding the demo code



******    message to minivend-users from rho@Austria.EU.net (Robert Barta)     ******

>   <INPUT TYPE="CHECKBOX" NAME="mv_order_item"
>     onClick="document.forms[0].action='[process-target]',
>                                         document.forms[0].submit()"
>      VALUE="[loop-code]">
> 
>   The portion I have difficulity understanding is document.forms[0].action
>  and document.forms[0].submit(). What kind of datastructure is "document"
> and where is the definition? Where does the code reside?  Where is the syntax? 
> 
>   I went through the document and the archives and found nothing. Could
> anyone tell me tell me where to find the answer?

In case no one answered: document.form[0].submit() is JavaScript code. It means
that 

    if someone clicks on to "mv_order_item" checkbox, the "action" attribute
    of the surrounding <FORM> is set to the value of [process...] 

and 

    a submit is triggered.

\rho
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: