Dynamic Form Submit/IFrame Display Problem

Hi Guys,
I have a dynamic form on my "VBSCRIPT" ASP page i have two problems..

- Problem 1 -
when the user selects their class from the list i want the form to post automactily...this works fine in Internet Explorer but in Netscape, Firefox and Opera it doesnt submit.... here is the code i am using for the form submit...

<script type="text/javascript">
function submitform()
       // submit the form

<form NAME="selectmyclass" action="classroster.asp" method="post">
      <select name="frmselectmyclass" onChange="submitform();">
        <option value="">Select Your Class
        <option value="1a">Class 1a</option>
        <option value="1b">Class 1b</option>
        <option value="1c">Class 1c </option>      

ive have my code live here ... http://www.eireweb.com/webforms/ basically i need the form to submit for all types of browsers...

- Problem 2 -
I have a fair few forms on the site and i dont want the user to see the names of these forms in the browser so i am I am using an IFRAME on my site to display the different forms.....in internet explorer it looks fine... but in Netscape, Firefox and Opera the frame looks really really squashed...

any ideas on how to fix this two proboblems please?
Jay Eire
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This fixes your submitter:

<script type="text/javascript">
function submitform()
       // submit the form

And this fixes your iframe size:
<title>:: Class Test ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="800" height="100%" border="1" align="center" cellpadding="0" cellspacing="0" bgcolor="#000066">
    <td height="30"><h1><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif">EIRE WEB</font></h1></td>

    <td bgcolor="#FFFFFF"><iframe src="http://www.eireweb.com/webforms/form1.asp" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe></td>

The syntax document.forms("formname") is not standard, it's an IE only feature. I think document.forms["forname"] would also work, but I tend to use document.forms.formname myself as I know it always works. Note it's case sensitive.

AS for your iframe, it's height was set to be 100% of the div, which didn't have a fixed height. You could add style="margin-left:auto;margin-right:auto;" to your iframe to centre it, but since it's width 100, that's pretty much a waste of time.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jay_eireAuthor Commented:
excellent works a treat! thanks mate.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.