473,395 Members | 1,815 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,395 software developers and data experts.

Is there any way to pass along values between sides, or how else can I do this ?

H
Ok, this is the scene ...

I have an indexfile, in which I specify 2 frames. ( yeah! I know they're
evil, but this comes from an assigment in school, whick I am adding some
stuff to, so I can actually use it on my site..)

In one of the frames I initialize a variable (lets call it V), and the I use
it, and so far everythings fine. Then at one point I am changing frame nr2,
to display some things from the forms etc in frame1. I do this by
setting..location="page2.html", and that works fine too. Now the tricky
part, when the forms are filled out again I want to change back to page1 and
depending on the var V different things may be showed.
But HOW can I get frame2, (and it's page1) to know what V is ?

As it is now all I do is link to the JSfile, and I hoped that the globals
there would have the value they got from frame1, but apparently thats not
the case.

So I'm wondering if there is anyway to pass V along to page1 ?

If I run my initiliazing function from the index file, with the frameset,
would frame 1 and 2 know what index put in the variables then ? And if this
is the case, how can I run init() from index, could an body tag be added,
and onclick be used ?

I could also maybe do it by letting my functions draw frame2 pages, but then
the question is ; Is there any way to "clear" the page before I start my
drawings ?

3rd way. If I keep page 1 in frame2 all the time, is there anyway to make it
run an function from frame2 ?
Like in frame1 ; parent.frame.frame2.MyFunction ... something like that ...

I hope you get all my ramblings... I have tried getting this to work for
awhile now, and I'm beat... SO please come up with an nice and
understandable answer.

TIA
H
Jul 20 '05 #1
2 1551
In article <EB********************@newsb.telia.net>,
no*********************@hotmail.com enlightened us with...
In one of the frames I initialize a variable (lets call it V), and the I use
it, and so far everythings fine. Then at one point I am changing frame nr2,
to display some things from the forms etc in frame1. I do this by
setting..location="page2.html", and that works fine too. Now the tricky
part, when the forms are filled out again I want to change back to page1 and
depending on the var V different things may be showed.
But HOW can I get frame2, (and it's page1) to know what V is ?

Pass it as a param, then parse the URL.

....location="page1.html?V="+v;

Have page1 parse the url for the value of V. There's a ton of stuff in
the archives on how to do that.

--
--
~kaeli~
Press any key to continue or any other key to quit
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #2
H

"kaeli" <ti******@NOSPAM.comcast.net> skrev i meddelandet
news:MP************************@nntp.lucent.com...
In article <EB********************@newsb.telia.net>,
no*********************@hotmail.com enlightened us with...
In one of the frames I initialize a variable (lets call it V), and the I use it, and so far everythings fine. Then at one point I am changing frame nr2, to display some things from the forms etc in frame1. I do this by
setting..location="page2.html", and that works fine too. Now the tricky
part, when the forms are filled out again I want to change back to page1 and depending on the var V different things may be showed.
But HOW can I get frame2, (and it's page1) to know what V is ?

Pass it as a param, then parse the URL.

...location="page1.html?V="+v;

Have page1 parse the url for the value of V. There's a ton of stuff in
the archives on how to do that.

Ok, thanks !
Jul 20 '05 #3

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

Similar topics

8
by: Brian F | last post by:
Exactly what the subject says. I have an ASP page that I want my C# windows application to open in Internet Explorer, and if possible have it send along a list of values from a list box. Thank you.
5
by: adolf garlic | last post by:
Suggestions please for strategy to share values across app. Scenario: I have an asp.net app that uses some com components along with .net classes. Configuration settings for various things...
2
by: macyp | last post by:
I have to pass values from one aspx page to another. The controls I have in the first page are: a textbox, 3 drop down lists, and 2 check boxes, and a submit button. It is a search page, and the...
8
by: Aaron Ackerman | last post by:
If I am expanding (maximizing a form how do I maximize the tab control along with it?
6
by: placek | last post by:
Hi all. I would like to create two web services: - The first one - ImportData - should take as an input parameter a XML document and return an integer saying if passed XML document was valid...
4
by: _Mario.lat | last post by:
Hallo, I have a little question: In the function session_set_save_handler I can pass the name of function which deal with session. In Xoops code I see the use of this function like that: ...
19
Atli
by: Atli | last post by:
Introduction At some point, all web developers will need to collect data from their users. In a dynamic web page, everything revolves around the users input, so knowing how to ask for and collect...
1
by: FredZimmerman | last post by:
Is there a way to pass SecureString value (from C# web application) to a SQL 2005 stored procedure as Input parameter? How is it handled from both sides (application, and stored procedure)? ...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.