473,385 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

send variables to function in new window

hi

I have a javascript function, which gets parameters from a form and then
opens a new form in another window.
The new window also has a javascript function with parameters. My question
is, how can I send the variable values from one function to another in a new
window?

Thanks,
Marco
Jul 20 '05 #1
3 6502
Marco Alting wrote:
hi

I have a javascript function, which gets parameters from a form and then
opens a new form in another window.
The new window also has a javascript function with parameters. My question
is, how can I send the variable values from one function to another in a
new window?

Thanks,
Marco


simply by adressing the window first.
You have 2 windows, named window1 and window2.

so if you have a function win2func in window2 and want to call that from
window 1 use:
window2.win2func("hello!");

Of course you'll have to replace "hello!" by some value from one of your
formfields.
Jul 20 '05 #2
It's not exactly what I want, I want to pass the variable from window 1 to
window 2 and use it there in a function.
"Erwin Moller"
<si******************************************@spam yourself.com> schreef in
bericht news:3f***********************@news.xs4all.nl...
Marco Alting wrote:
hi

I have a javascript function, which gets parameters from a form and then
opens a new form in another window.
The new window also has a javascript function with parameters. My question is, how can I send the variable values from one function to another in a
new window?

Thanks,
Marco


simply by adressing the window first.
You have 2 windows, named window1 and window2.

so if you have a function win2func in window2 and want to call that from
window 1 use:
window2.win2func("hello!");

Of course you'll have to replace "hello!" by some value from one of your
formfields.

Jul 20 '05 #3
On Fri, 12 Sep 2003 09:41:30 +0000, Marco Alting wrote:
It's not exactly what I want, I want to pass the variable from window 1 to
window 2 and use it there in a function.

You could use window.opener.

ciao

gpaolini


"Erwin Moller"
<si******************************************@spam yourself.com> schreef in

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Mosher | last post by:
Hello all, is there any way to send php variables to another popup html window? I just want users to be able to click on a hyperlink like this... e.g., <a target=new...
4
by: Daniel | last post by:
Hullo =) Inspired by another guy's questions here I've created an isset function that works (almost) like the one in native PHP: function isset(variablename) {...
5
by: Richard A. DeVenezia | last post by:
Dear Experts: Suppose I have global variables: x1, x2, x3 and I have a function that needs to assign a value to a new global variable x4 something like function foo () { count = 0;
3
by: Chris | last post by:
Hi, I'm really begginer in javascript. I created a form in a pop-up opened with javascript. how to recover variables of the form in the main page. Thanks for your help Chris.
15
by: Steve Horrillo | last post by:
I can't figure out why this script won't insert the subject in the email and why can't I control the font and size being used? I'm not sure where to post this. Let me know where if this is OT. ...
2
by: Patient Guy | last post by:
I have a library of functions representing a filesystem interface (essentially a file selection interface, to be used in opening/reading/writing/closing files). Heavily scripted HTML document...
3
by: Lars Netzel | last post by:
Hello! I have a button, in the click event I have this code: ---------------------------------------------------------------------------- ---------------------------- Response.Write("<script...
0
by: Ralstoj | last post by:
Hi I am programing in Autocad with VB Autodesk have not given users access to new note function in Autocad CIVIL3d API. I am trying to work round this by creating notes using the sendkey...
1
by: phoenix917 | last post by:
I have been working on this code for 5 days... I have read multiple tutorials and looked at various code. This is my third forum try... :) My instructor refuses to help me. I think it's because...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.