473,766 Members | 2,035 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 1590
> "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
3937
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
1417
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
34239
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
3349
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
2726
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
3696
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
13873
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
2126
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
1981
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
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
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
10168
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
10008
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...
1
9959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6651
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();...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3929
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
3532
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.