[ic] Interchange 4.8.3-1 (rpm) - Open link in new window

Barry Treahy, Jr. interchange-users@icdevgroup.org
Tue Jul 23 17:42:00 2002


Rick Eicher II wrote:

>Hello,
>
>I need the customer to agree to the user agreement before submitting
>there order. So I have a check box near the submit button that has to be
>checked. That part is work with no problem.
>
>I would like to make a link to the "User agreement" right next to the
>check box. I have the JavaScript that works, but not when I put it on
>the checkout page. 
>
>Here is the javascript function to open new window:
>
><SCRIPT> // User Agreement window 
>  function Start(page) {
>  OpenWin = this.open(page, "User Agreement",
>"toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes");
>   }
></SCRIPT>
>
>Here is the function being called:
>
>..
><td> 
>  [error name="agree" std_label="Do you agree with the User Agreement"
>
>   required=1 show_label=1] Yes 
> <INPUT TYPE=checkbox NAME=agree VALUE="[value name=agree]">
> 
>  <a href="javascript:Start('http://www.e-inventory.biz/cgi-    
>  bin/inventory/agreement.html')";>User Agreement</a>
>
Change the anchor to:

<a href="#" 
onClick="javascript:Start('http://www.e-inventory.biz/cgi-bin/inventory/agreement.html')";>User 
Agreement</a>

Barry

-- 

Barry Treahy, Jr  *  Midwest Microwave  *  Vice President & CIO 

E-mail: Treahy@mmaz.com * Phone: 480/314-1320 * FAX: 480/661-7028