[Javascript] Java quesiton

Mike Dougherty mdougherty at pbp.com
Wed Nov 5 08:12:01 CST 2003


Be sure to properly delimit the ASP code with <% = id %>
because the way you have written it will definately fail on the server.

-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu] On Behalf Of Wilding, Marcus (M.)
Sent: Wednesday, November 05, 2003 3:06 AM
To: 'javascript at LaTech.edu'
Subject: [Javascript] Java quesiton



Hi, 
        I have managed to use a text box to generate a dynamic web link
using information from this forum and others. The code I have used is
shown below...

<form name="form1" action ="link.asp" > 
<input type=text name="url1"> 

<a
onclick="window.location=('http://har03000/'+document.form1.url1.value)"
>link</a> 
  
 <hr> 
  
  <form name="form2" action ="link.asp" > 
<input type=text name="url2"> 

<a
onclick="window.location=('http://har03000/'+document.form1.url2.value)"
>link</a> 


</form> 

This is for two dynamic boxes and links. The problem is I want to use
asp variables as part of the url in the link. This means that if I read
through a database with asp and generated a table, each row would have
the text box and link at the end of it but each link would contain
unique information from each record.

Something like this.. 


  <form name=<%=id> action ="link.asp" > 
<input type=text name=<%=id>> 

<a
onclick="window.location=('http://har03000/'+document.form1.<%=id>.value
)">link</a> 

</form> 

Is it possible? 


Regards, 
Marcus Wilding 
Systems Analyst 
Systems Department 
54/300 
Halewood Transmission Plant 
Getrag Ford GmbH 
Liverpool 
L24 9LE 

Phone +44 (0)151 485 5580  (8 716 5580) 
Fax   +44 (0)151 485 5589  (8 716 5589) 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20031105/7373707a/attachment.htm>


More information about the Javascript mailing list