Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Basket problem!


Message #1 by "Eggert Bjarni Saevarsson" <bjarni@v...> on Sat, 28 Oct 2000 17:39:42 +0100
You can create an href to open a new page that does the put - the
QueryString etc should be populated from your asp, of if you want more
control about the window then you can create an href that runs some
javascript...


<a href="add it" onClick="AddToBasket('Prod01'); return false">Add</a>



the write some javascript on the client like...



<script language="javascript">
<!--
function AddToBasket(sWhat)
{
	newWindow = window.open("AddMyGoods.asp?AddWhat=" + sWhat, "",
"toolbar=no,directories=no,width=600,height=200,scrollbars=1");
}
//-->
</script>


The fact that the href onclick event returns false means that the href is
never followed through.


-----Original Message-----
From: Eggert Bjarni Saevarsson [mailto:bjarni@v...]
Sent: 28 October 2000 17:40
To: javascript
Subject: [javascript] Basket problem!


I am trying to make a basket that works like this:
 
When I click on "put into basket" the basket is suposed to open in a
javascript sized window but the the product page is not suposed to chance.
 
 Can anyone help please?


  Return to Index