My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 261: Can't submit a form in a iframe
2 people starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Jun 2009


 
Reported by jeremie....@gmail.com, Jun 5, 2009
What steps will reproduce the problem?
1. Open a nyroModal iframe with a form
2. Submit the form in the iframe
3. The form will reload all the page, not the iframe

What is the expected output? What do you see instead?
I don't want nyroModal replace my iframe with a div "nyroModalFull". I want
a real iframe to deal with.
Jun 5, 2009
Project Member #1 nyro...@gmail.com
Are you sure the modal is loaded in an iframe?
How do you set that?

Could you send a link or your code please?
Jun 5, 2009
#2 jeremie....@gmail.com
I can't send a link with my code, but here explanations :

In external js file :
$("#addFileLink").nyroModal();

In my html page, the link :
<a href="myPage.php" id="addFileLink">My link</a>

In myPage.php, there is a form, such as :
<html>
<head></head>
<body></body>
<form action="myPage.php" method="post">
<input type="file" name="myFile" />
<input type="submit" />
</form>
</html>


When I validate the form, the full page is reloaded, but I just want the iframe to be
reloaded, to get the result of myFile field in the iframe.

A solution ? Is there a way to force the iframe ?
Jun 5, 2009
Project Member #3 nyro...@gmail.com
that's what I thought, there is no iframe for now!
The page is just shown by an Ajax request.
To open the modal in iframe, add target="_blank" on your anchor tag.
Jun 5, 2009
#4 jeremie....@gmail.com
Ok,
I add the attribute target="_blank" on my link and all works perfectly...
That's an easy way.
Thank's for your quick response ;-)

***Bug closed***
Jun 5, 2009
Project Member #5 nyro...@gmail.com
(No comment was entered for this change.)
Status: Invalid

Powered by Google Project Hosting