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 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*
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
> "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.* This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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'; "
|
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
|
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.
|
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">
| |
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?
|
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,
|
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>
|
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...
|
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...
|
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,...
| |
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...
|
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...
|
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,...
|
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();...
|
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...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |