|
|||
|
Wednesday 2004-09-29
Stupid yahoo store
The Yahoo Store Tag help has this to say about Order Buttons:
The Order Button tag gives you the ability to add an order button to your HTML page for a specific item. In order to work correctly, the Order Button tag must be located within an HTML form tag, otherwise the customer will be unable to place an order. The Order Button tag is: <!--#ystore_order id=your_item_ID_here --> Things to Remember
Here's sample code showing the Order Button tag within an HTML form tag: <form method="post" action="<!--#ystore_order id=your_item_ID_here -->"> <input type="submit" value="Order"> </form> Now, this is all based upon a server side rewrite, but for our purposes, this screws with XML/HTML tools, since this is not well formed!!! A safer way to do this, which uses a bit of javascript, is: <form name="FOO" method="post" > <input type="submit" value="Order"> </form> <script> document.forms.FOO.action="<!--#ystore_order id=your_item_ID_here -->" </script> |
Misc
Groups
Business
Kick Ass Web Services
Publications
Reference
|
||