06-11-2003, 03:19 PM
Please could you have a look at my script and help me out - basically I've re-directed my form to a popup window displaying confirmation that all the fields are correctly filled out - this works absolutely brilliant in IE but the table is not showing up in Netscape - I ran an error check and Netscape came up with the following error: Line 129 - Form1 not Defined.
I would really appreciate any help or ideas on this - try my script out in IE and see how great it is!!!
06-11-2003, 04:49 PM
The reference to 'Form1' is in the popup window, but the definition is in the main window. You need something like 'parent.document.Form1...' in the popup.
06-11-2003, 05:19 PM
Thanks ever so much for your help - really do appreciate it - it is now working perfectly in both IE and Netscape!!!
I can't believe how fussy Netscape can be!!
06-11-2003, 05:22 PM
Netscape is forcing you to do it right; IE is allowing you to be sloppy. I design in NS and then check it in other browsers and seldom need any changes.
06-11-2003, 05:50 PM
You are 100% right - thanks for the advice - I'll do this from now on!
There's another thing I was hoping you might know what I'm doing wrong - I'm trying to capture the date field from the parent window, the fields are:
I've tried the following script but it's not working:
test.document.write('<tr><th align=left> Date:</th><td> ' + parent.document.Form1.FirstSelectDay.selected + '-' + parent.document.Form1.FirstSelectMonth.value + '-' + parent.document.Form1.FirstSelectYear.value + '</td></tr>')
Both "value" and "selected" or "now" don't work - how would I pull the selected date from the parent window?
06-11-2003, 06:07 PM
First pick up the information something like the following lines, and then build your output line:
Actually, I'd probably start with an abbreviation and then do the pickup:
06-15-2003, 08:11 AM
My java scripts work in IE but not Netscape. I can however view the scripts in Netscape on their authors' pages, so the problem is not with my Netscape setup, but within my coding.
Could anyone with the time please look at http://www.the-limes.com in IE and then in Netscape and thern look at the source and see if they can suggest what I have done wrong?
06-15-2003, 08:22 AM
I have just noticed that some Java scripts ARE working in Neyscape on my website. The ones that are not working are the ones which should produce stuff in the left hand margin of the page, the rest of the page being to the right of the 18% margin. I don't know if this will help someone sort me out?!
06-16-2003, 02:32 PM
simongdawson, Netscape gives the following error messages:
http://www.the-limes.com/java/menu_array.js, line 21:
missing ; before statement.
http://www.the-limes.com/java/menu_array_2.js, line 79:
dumpmenus is not defined.
The second error message is caused by the first. I think that the problem in the first is that Netscape does not recognize the '_d=document;' as valid.