Writing Values In Form Of Other Window

Jul 23, 2005

i can't figure this one out. from a main window i am opening another
window with a form in it. this form has an inputbox. from the main
window i want to write a value into this inputbox. so i need the handle
from the child window and write the value into this form.

i tried using:

var chWindow=window.open('form_with_input.htm');
var chForm=chWindow.document.forms[0];

chForm.name_of_element.value='test' //didn't work.
chForm.id_of_element.value='test' //didn't work.

both didn't work... can somebody help?
is it even possible what i am trying to do?

View 2 Replies


ADVERTISEMENT

Writing Form Data To Another Value In A Different Window

Oct 13, 2005

Having a little trouble of knowing where to start. I'm trying to take user inputted data options from a popup window form and put it in an existing form behind the current window.

View 2 Replies View Related

Writing Values Into The Same Page

Nov 20, 2003

Write i have an array, "company" firstly how can i write this to a table, cells? ive been told very quickly. if a table cell has an ID like

<td>ID=firstcompany</td>
using something like

document.all.firstcompany.innerhtml
will be able to display the result somehow into the required cell.
CAN any one advise on how to do this?

and one more little question? HOW has my friend some how? protected his source from being seen online?

View 14 Replies View Related

Writing Function Output Values?

Jan 20, 2009

I've got a glitch somewhere and it's not obvious to me. Maybe someone can spot it.My problem is that the functions seem to return values but don't display them like they should. I'm testing returned values with a function called sayvalue(item). But when I test "DelTimeCode" the function returns "[Object]". I don't understand. I get returned values from DelTime and DelTitle.My approach is to select a radio button option, return a delivery title and a delivery price from the appropriate functions then write the information. I think I'm close. Any suggestions or observations of an error in my code?I have the following VARIABLES and FUNCTIONS:

<head>
var AmtSV;
var DelTimeCode="";

[code]....

View 6 Replies View Related

How To Open An New Window And Fill A Form With Predefined Values?

Jul 23, 2005

I want to open a new browser-window with javascript and fill some
input-fields in this window with predefined values. So the User does
not have to edit the input-fields manually but only has to submit the
form.

....
var childWindow = window.open("http://anyForm.html");
childWindow.document.getElementsByName('anyinputfi eld')[0].value='hello'
....

Unfortunately this does not work... Mozilla throws an error:

"Error: uncaught exception: Permission denied to get property
Window.PropertyIterator"

Is there any workaround?

View 1 Replies View Related

(document.write)writing On The Same Window Using Events??

Jul 31, 2004

Cant figure out how to write on the same window on an event load. document.write opens a new window automatically. this is wat i want:

i've got 7 links of 7 days in a week. and when the user clicks one link, it should display the schedule beneath that link or in any table somewhere in the page. ive searched a lot on the web, and from what i've found, doesnt seem like that its possible!. maybe if we use the div tags and then pass divnames as arguments to the calling function.but tat i dont know how to hide the contents of div because that is also shown on the window..

everytime i click the link..it shows the contents in the new window!!

View 2 Replies View Related

Creating And Writing Variable To Form Input Field

Apr 10, 2011

I am working on a javascript for my blackberry. I am trying to capture the latitude and longitude of that phone. I am able to get the coordinates in an alert box but am having a little trouble writing it to a form input field.

<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "[URL]">
<html xmlns="[URL]" xml:lang="en" lang="en">
<head><title>GPS Testing</title>
</head><body>
<script type="text/javascript">
if(blackberry.location.GPSSupported){
document.write("Your device supports GPS locating");
blackberry.location.onLocationUpdate(window.alert("Latitude: " + blackberry.location.latitude + " Longitude: " + blackberry.location.longitude));
var lat = blackberry.location.latitude();
var lng = blackberry.location.longitude();
blackberry.location.refreshLocation();
document.write(lat);
}
</script></body></html>

I am only able to test with Blackberry. I was trying to create a couple of variables with the "var lat =" and var lng =".
With this script I get the alert window and when I click ok it writes "Your device supports ...".

View 5 Replies View Related

Error While Writing Scirpt Code In Action Attirbute Of Form Tag In Html

Jun 9, 2010

In the below code i tried to write java scirpt in action attribute of form tag in html . Why i wrote that was i want to get the scirpt variable as a part of the url of the target page. I also tried using the location.href="targetpage?value="+value . But It is not redirecting to targetpage because of the action attribute in the form tag. And if we use location.href without action attribute only that script variable was posted and all other remaining textboxes and other form items are being not posted .. Thats why I wrote the scirpt in action attribute. I want the action attribute to work and also the java script variable to be posted .so i wrote the script tag in action attribute of form tag .

[Code]...

View 2 Replies View Related

Comma Separated Values - Form That Gets Values That A User Has Selected From A List Menu Field

Jul 6, 2009

I have a form that gets values that a user has selected from a list menu field, that end up like this added to the URL:[url]

Instead of the Field being mentioned more than once, how can I have it where it could mention the field once with the values coma separated eg:[url]

Would I use JS to change the URL? or VBscript?

View 30 Replies View Related

Pass Values For A Popup Window To Parent Window

Jan 19, 2003

how I can populate the value of an input field on a parent window from a selected item (of a form - listmenu) on a pop-up window? Basically, I need to pass the value of one form to another form located on a different page...

View 1 Replies View Related

Seperate Concatenated Form Values - 4 Text Boxes That Are Supposed To Load 4 Seperate Values Of Data

Jan 27, 2010

I have 4 text boxes that are supposed to load 4 seperate values of data from one field in one table from a database. The field is called interface_cropsettings (from the interface table) and these values have been concatenated and comma seperated in this field.

Code:

Once the form is filled out and saved, the data is inserted into the database and the values from these 4 text boxes are concatenated, comma seperated and inserted into that one field correctly.

(Example)

If the 4 text boxes have the following values:

In the database field they become:

However, if the form is closed and then re-opened, each text box displays the entire database field rather then each value seperated in the corresponding text box.

(Example)

All 4 text boxes display this:

I already know why the data appears like this in the form, my problem is that I'm not sure how to write the javascript to seperate the values into the correct corresponding fields, assuming javascript is what I should be using!

Also, this is kind of irrelevant but just in case you're wondering, this form is part of a cold fusion application!

View 3 Replies View Related

Seperate Concatenated Form Values - Write To Seperate The Values Into The Correct Corresponding Fields

Jan 27, 2010

I have 4 text boxes that are supposed to load 4 seperate values of data from one field in one table from a database. The field is called interface_cropsettings (from the interface table) and these values have been concatenated and comma seperated in this field.

Code:

Once the form is filled out and saved, the data is inserted into the database and the values from these 4 text boxes are concatenated, comma seperated and inserted into that one field correctly.

(Example)

If the 4 text boxes have the following values:

In the database field they become:

However, if the form is closed and then re-opened, each text box displays the entire database field rather then each value seperated in the corresponding text box.

(Example)

All 4 text boxes display this:

I already know why the data appears like this in the form, my problem is that I'm not sure how to write the javascript to seperate the values into the correct corresponding fields, assuming javascript is what I should be using!

Also, this is kind of irrelevant but just in case you're wondering, this form is part of a cold fusion application!

View 2 Replies View Related

JQuery :: Change Form Values Before Submitting A Form?

Oct 4, 2011

I'm handling a form submission event. Is there a way to modifiy the value of a text input within the form before the form is finally submitted? I tried setting the value using, 'val()' - it updated the text field but the value sent with the POST was the original value

View 4 Replies View Related

Form Opening In The Main Window/ Simeltaneiously Closes Popup Window

Jan 8, 2004

I have a popup window which has the search form in. What I want to do is for the popup window to close once the form is submitted, and to post the form data to a page on the main window.

Is anyone able to advise. As the main page is dynamic, it is not possible to give the page a name.

View 4 Replies View Related

JQuery :: Create A Hidden Form Field In A Parent Window From Within A Child Window - Popup

Jun 13, 2011

Im trying to create a hidden form field in a parent window from within a child window (popup). I am trying to use jQuery, but unfortunately the hidden field does not get created.

Code JavaScript:

View 2 Replies View Related

Popup Window Contains Table Values?

Feb 5, 2010

<p>i WANT TO DISPLAY THE POPUP WINDOW AFTER CLICKING THE PARENT WINDOW "BUTTON".<p><p>THAT POPUP WINDOW DISPLAY THE DATA IN A TABLE FORM(FOR EG:NO,NAMEETC.,) .<p><p>Now i want to select any row in the table using radiobutton.After selecting the radio button particular row values will display in parent window text boxes.</p>

View 1 Replies View Related

Changing Values In The Parent Window

Aug 25, 2003

I have the following code in a popup window.

Code:

<td bgcolor="#000000" onClick="javascript:setRGB(0, 0, 0);" class="swatch"></td>
<td bgcolor="#000033" onClick="javascript:setRGB(0, 0, 51);" class="swatch"></td>
<td bgcolor="#000066" onClick="javascript:setRGB(0, 0, 102);" class="swatch"></td>
What I want to do is to define the setRGB function so that when I click on a color swatch (onClick) it updates 3 fields in a form in the window that opened the popup with the corresponding RGB values. So let's say that in the window that opened the popup i have a form 'formname' with three text fields named 'red', 'green' and 'blue'.

View 2 Replies View Related

JQuery :: Submitting Form To New Window But Have Spinner In New Window?

Nov 21, 2011

This should probably be pretty basic and I've been googling around as to the best approach to take and still a bit confused. I have a form that currently submits a form to a new window using jquery (shown below.) The form once submitted could go through a few redirects within the new window (it's calling some facebook stuff.)

All I'd like is when the initial new window pops up is for a spinner to appear in the popup window until the first response is returned. Is there a decent example on how to do best achieve this?

[Code]...

View 2 Replies View Related

Submit A Form In Popup Window To Opener Window

Oct 11, 2006

I have a form that is in a popup window. I need the form to submit to the opener window. Is is possible to do that? The opener window is the main window so it is does not have a name and there are no framesets.

<form action="something.php" method="post" target="????">
I'd like to use window.opener in the target but that's JavaScript...

I know somebody has done this before and has the code.

View 2 Replies View Related

Passing Values From Popup Window To The Many Page

Dec 30, 2007

Suppose that I have a main page with a link that opens a popup window which has a link with a parameter and I want to pass the parameter to a text input in the main page,
how to do that?

View 2 Replies View Related

Sending Many Values From Child To Parent Window?

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

Open In A New Window While Retain The Search Values

Jun 1, 2011

I have an asp page to search for data. I like to open it in a new window while retain the search values. And I also can resize the window as well as set its attributes like height, width,etc. I created a js function like this:

[Code]....

View 1 Replies View Related

Returning Multiple Values From A PopUp Window?

Jan 25, 2010

We use .mac's to create some of our Web content where we also use some javascripts. We have numerous prompts where we have a button for the user to click on that brings up a new prompt window where they type in a search name like, TIE, to search for all ties available to select from.

After typing the search name, the same window displays a list of selections to choose from. When they select the desired item and click the continue button, the window closes and we return the item number to the calling program.

What I would like to do is bring back more than one variable. For example, instead of just, 1234 in Fld1, I would like to return, 1234 into Fld1 and B into Fld2, where Fld2 will not be displayed but needed elsewhere.

For this made up example, these codes could stand for... 1234=Tie and B=Blue. We may use 1234 for all ties and have a second field to further define it.

The code I have always used in the past will just bring back the 1234, I am asking how to return the B also?

Here is some of the code I currently use:

This displays the button they click to bring up the pop-up search window...

<tr>
<th Align="Left" BgColor="LightSteelBlue">Item#</th>
<td colspan="3">
<input type="text" size="5" MaxLength="5" name="choiceItem" value="$(choiceItem)">
<input type=button onClick="window.open('/member/Item_Lookup_Both.mac

[Code]....

View 3 Replies View Related

Window.open & Accessing Parent Variables' Values

Jul 23, 2005

I have got a following problem with using javascript:

I have a HTML page with pictures' thumbnails. After clicking on any
thumbnail, I would like to open a new window with the original size
picture. In the main window with thumbnails, I have got following
important stuff: Code:

View 1 Replies View Related

Pass Values To Selection Menu In Modal Window

Jul 23, 2005

I'm trying to figure out how to tackle this problem: I have an XML
table with a cool grid in which users can select a table row. When
they right-click on a cell, they get a modal dialog window with a
selection menu. What I want this thing to do is display the different
values in the row, so that users can make a selection: eventually I
want it to be a filter option > in the selection menu, users can
select the value on which they want the whole table to be filtered.
However, I'm seriously lacking js-skills so I don't know how I should
pass the values from the table row to the selection menu. Code:

View 3 Replies View Related

Mulitple Input Values Passed From Popup Window

Mar 24, 2006

On the ONLOAD event I would like a popup box to open. In this popup
box I need two text boxes. One for the UserName and one for the
BillingTo name. After entering these two items the user can either hit
the enter key or press the submit button. The popup window will close
and then those two text boxes in the original webpage will be filled in
automatically.

I would like to have the two fields to be validated so the popup won't
close until both text boxes are filled in.

So far I have used the function from javascript.internet.com in the
header of the original page. I have tried to make so that when the
first popup closes the second popup will open. I can get the variables
to pass the main page but I feel it would be more effecient to have
both text boxes in the same popup instead of having two. Code:

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved