aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes a href with frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "a href with frames" Watch "a href with frames" New topic
Author

a href with frames

Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 356
Hi can I use a href across frames.

consider one.jsp



two.jsp




I am trying to define a href in two.jsp and the corresponding link in one.jsp.

Can i access two.jsp a href in one.jsp, with out re-loading the two.jsp in the frame two.


SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61233
    
  66

Originally posted by N Chaurasia:
Can i access two.jsp a href in one.jsp, with out re-loading the two.jsp in the frame two.

I really don't know what you are asking. You might try re-wording your question.

Or, it's likely that the answer to the question might be the use of the target attribute on the <a> tag. Just a stab.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 356
I tried to use target attribute



But it opens a new window for me when i clikc link Go, What i am trying to achieve is that when i click on the link Go, I should be able to access the
defined in two.jsp.

i.e. When i click link Go, the two.jsp defined in frame two should be at the top(trying to replicating the functionality of defined in same file.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
the target should just be the framename, it should not include the parent reference.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a href with frames