[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Problem with Minivend 3.12 forms.
****** message to minivend-users from Kyle Cook <kyle@invisio.com> ******
Jayme,
The problem you are encountering is because of the javascript
used in the basket and other checkout pages, to fix it you need to
make a change to any basket or checkout page that will be using
your header file with the search form in it.
Everywhere you see the following code:
document.forms[0]
you need to change it to:
document.forms[1]
Because those forms use javascript to submit the forms, the code
document.forms[0] means "submit the first form that appears on the
page"
So changing it to document.forms[1] means submit to the second
form that appears on the page (the one you really want to submit).
So for each form that you put on a page that appears before the
javascript forms you need to increase the number.
Kyle Cook
At 03:02 PM 4/29/99 -0500, you wrote:
>****** message to minivend-users from Jayme Frye <jfrye@ehg.net> ******
>
>Hello All,
>
> I've coded myself into a corner and I can't find a way out. My problem
>revolves around forms. I have a header which appears on every page. It
>has a few navigational links and a drop down menu form that performs a
>search by category.
>The form code is:
>
><FORM ACTION="[process-search]" METHOD="post">
><B>Browse A Category:</B> <select name="mv_searchspec" size="1">
><option value="workpapers" selected>Workpapers
><option value="paper_storage" selected>Paper Storage
><option value="tax" selected>Tax Supplies
><option value="presentation" selected>Presentation Materials
></select> <input type="hidden" name="mv_matchlimit" value="5">
><input type="submit" NAME="mv_todo" value="GO">
></FORM>
>
>This works brilliantly on all pages except basket.html.
>
> Basket.html is cosmetically altered from the simple catalog. It
>functions fine without the header. When the header is inserted with an
>[include] tag I get the following behavior.
>
> 1. Recalculate, Continue Shopping, Search,
> and Stop Shopping will return on a secure page. The url
> changes from the normal
>http://com1.ehg.net/cgi-bin/hgdev/process?wfUS5yz2;;117
> to https://com1.ehg.net/cgi-bin/hgdev/process?wfUS5yz2;;1177.
> The values are update however.
>
> 2. Clicking on the remove checkbox results in a Minivend error
> "Something has gone wrong... No action passed from form"
>
>The relevant code for the basket.html form is:
>
><FORM ACTION="[process-target secure=1]" METHOD=POST>
><INPUT TYPE=hidden NAME=mv_session_id VALUE="[data session id]">
><input type="hidden" name="mv_doit" value="refresh">
><input type="hidden" name="mv_orderpage" value="ord/basket">
><input type="hidden" name="mv_checkout" value="ord/checkout">
><input type="hidden" name="mv_nextpage" value="catalog">
><INPUT TYPE=checkbox NAME="[quantity-name]"
> onClick="document.forms[0].action='[process-target]',
> document.forms[0].submit()"
> VALUE=0>
><input type="submit"
> onClick="document.forms[0].action='[process-target]'"
> name="mv_submit" value="[L]Recalculate[/L]">
><input type="submit" name="mv_click" value="[L]Check out[/L]">
><input type="submit"
> onClick="document.forms[0].action='[process-target]'"
> name="mv_click" value="[L]Search[/L]">
><input type="submit"
> onClick="document.forms[0].action='[process-target]'"
> name="mv_click" value="[L]Continue Shopping[/L]">
><input type="submit"
> onClick="document.forms[0].action='[process-target]'"
> name="mv_click" value="[L]Stop shopping[/L]">
></FORM>
>
>[set [L]Stop shopping[/L]]
>mv_todo=return
>mv_nextpage=canceled
>[/set]
>
>[set [L]Check out[/L]]
>mv_todo=return
>mv_nextpage=ord/checkout
>[/set]
>
>[set [L]Continue Shopping[/L]]
>mv_todo=return
>mv_nextpage=catalog
>[/set]
>
>[set [L]Search[/L]]
>mv_todo=return
>mv_nextpage=srchform
>[/set]
>
> I'm at a loss. Anyone willing to give me a kick in the right direction?
>
>Jayme Frye
>Systems Administrator/Webmaster
>Epsen Hillmer Graphics Co.
>Omaha, NE
>-
>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
Kyle Cook
http://www.invisio.com
Web site design, database driven sites,
and shopping cart programming.
Great sites, value priced!
-
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