Thanks fro all the responses. And thanks Andy that explained why my testing
for the problem wouldn't work and that let me look past that and try another
way round it. Plus its Monday morning and everything seems so much easier.
-----Original Message-----
From: Andy Ewings [mailto:[EMAIL PROTECTED]]
Sent: 08 March 2001 17:15
To: CF-Talk
Subject: RE: Javascript: Tearing my hair out
Kevin
I may be wrong but as soon as you execute a document.write it anhialates the
page i.e. the form no longer exists. You have to use Javascript layers or
frames to overcome this.
A
------------------------------------------------------------------
Andrew Ewings
Project Manager
Thoughtbubble Ltd
http://www.thoughtbubble.net
------------------------------------------------------------------
United Kingdom
http://www.thoughtbubble.co.uk/
Tel: +44 (0) 20 7387 8890
------------------------------------------------------------------
New Zealand
http://www.thoughtbubble.co.nz/
Tel: +64 (0) 9 488 9131
------------------------------------------------------------------
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890.
-----Original Message-----
From: Windle, Kevan [mailto:[EMAIL PROTECTED]]
Sent: 08 March 2001 17:03
To: CF-Talk
Subject: Javascript: Tearing my hair out
I'm using IE5. Trying to do something really simple in javascript. The
problem I'm having is this. I can reference a form element with inline code.
So passing this variable to a function like this works:
<input
ondblclick="resetwhereboxes(this.value,3,document.forms.wheres.wherefield1.n
ame)" type="text" size="10" name="wherefield1">
then in the function:
<SCRIPT type="text/javascript" language="JavaScript1.2"><!--
function resetwhereboxes(fname){
1 document.write(fname);
2 document.write(document.forms.wheres.wherefield1.name);
3 document.write(document.forms[0].wherefield1.name);
}-->
</script>
line 1 works. But line 2 and 3, give the error messages claiming there is no
such object.
Anyone seen anything like this?
****************************************************************************
******
The opinions expressed in this E-mail are those of the individual and
not necessarily the company. This E-mail and any files transmitted
with it are confidential and solely for the use of the intended recipients
****************************************************************************
******
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists