how use iframes in a form

Reply

Join Date: Sep 2006
Posts: 68
Reputation: rpjanaka is an unknown quantity at this point 
Solved Threads: 0
rpjanaka rpjanaka is offline Offline
Junior Poster in Training

how use iframes in a form

 
0
  #1
Feb 15th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,247
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 492
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: how use iframes in a form

 
0
  #2
Feb 15th, 2007
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
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 68
Reputation: rpjanaka is an unknown quantity at this point 
Solved Threads: 0
rpjanaka rpjanaka is offline Offline
Junior Poster in Training

Re: how use iframes in a form

 
0
  #3
Feb 16th, 2007
if so please tell me a way to get the vlues of input fields that include in the iframe page
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,247
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 492
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: how use iframes in a form

 
0
  #4
Feb 16th, 2007
don't use iframe, that whar I can say
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: how use iframes in a form

 
0
  #5
Feb 16th, 2007
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).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JSP Forum
Thread Tools Search this Thread



Tag cloud for JSP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC