frameset

what is the jQuery / javascript context of a frame within an iframe?

北战南征 提交于 2019-12-01 16:46:32
问题 Let me preface this with... I have referenced this question/answers and it seems to contain clues, but i'm still missing the whole picture Run JQuery in the context of another frame Essentially, the structure of the index page is this <html> <body> <div class="frames-wrap"> <iframe id="this-iframe" src="location.php"> </iframe> </div> </body> </html> location.php then contains a frameset (ahem, not my idea...) that has two frames that are set up like so... <frameset cols="350,*"> <frame src=

How to put a div overlay over framesets?

梦想的初衷 提交于 2019-12-01 04:35:21
问题 I have a requirement to create a please wait page using jQuery 1.6.2 for an existing jsp page. I was able to get the div overlay to work, along with an please wait animation in a modal window in the center of the page. However, the overlay only covers one of the framesets, the center one. The html structure is basically (I'm leaving a lot out for clarity): ... <frameset > <frame id="topMostFrame"> <frameset> <frame id="leftMostframe"> <frame id="centerMostFrame"> </frameset> </frameset>

Changing URL without refresh?

流过昼夜 提交于 2019-11-30 20:49:32
问题 I found an app on the internet inside of which, when you click A link it will redirect to A page without refreshing the whole place and changing the url address bar, I know its possible becuase JQuery has access to the client sode browser. Please help me with this. 回答1: using the history api you could do something like this if (history && history.pushState){ history.pushState(null, null, '/new/url'); } try it in your browser now with chrome js console thats all it takes (maybe a little more,

How to call javascript function specified in a child <frame>

无人久伴 提交于 2019-11-28 23:44:49
I'm working on a accient project which based on and tags. Here's the common HTML structure of the parent page (index.html): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> </head> <frameset rows="75px,*" frameborder="0"> <frame name="frame1" src="frames/frame1.html"> <frameset class="child_frameset"> <frame name="frame3" src="frames/frame3.html"> </frameset> </frameset> </html> Here how I specify the javascript function on the child frame (frame3.html): <!DOCTYPE html> <html lang="en"> <head> <script type="text/javascript">

How can I get an element from within a frameset frame using JavaScript?

允我心安 提交于 2019-11-28 07:27:47
I need to access and element from within a frameset frame. For example if I have the following markup: <frameset rows="33%,33%,*"> <frame src="frame1.html"/> <frame src="frame2.html"/> <frame src="frame3.html"/> </frameset> How can I get some element from one of the child frames? I have tried this: window.frames[1].getElementById('someElementId') This results in a type error : getElementById() is not a function. Can someone assist? Thanks! You need to get the Document object for the frame. window.frames[1].document.getElementById('someElementId') Vinod <frameset rows="33%,33%,*"> <frame id=

Emulating frame-resize behavior with divs using jQuery without using jQuery UI?

坚强是说给别人听的谎言 提交于 2019-11-28 07:00:15
I'm converting a site for a client from a frameset to divs. One feature that the client has is a sidebar that can be resized depending on how much space the user needs. Using frames the resizing of this sidebar was built in. However, I'm having some difficulty emulating this capability in jQuery. I don't wish to use jQuery UI to do this, I have no need for all the extra functionality that the UI suite provides, and would rather just write a few lines of code to take care of this. I only need to resize in the horizontal plane, vertical dimensions are fixed. Currently I have a solution that

Alternative for frames in html5 using iframes

与世无争的帅哥 提交于 2019-11-27 21:54:23
I am new to HTML5 and I have done some research and found out that the use of <frameset> is outdated and from what I read <iframes> are not. So can someone help me, I want to obtain the same result as the example shown but while using <iframes> or another substitute for <frameset> that is not deprecated in HTLM5? <frameset cols="20%,*,"> <frame src="menu.html"> <frame src="events.html"> </frameset> drwatsoncode Frames have been deprecated because they caused trouble for url navigation and hyperlinking, because the url would just take to you the index page (with the frameset) and there was no

How can I get an element from within a frameset frame using JavaScript?

我怕爱的太早我们不能终老 提交于 2019-11-27 01:48:43
问题 I need to access and element from within a frameset frame. For example if I have the following markup: <frameset rows="33%,33%,*"> <frame src="frame1.html"/> <frame src="frame2.html"/> <frame src="frame3.html"/> </frameset> How can I get some element from one of the child frames? I have tried this: window.frames[1].getElementById('someElementId') This results in a type error : getElementById() is not a function. Can someone assist? Thanks! 回答1: You need to get the Document object for the

Why should I not use HTML frames? [closed]

安稳与你 提交于 2019-11-26 07:37:15
问题 I haven\'t used frames since 1998. They seem like a bad idea and in all my development I\'ve never had a situation where frames were the right solution, or even a decent solution. However, I\'m now working with an internal web application written by another group and the entire site is built in a - header, left side menu, right side content - frameset. For one, when VPN\'d to my network I constantly get a \"website.com/frames.html\" cannot be found.\" error message. This doesn\'t happen when

How to pick element inside iframe using document.getElementById

你。 提交于 2019-11-26 04:24:47
I have a iframe like this <iframe name="myframe1" id="myframe1" width="100%" height="100%" src="a.html"> <html> <head></head> <frameset name="myframe2" cols="0%, 100%" border="0" frameBorder="0" frameSpacing="0"> <frame name="page1" src="c.html" scrolling="no"></frame> <frame name="page2" src="d.html" > <html> <head></head> <body id="top"> <div id="div1"> <div id="div2"> <div id="div3"> <ul id="x"> <li>a</li> <li>b</li> </ul> </div> </div> </div> </body> </html> </frame> </frameset> </html> </iframe> I want to refer to the element "x". I tried in several ways but I couldn't find a solution.