MiniVend Akopia Services

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

removing javascript from demo basket.html



******    message to minivend-users from Stewart McCullough <stewart@yixing.com>     ******

I would like my site to work for non-javascript browsers (or browsers with
javascrtipt turned off).  Yet I have run into a problem on the basket.html page
that is included in the demo.  Although I have modified the HTML surrounding the
heart of the basket.html, I've basically left the form untouched until now.  So
the problem is...

the form tag reads:
	<FORM ACTION="[process-target secure=1]" METHOD=POST>

this means that any action that gets submitted to this form automatically gets
forwarded to the secure server, which is fine if the button pressed is "check
out".  The problem comes if the visitor wants to press either "remove" or
"recalculate", in which case I don't want the form submitted to the secure
server.  The default demo basket.html code circumvents this problem by including
the following line in the <input> tag:
	onClick="document.forms[0].action='[process-target]'"
which works if the user has javascript turned on, but if they aren't using
javascript, then the basket.html file is reloaded via the secure server (which
causes problems).

I would like it if there were a way to set "secure=1" in the "check out" <input>
tag and leave the "secure=1" OUT of the <form> tag.  Is something like this
possible?

thanks,

Stewart
(the site I'm referring to is at http://www.yixing.com)
-- 
===================================================
Montana Banana Web Design (http://www.montanab.com)
YiXing.com Chinese Teapots (http://www.yixing.com)
206-322-2435
-
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: