944,217 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 18461
  • JSP RSS
Feb 15th, 2007
0

how use iframes in a form

Expand Post »
I am trying to use an iframe in my application




mainpage.jsp
<HTML>
<BODY>
<form name="form2" method="post" action="action.jsp">

<input type="text" name="name" value=""/>

<input type="submit" name="submit" value="submit"/>

<iframe src="ifream-page.jsp" frameborder="0">

</form>
</BODY>
</HTML>




ifream-page.jsp

<HTML>
<BODY>
<input type="text" name="address" value=""/>
</BODY>
</HTML>




But when I press the submit button I can only get the “name” attribute at the action.jsp file. The value of the address field is shown as null.

So what is the reason for this.
And also I want to find the solution (get the both values at the action.jsp file) without removing the iframe.

Please help me to get the aprameter values include in iframe page…

thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
rpjanaka is offline Offline
69 posts
since Sep 2006
Feb 15th, 2007
0

Re: how use iframes in a form

That is reason why there are only certain types of components which can be part of the form. Iframe is not one of them...
Check it
http://www.w3schools.com/html/html_forms.asp
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 875
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004
Feb 16th, 2007
0

Re: how use iframes in a form

if so please tell me a way to get the vlues of input fields that include in the iframe page
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
rpjanaka is offline Offline
69 posts
since Sep 2006
Feb 16th, 2007
0

Re: how use iframes in a form

don't use iframe, that whar I can say
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 875
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004
Feb 16th, 2007
1

Re: how use iframes in a form

the page loaded into the iframe is a completely separate entity, and has nothing to do with the page in the main frame.

While they can communicate using cookies and Javascript, that's not recommended (just as the use of iframes is not recommended, and in fact in the latest html standard they've been removed).
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: upload csv to tomcat using jsp
Next Thread in JSP Forum Timeline: jsp sessions and scriptlet





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC