Linking To A Particular Frame Within A Frameset Using OpenWin() Java
Sep 26, 2000
I am attempting to link to a particular area of a frame within a framset. I understand how to use anchor tags as well. The problem is, I can't point a link to an anchor that is within a frame of a new window. When a user clicks on the link, a new window will appear. This winow will contain frames. I would like to point certain links to specific areas within one of the frames. Is this making sense? Code:
Now, if you click on the blue highlighted links, it will open up a new window. This new window is constructed with frames. The top one displaying the blue header and the bottome one containing the content. Now, if they click on the "tax exempt I.D.", I would like the new window to open up with the bottom content showing "tax exempt I.D." at the very top. (So the user will not have to scroll down each time to find the help topic of their choice).
This is the code I am currently using on the links:
<A HREF="javascriptpenWin('help_frames.htm#taxexempt');">
I just can't get the "#taxexmpt" part to work.
View 2 Replies
ADVERTISEMENT
Aug 30, 2010
i need to pass the data in the textfields from the left frame to the textfields in the right frame of my frameset. (ex: dslnum of frame1 will be pass to txtDSLTN of frame2)[URL]
View 19 Replies
View Related
Jan 24, 2010
I'm having difficulty trying to refresh the whole frameset from a hyperlink on one of the frames. I've searched google and tried many options, about 6 or 7 codes, but failed. This is among one of which i tried:
<a href="#" onClick="opener.top.location.reload()">Homepage</a>
Very briefly, what i need to do is to refresh the entire frameset - the effect which can be obtained by pressing on the RELOAD button on the internet browser.This is how the frame looks like:
Code:
<html>
<head>
<title>Client</title>
[code]....
I am trying to refresh this entire frame using a link on the left frame, left.php.
View 1 Replies
View Related
Jan 24, 2010
I'm having difficulty trying to refresh the whole frameset from a hyperlink on one of the frames.I've searched google and tried many options, about 6 or 7 codes, but failed.This is among one of which i tried:[code]Very briefly, what i need to do is to refresh the entire frameset the effect which can be obtained by pressing on the RELOAD button on the internet browser.[code]I am trying to refresh this entire frame using a link on the left frame, left.php.
View 4 Replies
View Related
Oct 6, 2009
How do I set the contents(src) of a frame in a frameset when opened in new window?(frameset has a frame called APtop)I have following code
newWind = window.open("http://server/db.nsf/ActionPlan?OpenFrameSet","_blank");
newWind.frames['APtop'].location.replace("http://server/db.nsf/Administration?OpenPage");
It does not work... I even tried
newWind.document.getElementById('APtop').src = "http://server/db.nsf/admin?OpenPage";
How do i do this?
View 4 Replies
View Related
Sep 28, 2011
I have two framesets for a chat aplication, how can i scroll the messages frameset when a user submit a message from the input messages frameset ?I am using : parent.msg.window.scroll(1,400000); but it is not working
View 9 Replies
View Related
Aug 26, 2011
I have a domain: example.com; which is the parent.And a subdomain: api.example.com; which page 'receiver.html' is being loaded in an iframe, child of parent. Both pages set document.domain = example.com.
I'm trying to adapt this code:[url] but Idon't want to load jQuery from the <iframe> again but I need to have the method $.ajax() working from the <iframe> otherwise it would be a cross-domain request and the browser would abort it. I tried ingenuously to set via $('iframe')[0].contentWindow.$.ajax = $.ajax() and I just got a shortcut to the parent page jQuery method. I also tried to "clone" it using $.expand (true...) but the method doesn't work for me; probably because of the complexity of the objected I'm trying to clone. So is there a way for me to use jQuery to have only a $.ajax() method in the <iframe> ? I've thought even about creating a XHR in the child-iframe and then use that in the $.ajaxSetup ({xhr: THATNEWXHR}) but I couldn't do it. I mean, I want to use the XHR factory from jQuery (which has fallbacks for IE, etc) but it has to be created from the iframe-child.
Maybe there is other way to make the AJAX call come from the child-iframe.
If you're wondering "why don't you load jQuery from <script> in the child-iframe", there is a reason... As I'm using jQuery plugins + my own custom javascripts + other independent scripts I created a compiler which minifies each file and bundle them in one. The advantage of this is the reduction of HTTP requests. So "why don't you load that bundle inside the child-iframe?", because it's ugly and Twitter doesn't... Yeah, I like to take Twitter as a reference and I think if they were able to make it so can I;
I got to work in most browsers except IE and Operaby doing it with pure javascript.
I'm "attaching" the code for you guys to test. If you open it with Chrome, Safari or Firefox you will receive 2 alerts one with the return of $.get() and another with the return of a request made via XMLHttpsRequest object. Otherwise (if you open it with IE or Opera) you'll get 'undefined' in the first alert but the real return in the second.
This is the example.com/index.htm:
View 4 Replies
View Related
Oct 15, 2001
Im trying to make a back button that reloads the previous page the user was at.
The back button will be on a small top frame and the page that needs to be controlled will be in the main frame.
The top frame is just a navigation system, and all pages will be loaded in the main frame.
Im trying to use this Code:
<FORM>
<INPUT TYPE="button"
NAME="back"
VALUE="BACK"
onClick="history.go(-1)">
</FORM>
Does anyone know how I could accoplish the desired result using this code, or any other code? And what about a foreward button?
View 2 Replies
View Related
Jul 20, 2010
I want to have a main image in place and when you click on 1 of the 3 frame options the frame changes showing a preview. Also I would like the add to cart button change its code to add the correct item as well.
View 2 Replies
View Related
May 22, 2011
I have two frames (frameset, let's call it frame1 and frame2). Frame1 has links..., and frame2. When some link in frame1 is clicked, it must be changed content of the frame2. Here's example: click. How to do that? (I don't see any javascript code)
View 2 Replies
View Related
Jul 19, 2006
I have a parent document that has a frameset with two frames in it. The first frame is a "header" that runs across the top of the site, and never changes. The second frame contains the "content" of the site. Essentially, I am trying to figure out how to prevent the header appearing above external sites when the user clicks an external link in the "content" frame.
Every time the content frame changes to a new URL, I would like the check that URL and determine if the content frame is changing to an external URL (i.e. different domain in URL) or to an internal link (same domain in URL). If the content is changing to an external link, I want to break out of the frame and just load that external link in the top most document.
I would like all of my javascript to be in the parent document, not spread throughout the individual pages of the site. I was trying to approach this by setting the onunload event handler of the content frame, but I am left with a couple of specific questions:
1. In handling an unload event, can you determine the next URL that the document is loading? Code:
View 6 Replies
View Related
Jan 10, 2011
I have a little problem, I structure my site with a main page index.html with a frame in the central whit name CENTRALE, so every other page I will open within this frame. Now I need to have a direct link to these internal pages, give an example I wish it were possible to go to the page clothing giving a direct link to that section of the site type www.indirizzo.com / clothing.html because the state of things if I take the 'direct address to that page I open only the part inside of the frame, but I wish I would open inside the "main frame, there is a solution in javascrip to overcome this problem?
View 4 Replies
View Related
Feb 20, 2009
have a FrameSet (FS1) that contains another FrameSet (FS2) How can I break just out of FS2 without breaking out of FS1?
View 1 Replies
View Related
Sep 8, 2010
I have a frameset with two frames; topFrame and mainFrame. I have code in topFrame and wish to print the contents of mainFrame. The code that I have used has worked for many years and still works on my localhost Apache Server. However, it has now "stopped" working. When I press the button in topFrame it prints the contents of topFrame The code that I am using is
Code:
window.parent.mainFrame.focus()
window.print
I have tried to replace the first line with..
[Code]...
View 1 Replies
View Related
May 13, 2009
I use dreamweaver mx html editor to make web sites. I think I know enough Html to get by. My new site uses a frame set so the head and controller don't change reload or move. This works nice, now all I have to do to make a new page is make the content page. But my problem is if I send out a link for someone to look at, it only loads the content page and not the frame set. I thought I could use javascript to determine if the frame set is present and if not load it. But I can't seem to find a way to sent variables from one frame to another. Also if a user clicks a link I would like my flash controller to reflect it.
[Code]...
View 1 Replies
View Related
Aug 9, 2004
I need to know how to refresh a bottom frame TO a specific dynamic URL from my top frame (meaning the code has to be in the top frame) say every 5 seconds. The top frame will be a php file as I need DB values. But I believe the frame thing is done via javascript. This ain't working so far, it only loads the first URL at not the rest. Is there the ability to refresh to a specific url in a target frame. Code:
View 5 Replies
View Related
Feb 19, 2009
One more question about manipulating iframes. In a script I've looked through to investigate AJAX file uploads, there is this technique for accessing the contents of an iframe:
Code:
if(frame.contentWindow)
{
var thebody = frame.contentWindow.document.body;
}else if(frame.contentDocument)
{
var thebody = frame.contentDocument.document.body;
}
I haven't been able to find much info on contentWindow and contentDocument. In fact, other sources I've found talk only about using contentWindow to access an iframe's contents, ignoring contentDocument completely. What is the difference between the two, and what browsers is the contentDocument check targeting? Any modern browsers, or is this a backward compatibility thing?
View 8 Replies
View Related
Aug 23, 2006
I'm trying to spread a table across a frameset. So I have index.htm that has an iframe sourcing the frameset. What I'm trying to do is create a table in index.htm to spread across the whole brower window. Code:
View 2 Replies
View Related
Aug 30, 2006
I have a frameset page as my index.html page and have noticed that if my
page is opened in other resolution than the one it was created in, some
pictures shift locatiuons.
If this was a non frames page i knew how to fix it...
Is there any was to automaticaly resize a frameset proportionaly to the
screen resolution?
ex: i want one picture to be exactly 1/4 of the screen, in a one-page i
would do someting like...
<img id="logo" border="0" src="Logotipo.jpg">
<script type="text/javascript">
document.getElementById("logo").width=screen.availwidth/4
document.getElementById("logo").height=screen.availheight/4
</script>
How do i do this with a frameset?
ex: banner frame be alway 1/6 of the screen height
View 2 Replies
View Related
Jul 20, 2005
We use a three-window frameset for online manuals. The "main" window
contains our document. Since the documents have hyperlinks between
them for related topics, we have "return" links built into a
navigation bar on some of the pages. Most of the time these work
fine, but if the person clicked on the top or left frame before
clicking on the "return" link, the wrong frame is changed.
Does anybody know how to alter the script so that only the main
document window is in focus? Here's the script we use in the page:
<a href="javascript:history.go(-1);">Back</a>
By the way, this is for a company Intranet - with all users on IE5.5
as a minimum.
View 1 Replies
View Related
May 10, 2010
I got a blank page returned when using javascript within the Frameset. Here is part of my codes:
(my javascript part)
<script language="JavaScript">
//this function will be used to get the parameter from URL using javascript
function gup (name)
[code]....
View 12 Replies
View Related
Jul 23, 2005
I have a site with frames. Like most sites with frames, clicking
links in one frame changes the page in the other frame.
Obviously, if someone puts in the URL for my site, they will get the
"homepage" when they first get there. What I would like to accomplish
is that if they leave my site, and then use the BACK button to come
back, that the site will open with the homepage, not whatever page
they were at when they left. Is that possible using javascript? If
so, how?
My site isn't actually "on the web" yet, so I can't give you a URL.
View 2 Replies
View Related
Jul 23, 2005
How do I ensure that a frameset is topmost in the window (and not inside another frame)?
View 4 Replies
View Related
Nov 23, 2005
After my web page has been loaded I'm doing some tests with a JavaScript. If
I figure out that something is wrong I'd like to reload the whole frameset.
With Internet Explorer and Mozilla Firefox I can reload the whole frameset
with
parent.location.href = "index.html";
However, this doesn't work with Opera.
Does someone know how to do that with Opera?
View 6 Replies
View Related
Mar 18, 2006
This problem is this:a page is made up of frameset, but i can't visit
the iframe(inline frame) of the frame in the framset.just like the
frameset have 3 frames,the third frame have a iframe(inline frame) .how
to?
View 2 Replies
View Related
Jul 20, 2005
I'm using a hierarchical menu made in javascript.
When I used it in a one frame page, it came out fine. But now I need to change my page to 3 frames: a top frame, a left frame and a right frame.
The menu is on the top frame and when hovering the categories, the sections appear under the left and right frame.
View 12 Replies
View Related