View Full Version : Can u fix this...

07-06-2004, 03:40 PM
Hi, can anyone have a go at adjusting this code, i know it may be tricky to change and not being able to test, but any help what so ever would be great, i am desparate.

I need the form below to carry out the same action (place in shopping basket) but also open up the basket in a new window with no navigation elements and a set size. Placing a _blank in the forms works but obvioulsly i need to add some java (perhaps open browser window) i have tried but it all seems to go wrong.
At the moment the basket opens up in the main frame of a frame set and thus wont show the ssl padlock, opening in a new window is a soloution to this. I know frames are bad news but i have no choice for now (its a long story!)

<form action="<% ORDER_URL %>" method=post name="artikel_$item_cnt">
<input type=hidden name="article[Title]" value='$item_title'>
<input type=hidden name="article[VAT]" value="$item_vat">
<input type=hidden name="article[Item_Number]" value="$item_code">
<input type=hidden name="article[Price]" value="$item_price">
<input type=hidden name="article[Category]" value="$item_category_path">


Willy Duitt
07-06-2004, 04:48 PM
Fix what?
There's nothing there....
Try searching these forums for "popup windows"

07-07-2004, 06:41 AM
I'm not quite sure what you are after but if my Jedi senses are in tune something likt this might work for you:

function open_basket(){

<form target="basket" onsubmit="open_basket()" action="<% ORDER_URL %>" method="post" name="artikel_$item_cnt">

07-07-2004, 01:17 PM
perfect thanks