Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

href + onlick

Status
Not open for further replies.

vlitim

Programmer
Sep 2, 2000
393
0
0
GB

I know the below onlick is wrong but I can't quite figure what the syntax is! getTask.taskCode.value works fine I just need to incorporate it into the querystring!

<a href=# onClick=&quot;developRequest.asp?step=5&taskcode='+getTask.taskCode.value>Develop request</a>
 
Hi, i think this is what you want:


<a href=&quot;javascript:document.location='developRequest.asp?step=5&taskcode='+getTask.taskCode.value;&quot;>Develop request</a>

Sergio M. Netto.
 
brillaint thanks very much for that!
 
You didn't close your quotes ' and &quot;&quot;, but I'm not sure it will work anyway.
Try this:

<script>
function gothere(where) {

document.location.href = eval('developRequest.asp?step=5&taskcode=', where);
}
</script>


<a href=&quot;#&quot; onClick=&quot;gothere(document.getTask.taskCode.value)&quot;>Develop request</a>



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top