html-frames

How to display action result of iframe in parent window

孤者浪人 提交于 2020-01-05 07:37:06
问题 I have a html page. html page has a iframe. when I submit the form inside iframe, returned result is displayed inside that iframe. How to display that result in parent of iframe?? 回答1: <script type="text/javascript"> $(document).ready(function () { $("#test").load(function (e) { var htmlFromServer = $(e.target).contents().find("html").html(); }); }); </script> <iframe id="test" src="HTMLPage1.htm"></iframe> All you need to do is handle the onload event of the iframe. This event is triggered

Can I disable IE compatibility mode only for content within a <frame>?

久未见 提交于 2019-12-24 05:24:07
问题 Ive developed a Web Application that runs in my company's intranet. I had an issue with Internet Explorer's automatic compatibility mode earlier in my process, and added code to force my pages to be displayed in the newest version of IE: <meta http-equiv="X-UA-Compatible" content="IE=edge" /> This worked perfectly. Until my web application was recently integrated into another intranet, available also to our customers. The web pages are beyond my control. My application is integrated within a

HTTP Referer on HTML Frames

送分小仙女□ 提交于 2019-12-23 00:51:10
问题 Say that I have a link from one.com to two.com/A.html. A.html looks like this <FRAMESET cols="100%"> <FRAME src="B.html"> </FRAMESET> The HTTP Referer on A.html is "one.com", but what will the HTTP referer be on B.html? Is this browser specific? 回答1: it'll be two.com/A.html, the link from the container. It's not browser specific, unless the browser is told to send a different referer via configuration 回答2: It should be two.com/a.html (i.e. the page that has the frameset on it). Remember that

How do I embed an ASP.NET Web Site (or Web Application) into another?

Deadly 提交于 2019-12-13 16:01:14
问题 I have very little experience with ASP.NET and I am doing some self-training before I start writing my first web site/application, which will be a calibration utility. How that utility works is not my concern right now. However, the utility eventually needs to end up embedded in someone else's web site, either just as a URL to the page with my code, or embedded (say, as an HTML frame or an iframe). To figure out the basics of this, I coded up two very simple ASP.NET web sites, a "parent"

How to load jQuery inside frame?

泄露秘密 提交于 2019-12-12 13:04:21
问题 I am working on a legacy enterprise application whose code was written in 2001 using a combination of JavaScript, HTML, Intersystems Caché, and Caché Weblink. This is what exists in index.html for the web app: <HTML> <HEAD> </HEAD> <FRAMESET ROWS="32,*" FRAMEBORDER="no" border="0" framespacing="0"> <FRAME SRC="sysnav.html" NAME="sysnav" SCROLLING="no" MARGINHEIGHT="10" MARGINWIDTH="10" NORESIZE> <FRAME SRC="cgi-bin/nph-mgwcgi?MGWLPN=dev&wlapp=SYSTEM&SystemAction=DisplayContentFrame" NAME=

Javascript event not being set correctly in closure when called cross frame

て烟熏妆下的殇ゞ 提交于 2019-12-11 07:45:58
问题 I have the following code in the top frame of a two frame page: function setKeyHook() { logMessage("setKeyHook()"); top.frames.BOTTOM.document.onkeydown = top.frames.TOP.document.onkeydown = function( evt ) { return function(){ top.frames.TOP.handleKeypress(evt); }; }( window.event ); } onload = setKeyHook; This works on the original document load, but when I call this function from another frame (usually when only one frame reloads), the hook is set, but when the onkeydown function fires, it

HTTP Referer on HTML Frames

我的梦境 提交于 2019-12-06 15:46:17
Say that I have a link from one.com to two.com/A.html. A.html looks like this <FRAMESET cols="100%"> <FRAME src="B.html"> </FRAMESET> The HTTP Referer on A.html is "one.com", but what will the HTTP referer be on B.html? Is this browser specific? it'll be two.com/A.html, the link from the container. It's not browser specific, unless the browser is told to send a different referer via configuration It should be two.com/a.html (i.e. the page that has the frameset on it). Remember that these referrers are set by the browser and therefore can be faked. 来源: https://stackoverflow.com/questions

accessing Frames rendered in webbrowser control in C#.net

女生的网名这么多〃 提交于 2019-12-02 09:27:13
问题 i need to get the links in a page rendered in webbrowser control in C#.net. Problem is that i think the page uses Frames that's why i cant get any links from webbrowser. how can i access or see those frames in the webbrowser control? 回答1: You could use the Frames property: webBrowser1.Document.Window.Frames 来源: https://stackoverflow.com/questions/2026743/accessing-frames-rendered-in-webbrowser-control-in-c-net

javascript document.getElementById in other frames

对着背影说爱祢 提交于 2019-11-30 11:14:34
so, I have 2 frames and want to access to element from one frame into another : frame 1: <div id='someId'>...</div> frame 2: var div=document.getElementById('someId'); div.innerHTML='something'; this is somehow not functioning in Firefox so I want to be sure, can I access to element in another frame by its ID ? You can refer the other frame by using window.frames["framename"] and then you can refer the element in the DOM by using window.frames["framename"].document.getElementById ( "yourelementid" ); The issue may be the current frame you are in. If window.frames['framename'] does not work,

javascript document.getElementById in other frames

北城以北 提交于 2019-11-29 16:50:47
问题 so, I have 2 frames and want to access to element from one frame into another : frame 1: <div id='someId'>...</div> frame 2: var div=document.getElementById('someId'); div.innerHTML='something'; this is somehow not functioning in Firefox so I want to be sure, can I access to element in another frame by its ID ? 回答1: You can refer the other frame by using window.frames["framename"] and then you can refer the element in the DOM by using window.frames["framename"].document.getElementById (