DMC
unread,Jan 21, 2011, 8:36:32 AM1/21/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fancybox
I'm able to pass input field data to the email.php page via query
string (i.e. email.php?to=), however, I can't figure out how to pass
the input form data via post to the iframe page. Can someone please
help.
Here is the query string approach that works ....
$('#form').submit( function() {
var sData = $('input', oTable.fnGetFilteredNodes()).serialize();
$.fancybox({
'padding' : 10,
'autoScale' : false,
'transitionIn' : 'fade',
'transitionOut' : 'fade',
'title' : this.title,
'width' : 680,
'height' : 495,
'href' : 'email.php?to='+ escape(sData),
'type' : 'iframe'
});
return false;
} );
here is my form ...
<form id=\"form\" action=\"email.php\" method=\"post\">";
<INPUT type=\"text\" id=\"userList\" name=\"userList\" size=\"100\"
value=\"test\" >";
<input type=\"submit\" value=\"Send Email\">";