Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can u fix this...

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

    Thanks
    ernilla

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Fix what?
    There's nothing there....
    Try searching these forums for "popup windows"

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Planet Earth Code Poet: True
    Posts
    282
    Thanks
    0
    Thanked 1 Time in 1 Post
    I'm not quite sure what you are after but if my Jedi senses are in tune something likt this might work for you:

    Code:
    <!--//
    function open_basket(){
    	window.open("","basket","width=200,height=200,scrollbars");
    }
    //-->
    </script>
    
    <form target="basket" onsubmit="open_basket()" action="<% ORDER_URL %>" method="post" name="artikel_$item_cnt">
    Last edited by JohnKrutsch; 07-07-2004 at 07:46 AM.

  • #4
    New to the CF scene
    Join Date
    Jul 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thanks

    perfect thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •