Sending Form Output To A Frame In Another Window?
Dec 16, 2002
I am currently constructing a web-based database and would like to have it so that the main query output appears in a frame in the main window. Some of the queries require the user to make successive choices, each based on the one before, before the final query is built and executed. I would like the user input to occur in a pop-up child window belonging to the frame in the main window.
For example, a table of data is printed out into the main output frame. This table has links to then cross reference the data within it. Ok, so the user will click one of these links which will then pull up a pop-up window giving a little information about the link, and various choices to allow the user to cross-reference this back into the main database.
The point is, I need this query output to go BACK INTO THE PARENT FRAME, as opposed to into the pop-up (child) window I got as far as using <FORM ACTION="opener.location.replace('query.php') NAME="thisform" METHOD="GET">. This runs the query in the parent frame, but does not appear to pass the form data to the server .
View 5 Replies
ADVERTISEMENT
Oct 2, 2004
On the main window, you click a link and it pops up another window, where you can do some stuff, and ultimatly you get a variable that has some value to it. Now, when the user clicks "All Done", I want that variable value to be become the value of a hidden input "attachments" back in the main window.
Code:
<script language="javascript">
function sendUploads() {
var newValue = ƈ'
parent.document.addform.attachments.value = newValue;
}
</script>
The main window's form is called "addform" and the hidden input is called "attachments".
View 1 Replies
View Related
Aug 13, 2011
Having a few problems with a form validation script. Its supposed to stop sending the form if key fields are missing, but it just sends them anyway!
Below is the code i use in the header to check for blank fields:
Code:
And now the code i use to action it:
Code:
From what i can see the fields match, it all links up correctly but still it will allow blank forms to be sent.
View 3 Replies
View Related
Jul 23, 2009
I am currently trying to validate a form before sending it with the jQuery Form Plugin.I can get them working but it is always one or the other, I can't get them both working.
[Code]...
View 2 Replies
View Related
Mar 24, 2009
This is related to the pop-up window. Below is the function related to pop-up window.
function openPopUpDetailsMultiple(seqNum ,controllername ) {
if (!popUpDetails||popUpDetails.closed) {
popUpDetails=window.open("GetSCEventAddData?schandle=<!.schandle>&objID=<!.objID>&seqnum="+seqNum+"&controllername="+controllername+,"popUpDetails","toolbar=1,location=0,scrollbars=1,width=600,height=300,resizable=1,left=200,top=200");
}else{
popUpDetails.focus();
popUpDetails.location="GetSCEventAddData?schandle=<!.schandle>&objID=<!.objID>&seqnum=" + seqNum;
} }
The above function is being called in the href link as stated below:
//Draw the event table
document.write("<table border=1 bgcolor=" + contrColor + " cellpadding=3 cellspacing=0 width=750><tr><td width=130 valign=top class=body align=center rowspan=2>" + scEv[i].sceTime + "<br>" + scEv[i].sceDate + "<br>" + scEv[i].sceCntr + "</td><td width=60 valign=top class=body align=center><img src=images/NsaAlarm"+sevIcon+".gif border=0 height=16 width=16 align=middle alt='" + sevText + "'></td><td width=230 valign=top class=body align=center>" + scEv[i].sceCode + "</td><td width=230 valign=top class=body align=center>#" + scEv[i].sceSeq + "</td></tr><tr><td width=620 valign=top class=body colspan=3>" + scEv[i].sceDesc + "<br><table border=0 cellpadding=0 cellspacing=0 width=100%><tr><td class=body><a href=javascript:openPopUpCAC('" + scEv[i].sceCAC + "')><img src=images/NsaTools.gif border=0 height=16 width=16 align=middle alt='View corrective actions'>Corrective action code: " + scEv[i].sceCAC + "</a></td><td align=right class=body><a href=javascript:openPopUpDetailsMultiple('"+ scEv[i].sceSeq+"''"+ scEv[i].sceCntr +"')><img src=images/NsaMoreDetails.gif border=0 height=16 width=16 align=middle alt='View more details'>More details</a></td></tr></table></td></tr></table>");
The problem I'm facing now is in this piece of code:
><a href=javascript:openPopUpDetailsMultiple('"+ scEv[i].sceSeq+"''"+ scEv[i].sceCntr +"')><img src=images/NsaMoreDetails.gif border=0 height=16 width=16 align=middle alt='View more details'>More details</a></td></tr></table></td></tr></table>");
I do not know how to send these (scEv[i].sceSeq,scEv[i].sceCntr) arguments. What might be the delimiter for these arguments.
View 1 Replies
View Related
Mar 16, 2010
I need to send possibly many values from a popup child window to a parent window. Say:
List of Fruit:
Apple [Add]
Banana [Add]
Each click of add adds the fruit into a input text box, on the parent page. [URL]I could make a form for every fruit and send it back this way. It is troublesome, but can be done.
View 1 Replies
View Related
May 22, 2011
i am trying to make a form that out puts the inputs to a table and makes the form disappear in the process. I am encountering too problems though
a) at the submitt bit it says object expected for "document.getElementById('tablename').value=
document.getElementById('name').value"
why what did i forget to do??
b) am i missing a section of code needed to not only output the data to table but make form disappear?this is the full code
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">[code]......
View 1 Replies
View Related
Jul 23, 2005
I have a form that calls a perl script. A few javascript routines in
the form do a few things prior to submitting. For some reason,
however, the perl script is being called twice (the perl script sends
out an email, and submitting the form once results in two identical
emails.)
Here are excerpts from the script that I believe to be relevant (I can
post more if this isn't enough, but it's long and I'm trying to keep
it brief.) Can anyone tell me what I'm doing wrong? I've read about
how you need to return true after calling the javascript via a button
click, but I've done this kind of thing in other places and it's
worked fine. I've also tried inserting a return statement here in the
function and it doesn't seem to make a difference. Strange. (BTW, I
changed the domain name in the URL out of courtesy to my client, just
FYI.) Code:
View 2 Replies
View Related
Jan 7, 2010
you have a document with 2 frames with 2 buttons in one of the frames. If one button opens a window, how can you make the other button close it?
View 2 Replies
View Related
Mar 8, 2006
I have forgotten how to do this.
Got a <form ... >
with
<input type="button" name="Hit Me" onclick="whatever()">
</form>
The output of the Javascript function 'whatever' appears on a separate
page. I need it to go below the form on the same page.
View 7 Replies
View Related
Oct 23, 2000
I want to get IE5 to send the contents of an HTML form by e-mail using Outlook. I know that the basic idea is to make the recipients' e-mail address the Action. I can make a blank message open addressed as required but I can't get the user's input to appear in the message body.
View 9 Replies
View Related
Oct 3, 2003
Am creating a framed chat application and when the user types a message in the form field and clicks the submit button, the message gets sent to the display frame, but the message stays in the form field. How can i get the form to submit the message AND reset the form field to blank too?
View 1 Replies
View Related
Jul 20, 2005
I have a page with 4 frames in it. If I click on a button in the 4th frame, a new window has to be opened and the value of the listbox in the 3rd frame hoas to be passed ....
My code works fine in IE, but doesn't in Netscape .....
First, the value of the listbox .... I try to get it with
parent.frame3.form.listbox.value ... But an alert of this (as a test)
does nothing .... I tried several combinations like parent.frames[2]
and parent.frames[frame3] but nothing happens ...
Another problem is that the frame4 is blanked ... strangely enough ...
I'm just doing window.open('blablabla');
View 2 Replies
View Related
Apr 7, 2010
How do I get the parent window title and url in the iframe? JS code being in the iframe, not parent window.
View 1 Replies
View Related
Apr 7, 2011
I have a form with results and ID's for each field, I can get an alert to popup with the results, is there anyway to display this on the webpage?
This is what I have so far:
document.getElementById('result').write(account.value +" "+ rep.value +" "+ error1.value +" "+ fix.value);
along with this in the HTML:
<p id='result'></p>
View 2 Replies
View Related
Mar 29, 2010
I'm having trouble validating a form with javascript before sending it to a php script. Even when the form fails validation it still sends to the php. I believe it's to do with my validation script. You can see the script live here: [URL]
HTML Form:
Code HTML4Strict:
<form action="includes/verify_login.php" onsubmit="return validate_login(this);" method="post" name="login_form">
<label for="user">Username</label><input type="text" class="custom_field" name="user" id="user">
<label for="pass">Password</label><input type="password" class="custom_field" name="pass" id="pass">
<input type="checkbox" id="remember" name="remember"><label id="label_remember" for="remember">Remember Me</label><br>
<button id="custom_button">Login</button>
</form>
Javascript:
Code JavaScript:
function validate_required(field){
with(field){
if (value==null||value==""){
document.getElementById("empty").style.display="block";
return false;
}else{
return true;
}}}
function validate_login(thisform){
with (thisform){
if (validate_required(user)==false){
name.focus();
return false;
}else if (validate_required(pass)==false){
comment.focus();
return false;
}else{
return true;
}}}
View 1 Replies
View Related
Jul 2, 2010
I have a registration form which is processed by using javascript and php. First I show registration.php and data from it is sended with ajax to registration_process.php
<form id="registration">
Name<input type="name" id="name" />
Password<input type="password" id="password" />
</form>
[Code]....
The problem is that is probably not secure way. Is any way to encrypt value of input? For example something like this var name=$('#name').encrypt().val();
View 3 Replies
View Related
Aug 11, 2005
I have this function:
var CntEmails=0;
function CreateEmails(id,name){
//passo1: criar elementos
br1 = document.createElement('BR');
emailText=document.createTextNode('email:');
email = document.createElement('INPUT');
// passo 2: anexar elementos
gEBId(id).appendChild(emailText);
gEBId(id).appendChild(email);
gEBId(id).appendChild(br1);
// passo 3: definir tipo de campos
email.type='TEXT'
// passo 4: definir value
email.value=CntEmails;
// passo 5: definir name
email.name=name+CntEmails;
// passo 6: incremental contador
CntEmails++;
}
gEBId() -> means getElementByID();
Using the function:
HTML Code:
<input type="button" onclick="javascript:CreateEmails('emails','email');" value="+">
<div id="emails">
</div>
This function works fine (thanks to sitepoint users).
But I cant send the variables by a post method. If I try in php: print_r($_POST) or var_dump($POST) I just get the static fields.
View 5 Replies
View Related
Nov 13, 2001
We have a form on our website, which ends up being sent to an e-mail address. The only problem is that some people access this form using public computers. When they press submit , the Internet Mail Wizard pops up and tries to make them setup a new account. Obviously because they are using a public computer we can't have them setting up e-mail accounts on that computer.
View 3 Replies
View Related
Feb 10, 2010
I have a form on my website that takes registrations for my classes. The form currently is sent to a php that checks for empty fields. If all is good, they are passed to a thank you page. If any empty, they go to a page that reminds them to fill in all required fields, where I've provided a history-back button. Problem is that 1) the captcha image isn't refreshed, and 2) with 14 fields, they have to find the missed field!
This is where I thought that This Script would work great. It adds a "sentence image" in red when a required field is missed. This would keep the person on the same page, and highlight the missed fields!
My Problem; I've tried to adapt the script to my already existing form, but when I click the submit button, I quickly see my tables "expand" from the inserted image (haven't sized the image to fit yet, so it enlarges the table), but then immediately proceeds to the php script!
Below is the code between the head tags but only for field-1 for now!
Code:
View 10 Replies
View Related
Jul 23, 2005
How do I force a window, pened alone, to be displayed in its frame set?
tried this:
if (parent.location.href == self.location.href) {
window.location.href = '../'
}
the problem is that the original page is replaced by the main.htm page (the
default page for the 'main' frame)., because the open event of the menu page
calls for the main.htm to be loaded. Is there a way that I could pass a page name as an argument to the index page at all? Something like
window.location.href='index.html?Loc=IT_Study___In formation.htm'
View 3 Replies
View Related
Jul 23, 2005
From a web page, I am opening a window from my javascript function
"openMyWindow()". After finishing work in that window i want to execute
another javascript function on the web page "finishMyWindow()". My question
is how can I call this function from my window? I tried using
parent.finishMyWindow() but it did not work.
View 2 Replies
View Related
Dec 12, 2006
I'm trying to create an HTML page that contains two frames.
The bottom frame should simply be some website, but the top frame needs
to have a close link to kill the window. I tried calling
'document.window.close()' from the child frame, but without success. I
then tried putting the 'close()' call in the parent page and calling it
from the child, but still without success. Code:
View 1 Replies
View Related
Jul 20, 2005
I have a page of 2 frame:
menu (menu.php)
corpo (corpo.php)
In menu.php i have:
View 4 Replies
View Related
Oct 6, 2009
How do I set the contents(src) of a frame in a frameset when opened in new window?(frameset has a frame called APtop)I have following code
newWind = window.open("http://server/db.nsf/ActionPlan?OpenFrameSet","_blank");
newWind.frames['APtop'].location.replace("http://server/db.nsf/Administration?OpenPage");
It does not work... I even tried
newWind.document.getElementById('APtop').src = "http://server/db.nsf/admin?OpenPage";
How do i do this?
View 4 Replies
View Related
Mar 1, 2009
I have a page with 3 iframes it has a link to open up a page and when the user clicks on a link on that page - I want the new page to close and the link to open in the second iframe on the original page
View 4 Replies
View Related