473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

<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 2097
CJM
"Jan Plastenjak" <no**@ms.com> wrote in message
news:ur**************@TK2MSFTNGP09.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.emptyFrame">

where emptyFrame was defined earlier as:

var emptyFrame = "<html><body></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**************@TK2MSFTNGP09.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
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
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...
2
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,...
44
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...
8
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 =...
1
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...
3
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...
1
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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,...

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.