Article View: borland.public.jbuilder.java.language
Article #15557Re: Java with frames please help
From: Rachel Rainey
Date: Tue, 08 Jun 1999 00:00
Date: Tue, 08 Jun 1999 00:00
156 lines
7734 bytes
7734 bytes
--------------7D0C9270C28BEC6A5ECDFA66
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
you may have more luck posting under comp.lang.javascript -- I gather
you are not talking about clicking within a Java applet
btw, I don't know much about JavaScript, but I would expect that if the
clicking were to happen on a parent frame, each child frame could be
manipulated
spt1313 wrote:
>
> Hello,
>
> I have posted a couple of times with this problem once already today.
> A very
> nice man replied to me and gave me a script that would solve my
> problem. IT
> didn't and that is the third time someone has went out of their way to
> help
> me but to no avail. I am trying to update two frames with one click.
> it seems like it would be
> easy. I understand the explanation that I received and I am pretty
> sure I
> did it right. this is what the gentleman told me to do:
> This will update 2 frames for you <script language="JavaScript">
> function cFrames(a,b){
> parent.FRAMENAMEA.location.href=a;
> parent.FRAMENAMEB.location.href=b;
> }
> </script>
> Replace the FRAMENAME* with the name of the frames you want to
> change The link setup <a
> href="JavaScript:cFrames('PageA.htm','PageB.htm')">Link</a>
> Replace the Page*.htm with the pages you want to load
>
> well here is the actual source of my pages (edited for length)
>
> off frame set page
>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> <title>home</title>
> <meta name="GENERATOR" content="Microsoft FrontPage 3.0">
> <script language="JavaScript">
> function cFrames(a,b){
> parent.main3.location.href=a;
> parent.main2.location.href=b;
> }
> </script>
> </head>
> and off the page that the link is on
>
> <table border="0" width="133" height="176">
> <tr>
> <td width="133" height="45"><a
> href="JavaScript:cFrames('http://thehub.tytek.net/new_page_4.htm','http://thehub.tytek.net/did_it.htm')">123</a>
>
> </td>
> </tr>
> <tr>
>
> I changed to the whole URL because it wasn't working with the
> "page.htm" either
>
>
>
> here is the URL of my page: http://thehub.tytek.net/
>
> can someone please please please help me. I really don't know what
> else to do. Is it me or my page or what?
>
>
> Thanks in advance
--------------7D0C9270C28BEC6A5ECDFA66
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
you may have more luck posting under comp.lang.javascript -- I gather you
are not talking about clicking within a Java applet
<p>btw, I don't know much about JavaScript, but I would expect that if
the clicking were to happen on a parent frame, each child frame could be
manipulated
<p>spt1313 wrote:
<blockquote TYPE=CITE><style></style>
<br><font size=-1>Hello,</font>
<p><font size=-1>I have posted a couple of times with this problem once
already today. A very</font>
<br><font size=-1>nice man replied to me and gave me a script that would
solve my problem. IT</font>
<br><font size=-1>didn't and that is the third time someone has went out
of their way to help</font>
<br><font size=-1>me but to no avail.</font> <font size=-1>I am trying
to update two frames with one click. it seems like it would be</font>
<br><font size=-1>easy. I understand the explanation that I received and
I am pretty sure I</font>
<br><font size=-1>did it right.</font> <font size=-1>this is what
the gentleman told me to do:</font>
<br><font face="Courier"><font size=-1>This will update 2 frames for you</font></font> <font face="Courier"><font size=-1><script
language="JavaScript"></font></font>
<br><font face="Courier"><font size=-1>function cFrames(a,b){</font></font>
<br><font face="Courier"><font size=-1>parent.FRAMENAMEA.location.href=a;</font></font>
<br><font face="Courier"><font size=-1>parent.FRAMENAMEB.location.href=b;</font></font>
<br><font face="Courier"><font size=-1>}</font></font>
<br><font face="Courier"><font size=-1></script></font></font>
<br><font face="Courier"><font size=-1>Replace the FRAMENAME* with the
name of the frames you want to change</font></font> <font face="Courier"><font size=-1>The
link setup</font></font> <font face="Courier"><font size=-1><a
href="<A HREF="JavaScript:cFrames(">JavaScript:cFrames(</A>'PageA.htm','PageB.htm')">Link</a></font></font>
<br><font face="Courier"><font size=-1>Replace the Page*.htm with the pages
you want to load</font></font>
<p><font size=-1>well here is the actual source of my pages (edited for
length)</font>
<p><font size=-1>off frame set page</font>
<p><font face="Courier"><font size=-1><head></font></font>
<br><font face="Courier"><font size=-1><meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1"></font></font>
<br><font face="Courier"><font size=-1><title>home</title></font></font>
<br><font face="Courier"><font size=-1><meta name="GENERATOR" content="Microsoft
FrontPage 3.0"></font></font>
<br><font face="Courier"><font size=-1><script language="JavaScript"></font></font>
<br><font face="Courier"><font size=-1>function cFrames(a,b){</font></font>
<br><font face="Courier"><font size=-1>parent.main3.location.href=a;</font></font>
<br><font face="Courier"><font size=-1>parent.main2.location.href=b;</font></font>
<br><font face="Courier"><font size=-1>}</font></font>
<br><font face="Courier"><font size=-1></script></font></font>
<br><font face="Courier"><font size=-1></head></font></font>
<br><font size=-1>and off the page that the link is on</font>
<p><font face="Courier"><font size=-1><table border="0" width="133"
height="176"></font></font>
<br><font face="Courier"><font size=-1> <tr></font></font>
<br><font face="Courier"><font size=-1> <td width="133"
height="45"><a href="<A HREF="JavaScript:cFrames(">JavaScript:cFrames(</A>'<A HREF="http://thehub.tytek.net/new_page_4.htm">http://thehub.tytek.net/new_page_4.htm</A>','<A HREF="http://thehub.tytek.net/did_it.htm">http://thehub.tytek.net/did_it.htm</A>')">123</a></font></font>
<br><font face="Courier"><font size=-1> </td></font></font>
<br><font face="Courier"><font size=-1> </tr></font></font>
<br><font face="Courier"><font size=-1> <tr></font></font>
<p><font size=-1>I changed to the whole URL because it wasn't working with
the "page.htm" either</font>
<br>
<br>
<p><font size=-1>here is the URL of my page: <a href="http://thehub.tytek.net/">http://thehub.tytek.net/</a></font>
<p><font size=-1>can someone please please please help me. I really don't
know what else to do. Is it me or my page or what?</font>
<br>
<p><font size=-1>Thanks in advance</font></blockquote>
</html>
--------------7D0C9270C28BEC6A5ECDFA66--
Technical Details
Message-ID:
<375DE19F.8ABD88DE@spots.ab.ca>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<yO073.346$N56.27394@news.cwix.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,24d25697585b8d83 X-Google-Attributes: gidf74b3,public From: Rachel Rainey <rr@spots.ab.ca> Subject: Re: Java with frames please help Date: 1999/06/08 Message-ID: <375DE19F.8ABD88DE@spots.ab.ca> X-Deja-AN: 487344282 References: <yO073.346$N56.27394@news.cwix.com> To: spt1313@mci2000.com X-Accept-Language: en Content-Type: multipart/alternative; boundary="------------7D0C9270C28BEC6A5ECDFA66" X-Complaints-To: abuse@tac.net X-Trace: iceman.tac.net 928899409 1192 209.115.174.170 (9 Jun 1999 03:36:49 GMT) Mime-Version: 1.0 Reply-To: rker0@hotmail.com NNTP-Posting-Date: 9 Jun 1999 03:36:49 GMT Newsgroups: borland.public.jbuilder.java.language