[Javascript] two frames, two hrefs

David Yee dyee at AMSResponse.com
Wed Jan 9 14:24:11 CST 2002


It works- thanks a lot guys!

David

> -----Original Message-----
> From: Peter Brunone [mailto:peter at brunone.com]
> Sent: Wednesday, January 09, 2002 11:50 AM
> To: javascript at LaTech.edu
> Subject: Re: [Javascript] two frames, two hrefs
> 
> 
> 
>     Right, but then you're not triggering a link; you're 
> running a function.
> 
>     And yes, you can specify a function as the URL (works if 
> you just type
> some script in the browser while on a page as well).
> 
> -Peter
> 
> ----- Original Message -----
> From: <Esther_Strom at hmco.com>
> To: <javascript at LaTech.edu>
> Cc: <javascript at LaTech.edu>; <javascript-admin at LaTech.edu>
> Sent: Wednesday, January 09, 2002 1:20 PM
> Subject: Re: [Javascript] two frames, two hrefs
> 
> 
> |
> | Technically, you can...
> |
> | In the frame where the links are, place this code in the header:
> |
> | function intro(){
> | parent.frames['frame1'].location="introf.htm";
> | parent.frames['frame2'].location="introt.htm";
> | }
> |
> | Obviously you'll need to change the frame names and file 
> names. I think I
> | remember setting the location to a function and having it work.
> |
> | Then, in the link that you want to trigger all the stuff, 
> put this code:
> |
> | <A HREF="JavaScript: intro()"; return true>Click</a>
> |
> | -Esther
> |
> | "Peter Brunone"
> |  01/09/02 01:30 PM
> |
> |     What's the behavior?  I don't think you can "trigger" a 
> link from
> | another frame...
> |
> | ----- Original Message -----
> | From: "David Yee" <dyee at AMSResponse.com>
> | To: <javascript at LaTech.edu>
> | Sent: Wednesday, January 09, 2002 1:13 PM
> | Subject: RE: [Javascript] two frames, two hrefs
> |
> |
> | | Thanks for the response Peter.  Is it possible to call 
> that link in
> frame
> | A
> | | instead of doing a reload() of frame A?  The behavior I've set for
> | reloading
> | | the page is a little different than the "Refresh" link.
> | |
> | | David
> | |
> | | > -----Original Message-----
> | | > From: Peter Brunone [mailto:peter at brunone.com]
> | | > Sent: Wednesday, January 09, 2002 10:59 AM
> | | > To: javascript at LaTech.edu
> | | > Subject: Re: [Javascript] two frames, two hrefs
> | | >
> | | >
> | | > David,
> | | >
> | | >     If I understand you correctly, the following should work
> | | > (just make sure
> | | > it runs in the frame B page when you display the 
> completed message):
> | | >
> | | > top.frames.B.location.reload();
> | | >
> | | > Cheers,
> | | >
> | | > Peter
> | | >
> | | > ----- Original Message -----
> | | > From: "David Yee" <dyee at AMSResponse.com>
> | | > To: <javascript at LaTech.edu>
> | | > Sent: Wednesday, January 09, 2002 11:21 AM
> | | > Subject: [Javascript] two frames, two hrefs
> | | >
> | | >
> | | > | Hi all.  Let's say I have 2 frames, A and B.  I have a link
> | | > (let's say
> | | > link
> | | > | 1) in frame A that has target=B, which is what I want.  But
> | | > how do I also
> | | > | have another link (link 2, target=A) in frame A
> | | > "clicked-on" automatically
> | | > | when I click on link 1?  Basically I have written a PHP
> | | > application that
> | | > | displays a file listing in frame A with a "delete this
> | | > file" link next to
> | | > | each file name.  In frame A I also have a "Refresh" link.
> | | > So when I click
> | | > | on the "delete this file" link a message is displayed on
> | | > frame B but I
> | | > also
> | | > | want the "Refresh" link to automatically execute.  That way
> | | > I don't have
> | | > to
> | | > | manually click on "Refresh" to update the file listing
> | | > after I've deleted
> | | > a
> | | > | file.  Thanks for any help!
> | | > |
> | | > | David
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 



More information about the Javascript mailing list