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

Rick Eicher II interchange-users@icdevgroup.org
Tue Jul 23 19:39:01 2002


> -----Original Message-----
> From: interchange-users-admin@icdevgroup.org
[mailto:interchange-users-
> admin@icdevgroup.org] On Behalf Of Barry Treahy, Jr.
> Sent: Tuesday, July 23, 2002 4:41 PM
> To: interchange-users@icdevgroup.org
> Subject: Re: [ic] Interchange 4.8.3-1 (rpm) - Open link in new window
> 
> 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
> 
> --

When I change the anchor to the above and click on the link it just
reloads the check out page. 

Just to double check I loaded the checkout page in my browser and did a
view source. From the anchor above in the code I copied and pasted that
URL in a new browser window. The 'User Agreement' came up with out a
problem. So at least I know I am trying to point to the right URL.

This should be such an easy one. :(

Thanks,
Rick Eicher II