Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

How To Make Form Nested In Internet Explorer ?


4 replies to this topic

#1 zeroxw

    Newbie

  • Kontributors
  • Pip
  • 1 posts

Posted 22 May 2008 - 01:08 PM

I want to make a form nested in another form, it's run on Opera and FireFox but it's occur error in IE

<form name="f1">
<input type="text">
<form name="f2"><input type="text">
<input type="button" onclick="document.f2.submit();">
</form
</form


How can I make form f2 submit by using javscript ???
(I want to solve this problem because my website using Ajax upload

#2 jlhaslip

    Insert Custom Title Here

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,040 posts
  • Gender:Not Telling
  • Location:Linux, DOS and Windows…the good, the bad and the ugly
  • myCENT:81.07
  • Spam Patrol

Posted 22 May 2008 - 03:23 PM

I don't see the purpose for the nested forms.
Where is the submit button for the first form? Does it submit with the button in form2? Your forms are missing the action=, too.
What does this form do? How do the forms relate to each other?
What error are you receiving in IE? Do you have the DOM Console for Opera or FF to check if there are actually issues which are not displaying?

Trying to assist you here, but your information should include more detail, particularly the error you get from IE. Which IE, by the way?

Check this link: http://www.w3schools.../html_forms.asp

and this one, too: http://bytes.com/for...hread95602.html

#3 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 30 May 2008 - 12:47 AM

Replying to jlhaslip

Wow, that was helpful...

-reply by Shades

#4 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 08 September 2009 - 10:00 AM

Using javaScript for -> onclick="document.f2.submit();"How To Make Form Nested In Internet Explorer ?Replying to zeroxwOnclick="document.F2.Submit();"Write the above line as onclick="javascript:document.F2.Submit();"-reply by sachin

#5 Ashkan

    Newbie

  • Kontributors
  • Pip
  • 1 posts

Posted 12 June 2010 - 07:53 PM

maybe it is too late :-)
But you can use document.all.f2 instead of document.f2.
[quote name='zeroxw' date='22 May 2008 - 04:38 PM' timestamp='1211461725' post='390979']
I want to make a form nested in another form, it's run on Opera and FireFox but it's occur error in IE

<form name="f1">
<input type="text">
<form name="f2"><input type="text">
<input type="button" onclick="document.f2.submit();">
</form
</form


How can I make form f2 submit by using javscript ???
(I want to solve this problem because my website using Ajax upload
[/quote]




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users