| Issue 261: | Can't submit a form in a iframe | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
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
Jun 5, 2009
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
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
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
(No comment was entered for this change.)
Status:
Invalid
|
||||||||