EDITED CAUSE IT GOT CUT OFF
I'm trying to figure out how to submit a form to a pop-up window.
I've got the pop-up window working like this:
<script language="JavaScript">
function openWindow(){
window.open('file.php', 'new_window', 'width=400, height=400');
} <form action="some.html" method="post" enctype="multipart/form-data" onSubmit="openWindow();" >
Does anybody know how to do this?
submit to pop up
Moderator: General Moderators
submit to pop up
Last edited by neophyte on Mon Sep 27, 2004 3:17 pm, edited 1 time in total.
i don't know what you mean with posting to popup window. (as data is posted to the server and not to windows at the client-side).
<form action="file.php" method="post">
If you want to display posted data in file.php, you might want to make sure you reload the file.php regulary (using js or http header)
<form action="file.php" method="post">
If you want to display posted data in file.php, you might want to make sure you reload the file.php regulary (using js or http header)
this worked
Hey this worked:
with this
post goes to pop up
Code: Select all
<script language="JavaScript">
function openTarget (form, features, windowName) {
if (!windowName)
windowName = 'formTarget' + (new Date().getTime());
form.target = windowName;
open ('', windowName, features);
}
</script>Code: Select all
<form name="main" action="shizzle.php" method="post" enctype="multipart/form-data" onSubmit="openTarget(this, 'width=300,height=300,resizable=1,scrollbars=1'); return true;" target="newpopup" >