MiniVend Akopia Services

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

Re: Using JavaScript to submit a MV form



******    message to minivend-users from Barry Treahy <treahy@mmaz.com>     ******

What I have confirmed is that if I define the mv_ variables using hidden input tags,
the button works, EXCEPT that the userdb function call is not performed.  Don't get
it, why???

Barry Treahy wrote:

> ******    message to minivend-users from Barry Treahy <treahy@mmaz.com>     ******
>
> I'm doing content validation of specific fields using JS at the time of
> forms submission, using the onClick function.  Figured this would be
> cool, but I'm getting the error screen and looking at the logs, MV is
> reports:
>
>             Difficulty interacting with browser: No action passed from
> form
>
> yet mv_click and others are defined.  A sample snippet is:
>
>   <FORM ACTION="[process-target]" METHOD="POST">
>
>      (all sorts of form stuff deleted...)
>
>       <INPUT TYPE="hidden" NAME="mv_click" VALUE="Save Ship-To">
>       <input type="button" NAME="mv_click" value="Save Ship-To"
> onClick="if (check_form(this.form)){this.form.submit()}">
>       <input type="submit" NAME="mv_click" value="Cancel Request">
>     </FORM>
>
> [set Cancel Request]
>   mv_doit=refresh
>   mv_todo=return
>   mv_nextpage=login
>   [userdb function=logout]
>   mv_username=""
>   mv_password=""
> [/set]
> [set Save Ship-To]
>   mv_doit=refresh
>   mv_todo=return
>   mv_nextpage=new_billto
>   mv_failpage=new_shipto
>   [userdb function=set_shipping
>    shipping="company name address address2 city state state_other zip
> country country_other phone_day fax email"
>    username="[value mv_username]"
>           nickname="[value mv_username]"]
> [/set]
>
> Any ideas???
>
> Barry
>
> -
> 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



-
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: