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

passing information between frames

I am very very new to jscript. What I want to do is set a variable in one
frame of a page, and then reload another frame so that it uses the new
variable. Is this possible? I want to have a thumbnail menu in the first
frame, where clicking on the thumbnail sets a variable equal to the larger
image's filename. The script would then reload the page in the larger
frame, which uses the new variable value to load the larger version of the
image. I have probably now completely shown my ignorace of js, as I think I
used the wrong terminology, but I hope what I want to do was explained
adequately.

TIA

Josh
Jul 23 '05 #1
1 1508
In article <6r***************@newsread2.news.atl.earthlink.ne t>,
mi**@misc.com enlightened us with...
I am very very new to jscript. What I want to do is set a variable in one
frame of a page, and then reload another frame so that it uses the new
variable. Is this possible?
In most browers, yes.
But frames can suck if not done right.

I hope you have a dynamic frameset and a little blurb on the framed pages
that say "this frame should be in my frameset" with a link to reload the
frameset properly. If a user comes in through a search engine and gets only
one page, it's a real hassle if you don't have that stuff.
Among other problems with bookmarking and the like...
I want to have a thumbnail menu in the first
frame, where clicking on the thumbnail sets a variable equal to the larger
image's filename. The script would then reload the page in the larger
frame, which uses the new variable value to load the larger version of the
image. I have probably now completely shown my ignorace of js, as I think I
used the wrong terminology, but I hope what I want to do was explained
adequately.


You may not need to get this involved, really. As long as you're using
javascript, you can simply reassign a new value to the source of the image
tag instead of reloading the entire page. Assuming all you are changing is
the image. This is easier than trying to set variable names and stuff.

i.e. in the first frame:
<img src="myThumb.jpg" onClick="top.frames['largerFrameName'].document.images
['theBigImageName'].src='theNewLargerImage.jpg';">

(I didn't test that, but you get the idea)

--
--
~kaeli~
Press any key...NO, NO, NO, NOT THAT ONE!!!!!!
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

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

Similar topics

8
by: Hans | last post by:
Hi There, I have a page that has links with some variables and I need to open the results set in a frameset. I have tried doing this in various different ways, but still cannot get the variable...
1
by: divya | last post by:
This is the problem I am having: I have an index page where I obtain input from the user (for example their date of birth). This information is passed to Page2. Page2 has frames. Outside of the...
4
by: A Web Master | last post by:
I want to know the best way of passing on variable contents on a site coded in ASP using frameset/frame. Content is used in all frames for stuffs like screen_resolution, language, ... My...
11
by: Dthmtlgod | last post by:
I am having a little difficulty in passing a value from a page to another page. I am going to provide excerpts from the code. I think I am close. This is from Page1.ASP <% Set Conn =...
7
by: Scott | last post by:
I need help to modify the code below to pass url variables from a framset. The click to run this will be in the mainFrame. This script works well in a non-frame page. Grabs the current url...
1
by: cirillo_curiosone | last post by:
Hi, i'm new to javascript. I started studing it on the web few weeks ago, but still haven't been able to solve one big problem: HOT TO PASS VALUES FROM A SCRIPT VARIABLE TO A CHILD HTML...
8
by: chimambo | last post by:
Hi All, I am trying to pass variables between two frames in PHP. I want to get a variable from F1 to F2 and the variable that is now in F2 should pass back the variable to F1 and call another...
1
by: jrayjr | last post by:
Hello everyone, Im running into a problem passing values from ASP to Flash. I've been searching around and trying different things with no luck. The project im working on will use ASP to pull data...
25
by: Geoff Cox | last post by:
Hello, The following <frame src="topbar-frameset.php?newVar=<?php echo $groups; ?>"> passes the value of the variable $groups from a php file to the top page in a frameset but how do I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.