473,796 Members | 2,704 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<FRAMESET> (HTML question)


This question is about html. I have this:

<frameset rows="90%,10%" frameborder="NO " border="0" framespacing="0 "
cols="1">
<frame name="topFrame" noresize src="c:\bpp.xml ">
<frame name="bottom" scrolling="NO" noresize src="c:\btn.htm ">
</frameset>

Is there a way to assign html code to frames "in code", not to have to
specify src property? Something like:

<frameset rows="90%,10%" frameborder="NO " border="0" framespacing="0 "
cols="1">
<frame name="topFrame" noresize><html> my html here</html>
<frame name="bottom" scrolling="NO" noresize><html> my html here</html>
</frameset>

Thank you.
Jul 19 '05 #1
3 2117
CJM
"Jan Plastenjak" <no**@ms.com> wrote in message
news:ur******** ******@TK2MSFTN GP09.phx.gbl...
Is there a way to assign html code to frames "in code", not to have to
specify src property?


No

See http://www.w3.org/TR/html4/present/frames.html#h-16.2.2

Notice it says that the Frame element is 'empty'. This means it doesnt have
a closing tag and can contain anything.

The src attribute is the method by which you must specify the starting HTML
for your frame.
I'm not sure why you are trying to do this, but I suspect there are better
ways. Why dont you tell us what your overall objective is.

And finally, no post about frames is complete without...
http://www.html-faq.com/htmlframes/?FramesAreEvil

hth

Chris
Jul 19 '05 #2

Thank you for your help. I'm trying to show in one page XML and HTML.
XML have XSL transformation and it produces HTML. I'll try to attach source
with this post. I couldn't find other way to display XML and HTML in one
page, except, to use frames.


Jul 19 '05 #3
This would be best asked in an HTML group.

I have seen a frameset that did this by calling a JavaScript variable for
the "SRC" attribute of the target frame as in:

<frame name="content" src="javascript :parent.emptyFr ame">

where emptyFrame was defined earlier as:

var emptyFrame = "<html><bod y></body></html>";

I personally would not do this for fear of browser-specific problems. I
usually load a blank page into the target frameset and then use JavaScript
to rewrite the page after it loads.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Jan Plastenjak" <no**@ms.com> wrote in message
news:ur******** ******@TK2MSFTN GP09.phx.gbl...

This question is about html. I have this:

<frameset rows="90%,10%" frameborder="NO " border="0" framespacing="0 "
cols="1">
<frame name="topFrame" noresize src="c:\bpp.xml ">
<frame name="bottom" scrolling="NO" noresize src="c:\btn.htm ">
</frameset>

Is there a way to assign html code to frames "in code", not to have to
specify src property? Something like:

<frameset rows="90%,10%" frameborder="NO " border="0" framespacing="0 "
cols="1">
<frame name="topFrame" noresize><html> my html here</html>
<frame name="bottom" scrolling="NO" noresize><html> my html here</html>
</frameset>

Thank you.

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
2275
by: Albert Wagner | last post by:
I have a page with two frames. Frame1 contains an inline script. Frame2 contains inline and 2 loaded scripts. How may I call a function in frame1(inline) from frame2(inline or loaded)? Albert
5
4819
by: Peter N | last post by:
How to I eliminate the gap between frames without using the 'framespacing' attribute in the <frameset> tag? (I'm using IE 6) Can I use CSS do this? Thanks Peter (Please remove the underscore from my email address) PS: Please don't tell me not to use frames.
2
8068
by: Kai Grossjohann | last post by:
The following HTML file invoker.html creates a modal dialog: <html><head> <script language="JavaScript"> function popup() { window.showModalDialog("main.html", null, "dialogHeight:300px;dialogWidth:500px;dialogLeft:100;dialogTop:100s"); } </script> </head><body>
44
919
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to put either tag inside an HTML <TD> and have the same kind of scrolling effect. This would allow me to fill the screen and have the size of the scrolling box change on resize. Thanks in advance.
8
104055
by: Primal-oooze | last post by:
In most newer browsers, would the following methods successfully write to the <div>s below? ------ <script> document.all.div1.innerText = "Some random text."; document.all.div2.innerHTML = "More random text."; </script> <div id="div1">
1
1619
by: adawi | last post by:
Hi file.aspx does not suport <Frameset> what I supose to do? Sorry, I found this topic before but it seems they where taking about something is not file.aspx, and I got confused? How I can get the same functionality, or make aspx support this tag. Thanks Mohammed Eladawi
3
3468
by: mark4asp | last post by:
According to this <http://css-discuss.incutio.com/?page=BoxModelHack> IE6 will display differently to the W3C standard. Only IE6/strict and I suppose IE 7 display correctly. IE 6 transitional and frameset are wrong. My users are still using IE 6 and I have a frameset in most of my pages - this is just a one line tickertape thing but it has to stay there. The guy who wrote the site made some errors here (specifying xml strict but...
1
4776
by: sid | last post by:
Is it possible to float a <divon top of a <frameset ...? I need it to overlap parts of the frames. Thanks Sid.
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10244
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10201
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.