[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-dev
Subject:    Re: to submit one jsp from other jsp
From:       "David Graham" <dgraham1980 () hotmail ! com>
Date:       2003-04-29 15:05:23
[Download RAW message or body]

Do not cross post questions.  This is a struts-user question.

David



>From: "Subhit" <subhitc@quinnox.com>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: <struts-dev@jakarta.apache.org>
>CC: <struts-user@jakarta.apache.org>
>Subject: to submit one jsp from other jsp
>Date: Tue, 29 Apr 2003 19:21:36 +0530
>
>
>
>
>I am having a jsp page called xyz.jsp. Inside that jsp page i am having one
><html:form>
>
><html:form action="/checkConnection">
>   .
>   .
>   .
><html:form>
>
>I am calling this jsp from other jsp abc.jsp using iFrame tag
>	<iframe ID='iFrameID' align='left' class='iFrameClass' frameborder=0
>marginheight=0 marginwidth=0 name='iFrameName' 		src='/jsp/abc.jsp'
>style='height:100%; width:100%'></iframe>
>
>I am having a submit button in my abc.jsp.
>	<input type="submit" name="upload" value="upload" class="button"
>onClick="return submitForm()">
>By clicking this button i want to submit the form which is there in 
>xyz.jsp.
>I am using javascript to submit the form .
>My JavaScript Code is
>function submitForm()
>{
>	window.document.frames["iFrameID"].document.checkConnectionForm.submit();
>}
>
>But when i am trying to submit the form by clicking the button its giving 
>me
>javascript error
>checkConnectionForm is null or not an object...
>
>Can any body help ?
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic