Mark,

Take a look at qForms:
http://www.pengoworks.com/qForms/

You're going to run into some problems using your current method if your
form contains any non-text fields. qForms provides a common API for setting
and retrieving form fields. Plus, it's cross-browser compatible, so it'll
take the guesswork out of things.

-Dan

-----Original Message-----
From: Picker, Mark P [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 5:02 PM
To: CF-Talk
Subject: Slight OT : Javascript works in IE, but ignored in Netscape

Hi All,

I am having a problem with a javascript function in ColdFusion.  Works fine
under IE, but not Netscape.

You enter a record ID in a form field and click the lookup button, which
loads a page which amongst other things, contains the below code.  Once the
query finds the correct details the code inserts the found records onto the
parent form.  FIne in IE, Netscape just ignores it.

As follows :

<body onFocus="updateinfo()">

<script language="JavaScript">
function updateinfo()
        {
        window.focus;
        var name = "Mr" + " " + "Mark" + " " + "Picker";

          window.opener.StudentResults.Name1.value = name;
          window.opener.StudentResults.AddressOne1.value = "'TestSite'";

                ...... etc ..........

          window.close()
        }
</script>

Details are filled in with ColdFusion scripts.

It appears that netscape isn't even looking at the function.

Hope you can help.

Cheers
Mark

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to