473,387 Members | 1,621 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,387 software developers and data experts.

XML, Frames and CSS

I would like to move a frame based website to a non-framed based site
using CSS.

The problem relates to having an equivalent of frames and targets and
moving them to CSS.

The site has two frames. One on the left for navigation, the other on
the right for information. Users it to navigate on the lhs and pick
out a report, the report then gets displayed on the rhs. All fairly
normal.

Currently the lhs contents are all xml files, as is the rhs. Style
sheets are attached to the xml files to render them into html. I want
to move to the next step and render using CSS. Setting up the CSS
style sheet isn't a problem.

The problem is with the navigation.

Currently it is like this.

In the sidebar (lhs) frame there is html like this.
<h3>Folders</h3>
<ul>
<li>
<a href="TESTADS/Index.xml" target="sidebar">TESTADS</a>
</li>
</ul>

The next index file drills into to the reports, and works in the same
way.

Finally, the reports are selected as follows:

<ul>
<il>
<a href="NickTest_20041028.xml" target="main">20041028</a>
</il>
</ul>

Here, the target is the rhs or main window.

With Frames this is fine, but it doesn't look good.

I would like to do it with CSS.

Can't find anything by searching, but how do I target files to the CSS
equivalent of frames.

Nick
Jul 21 '05 #1
2 4272
Nick wrote:
I would like to move a frame based website to a non-framed based site
using CSS.

The problem relates to having an equivalent of frames and targets and
moving them to CSS.
You're using the wrong tools. CSS is only for styling content, with the
exception of content-before and content-after properties. And CSS is
optional per the spec, so you cannot rely on it for anything.
The site has two frames. One on the left for navigation, the other on
the right for information. Users it to navigate on the lhs and pick
out a report, the report then gets displayed on the rhs. All fairly
normal.
And easily done with standard HTML 4.01/strict markup.
Currently the lhs contents are all xml files, as is the rhs. Style
sheets are attached to the xml files to render them into html.
This is done on the server end, right?
I want to move to the next step and render using CSS. Setting up the
CSS style sheet isn't a problem.

The problem is with the navigation.

Currently it is like this.

In the sidebar (lhs) frame there is html like this.
<h3>Folders</h3>
<ul>
<li>
<a href="TESTADS/Index.xml" target="sidebar">TESTADS</a>
</li>
</ul>


The markup looks more or less solid, though I don't have a url to see
the context. (hint hint) You need only put that markup in the same file
as the content, and lose the target attribute. If you want to keep the
benefit of writing the navigation once for a whole site, then look into
how to include one file in another.

http://www.allmyfaqs.com/faq.pl?Incl...ile_in_another

--
Brian (remove "invalid" to email me)
Jul 21 '05 #2
"Brian" <us*****@julietremblay.com.invalid> a écrit dans le message de
news:_y*******************@bgtnsc05-news.ops.worldnet.att.net
I would like to move a frame based website to a non-framed based site
using CSS.

The problem relates to having an equivalent of frames and targets and
moving them to CSS.
You're using the wrong tools. CSS is only for styling content


No : to have an equivalent of a frame without the frame tags, you need an
inclusion technique, _AND_ fixed positionning. That least is done via CSS.

Jul 21 '05 #3

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

Similar topics

2
by: les | last post by:
Hello, I just wonder what are the implications to use frames to build portal. I've seen some sites that are quite fast with frames but I just wonder if there are hidden "costs". I've tried to...
40
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
95
by: Neal | last post by:
Of course, every frame site I've ever seen has reduced usability and all. We've been through this before. But as frameset is still a part of HTML, there must be some legitimate use for it, hmm?...
25
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
5
by: Dfenestr8 | last post by:
Hi. I'm designing a site, and I'm trying find a way of browsing it without using frames, so I can test the <noframes> </noframes> tags. I use a linux mandrake 10 system, with KDE 3.2. Is there...
7
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
3
by: Nish | last post by:
Is HTML frame is an old technology? Will the modern web application are developed using the HTML frames? Does all the browsers support them? Thank you for your suggestion, Nish
56
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content....
14
by: Mark | last post by:
Hi Guys, I am very new to ASP.NET world. I need to create three frames. One at the top, one on the left and another on the right side. I don't know how to do it. So please help me with it. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.