Click to See Complete Forum and Search --> : "form name =" and IE


rjusa
11-03-2003, 08:00 PM
I have a form with a parent child relationship and a required fields tester. In Netscape everything is OK. IN IE,, neither the checker or the "Continue" will work. I noticed that if i take out the <form name=parentForm> line, it runs OK under both but obviously I've destroyed my p/c relationship. Any ideas?

Fang
11-04-2003, 03:45 AM
code or a link would be helpfull

rjusa
11-04-2003, 07:11 AM
This is bizarre...it's almost like I can have the forms validation and "Continue" work in IE if I take out the form naming convention OR I can have the p/c relationship keeping iy in but then go nowhere! Too bad I can't force applicants to just use Netscape...


code to open child: (works in ALL cases)

<script LANGUAGE="JavaScript"><!--
function openChild(file,window) { childWindow=open(file,window,'width=500,height=300,left=385,screenX=385,top=5,screenY=5,scrollbars=n o,menubar=no');
if (childWindow.opener == null) childWindow.opener = self;
}
//--></SCRIPT>

code to select proper page based on radio selection (works in Netscape, doesn't in IE if I have the line <form name="parentForm">
)
<script LANGUAGE="JavaScript"><!--
function SetNextPage(nextpage) {
document.parentForm.next_page.value=nextpage;
}
//--></SCRIPT>

radio selection code

<input type="radio" name="IFAC" value="Yes" $IFAC_Yes_checked$ onClick="SetNextPage('Canadian_supp10')"> Yes
<input type="radio" name="IFAC" value="No" $IFAC_No_checked$ onClick="SetNextPage('MedAdv_LifeStyle')">

the *'d codes below are required by the Forms Manager software I'm using

</head>
<body>
<form name="parentForm">
<form action="$cgiurl$" method=post> (*)

<input type=hidden name="required" value="CndnInsGender:Please Choose Insured Gender, etc...">(*)

<input type=hidden name="next_page" value="">(*)

$form_values$ (*)

<tr>
<td colspan=2> <font size=2 face="arial" color=red>
<!-- template insert : $error$ -->
</font></td>
</tr> (*)

and finally the button

<input type="submit" name="next" value="Continue >>" >

Fang
11-04-2003, 10:28 AM
All the code fragments work as expected,
but which form is being submitted and where is the child window being opened?

rjusa
11-04-2003, 10:49 AM
I'm not quite sure how to answer your questions being a novice. But, since the last post let me tell you what I discovered which may help. When I start this process it starts from a Forms Manager program beginning with a Due Dilligence form that then takes you to the "beast" causing the problem

http://hamptoninsurance.com/forms/forms.cgi?form=5

My discovery is that if I skip the DD form and start the process with the "beast"

http://hamptoninsurance.com/forms/forms.cgi?form=16

everything works both in Netscape and IE. I'm now toatally confused! Hope this is of help.

Ron

Fang
11-04-2003, 11:10 AM
Having half of the page in the <head> and the other half in the <body> could be causing some problems.
You need to validate (http://validator.w3.org/) your pages.

rjusa
11-04-2003, 12:50 PM
Greatly appreciate the suggestion...however, validation didn't do it and intuitively didn't think it would. If the tags were the problem then starting from the "problem" page wouldn't work...but it does! Hate to throw in the towel but maybe I should redesign the form and forget the p/c relationship...too bad, was pretty spiffy...Bill Gates is not on my most favorite list! Just stymies me in that the logic seems correct, works under Netscape but IE is "uncooperative" to say the least. Somehow, in the transition from the original form to the next page, IE doesn't like the fact that I've named the form...wierd...