Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Establishing and using a form name


Message #1 by Julian Voelcker <asp@t...> on Thu, 16 Jan 2003 12:40:59 GMT
Hi Kieth,

> I think you can use eval, and with try and catch (Off the top of my
> head, I know I have used eval this way before but I am not 100% sure
> about the code)

Thanks for that, although I still have a problem trying to find the 
form name using your code.

I have actually managed to find a way around it where I don't need to 
know the form name, and don't even need the eval - since there is only 
ever going to be just one form on the page, I can refer to it as forms
[0], so my code looks like...

document.forms[0].tSearchQry.value

Just the job.....

Cheers,

Julian Voelcker
The Virtual World (UK) Limited
Cirencester, United Kingdom



  Return to Index