473,699 Members | 2,190 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Having a Problem Trying to call two html iles to be loaded into two different frames

In my frame based page, I have a hyperlink in the top frame called
"header" which, when I click, should make two different pages to be
loaded and displayed into two different frames, namely "thumbnails "
frame and "main" frame simultaneously.

My framed page is defined as follows:

<frameset rows="15%,*,15% ">
<frame src="headerWelc ome.html" name="header" />
frameset cols="20%,*,20% ">
<frameset rows="45%,55%">
<frame src="leftTopBan ner.html" name="banner" />
<frame src="defaultThu mbnails.html" name="thumbnail s" />
</frameset>
<frame src="defaultMai n.html" name="main">
<frame src="siteIntrod uction.html" name="intro">
</frameset>
<frame src="footerCopy right.html" name="footer" />
</frameset>

My "headerWelcome. html" file looks like this:

<body>
<img src="Welcome.gi f /><br>
<a href ="">Brisbane </a> | <a href ="">Sidney</a> | <a href
="">Port Moresby</a> | <a href ="">Lae</a> | <a href ="">Buka</a>
</body>

I know that can be acomplished via a Javascript function placed in
"headerWelcome. html" file and have anchor tag's href attribute set to
the function name as follows"

<a href="JavaScrip t: loadPages()">Br isbane</a> supposing loadPages() is
such function in the "headerWelcome. html" file.

My problem is I have difficulty specifying the names of the frames into
which the pages must load.

Please, help me achieve that.

Thousand thanks.

Jofio

Oct 7 '05 #1
3 1583
> "Jofio" <j9******@yahoo .com> wrote:
news:11******** **************@ g44g2000cwa.goo glegroups.com.. ..

In my frame based page, I have a hyperlink in the top frame called "
header" which, when I click, should make two different pages to be
loaded and displayed into two different frames, namely "thumbnails "
frame and "main" frame simultaneously.

My framed page is defined as follows:

<snip>

My "headerWelcome. html" file looks like this:

<snip>

I know that can be acomplished via a Javascript function placed in "
headerWelcome.h tml" file and have anchor tag's href attribute set
to the function name as follows"

<a href="JavaScrip t: loadPages()">Br isbane</a> supposing
loadPages() is such function in the "headerWelcome. html" file.

My problem is I have difficulty specifying the names of the frames
into which the pages must load.

Please, help me achieve that.

parent.frames['thumbnails'].location.href= 'http://www.yahoo.com';
parent.frames['main'].location.href= 'http://www.google.com' ;

--
BootNic Friday, October 07, 2005 4:20 PM

Optimism and humor are the grease and glue of life. Without both of them we would never have
survived our captivity.
*Philip Butler, Vietnam POW*

Oct 7 '05 #2
Thanks I tried . This is my code:

<a href="JavaScrip t: void loadPages('Bris bane')">Brisban e</a>

and my function loadPages() is:

<script language="javaS cript">
function loadPages(place ){
switch(place){
case "Buka":
{
parent.frames['thumbnails'].location.href= 'footer.html';
parent.frames['main'].location.href= 'login.php';
break;
}
/* more case statements to test for other place */
..
}
}
</script>

It seem to be not working, however. Arguments passed in the call to
the loadPages() function may be wrongly called....

jofio

Oct 9 '05 #3
> "Jofio" <j9******@yahoo .com> wrote:
news:11******** **************@ f14g2000cwb.goo glegroups.com.. ..

Thanks I tried . This is my code:

<a href="JavaScrip t: void loadPages('Bris bane')">Brisban e</a>

and my function loadPages() is:

<script language="javaS cript">
function loadPages(place ){
switch(place){
case "Buka":
{
parent.frames['thumbnails'].location.href= 'footer.html';
parent.frames['main'].location.href= 'login.php';
break;
}
/* more case statements to test for other place */
.
}
}
</script>

It seem to be not working, however. Arguments passed in the call to
the loadPages() function may be wrongly called....


<script type="text/javascript">
function loadPages(place ){
switch(place){
case "goob":
{
parent.frames['thumbnails'].location.href= 'http://www.yahoo.com';
parent.frames['main'].location.href= 'http://www.google.com' ;
break;
}
}
}
</script>

<a href="javascrip t:void(this);" onclick="loadPa ges('goob');">S earch</a>

--
BootNic Sunday, October 09, 2005 5:49 AM

Our earth is degenerate in these latter days; bribery and corruption are common; children no longer
obey their parents; and the end of the world is evidently approaching.
*Assyrian clay tablet 2800 B.C.*
Oct 9 '05 #4

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

Similar topics

1
3934
by: ck388 | last post by:
I am trying to open a frameset in a new window......where the frame called "main" shows the file called customerGeneral.aspx. I can't get it to work though...i always get something like frames.main.location is null....seems like the frameset is not loaded before wnd.frames.location.replace(URL) is called. If i add an alert("TEST") between the window open and the frame replacement....then it works. The alert("TEST") seems to ensure that...
3
1414
by: krishna | last post by:
Below is the code. language = asp.net/vb.net private sub openW() sResult = sResult & "<script language=javascript> mywindow = window.open('http://localhost/mohsaic/default.aspx?tc=Client/Manage'); " sResult = sResult & "mywindow.parent.frames.location = 'http://localhost/treeview/treeview.aspx?m=c&pid=366826706'; "
42
34203
by: Greg | last post by:
Hi, I've designed a bookmark in Ajax / PHP that I will put soon on sourceforge.net. But I've got an very tricky bug. I try it on some computers with Internet Explorer/Windows, Firefox 1.07/Linux, Firefox 1.5/Linux, Firefox 1.5/Windows and Firefox 1.5/Mac, Safari/Mac. It works perfectly on a lot of configurations but, on some PC with Firefox 1.5/Windows (not all), the Javascript code with XmlHttpRequest
18
3337
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to the image. The desired behavior is that when the pop-up is invoked, I want the underlying window to stay put. I don't have this problem when I run the code on my local computer but I do have it when I run the code on geocities.
7
2723
by: Jeffery Small | last post by:
I have a hand-crafted set of HTML files. each file begins with the line: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> while the master index.html file specifies: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
5
3692
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually for repeated html im using the external js, i mean the TOP, BOTTOM they are repeated in every page, so i include them as functions in the external js and call them. Why it doesn't work?
6
13860
by: August Karlstrom | last post by:
Hi everyone, I have some problems loading a page into a frame from a different frame. In Firefox and Explorer the lower frame displays "Test..." but in some older version of Safari it is left blank. Can anyone spot undefined behavior in the documents below or should we blame Safari? Regards,
1
2121
by: bbla32 | last post by:
Hi, I cannot figure out why everything from line var elem = doc.getElementsByName('keywords') in x.js is not executed. My goal is to set value of <input name=keywords ...which is in a.html after page is loaded. ------------------ search.html -------------------- <html>
3
1978
meenakshia
by: meenakshia | last post by:
hi forum i m facing a problem regarding printing withing the frames page i have a main frame page. which has on the left the menu html page loaded and on the right the target content page. when i try to open a page on the right and print two different pages using iframes it does not work , on the contrary when i load the page without frames it does the print job perfectly.i fail to understand why this is happening i m posting the partial...
0
8621
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9182
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9041
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8890
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7757
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3060
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2355
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.