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 73: Posting Variables
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Sep 2008


 
Reported by goofbay%...@gtempaccount.com, Aug 29, 2008
I have a form

<form action="mypage.php" method="post" >
<input class="button" type="button" name="save" id="save" value="Save" />
...some input vars

<a href="#test" id="popup" class="nyroModal"></a>
<div id="test" style="display: none; width: 500px;">
  ..some input vars..
</div>

</form>

<script type="text/javascript">
$(function() 
{
  $('#save').click(function(e) 
  {
    $('#popup').nyroModalManual();
    $.nyroModalSettings({autoSizable: true, type:'form'});
  });
});
</script>

All of that works just fine....

The popup appears, I have a submit button on the modal window, but what I
was hoping is that when i submit the overall form it would submit the
variables on the modal window and on the form where the modal window was
loaded from.

Anyone know how to get this working ?

Thanks

Sep 1, 2008
Project Member #1 nyro...@gmail.com
nyroModal doesn't create the modal in the place of the element calling the modal,
which mean in your case, that the submit button and the input vars aren't anymore in
your form.

The easiest solution will be:
1) On the click of your submit button, you'll have to copy all your input vars in the
first form by creating hidden field
2) Once all your values are in the form, simply send the form and wait for the
response of your server.

Hope it'll help
Status: Fixed

Powered by Google Project Hosting