[Javascript] Java quesiton

Andrew Gibson andyg at ihug.co.nz
Wed Nov 5 02:13:10 CST 2003


Why not try it and see if it works?

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)">lin
> k</a>
>
>  <hr>
>
>   <form name="form2" action ="link.asp" >
> <input type=text name="url2">
>
> <a
>
onclick="window.location=('http://har03000/'+document.form1.url2.value)">lin
> k</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)">l
> ink</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)
>
>


----------------------------------------------------------------------------
----


> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>




More information about the Javascript mailing list