473,569 Members | 2,834 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generating noframes version of framed page

Hello all.
I am writing an XSL stylesheet that automatically converts a page with
frames to a noframes equivalent of this page, using tables.

I can get the positioning of each frame write in the table layout,
and the only problem left is the dimensions of each cell.

So my question is:
Is there any way of automatically calculating the sizing of each table
cell, representing a frame, so that the resulting page will look like
the framed page, with the same size for each frame content?

I mean, how can I parse the rows and cols attribute values of the
frameset tags to convert them automatically into the correct width and
height of the table cells?

Thanks in advance

Anna

Jul 23 '05 #1
11 1978
in comp.infosystem s.www.authoring.html, annie wrote:
Hello all.
I am writing an XSL stylesheet that automatically converts a page with
frames to a noframes equivalent of this page, using tables.
You should consider if it makes sence.
I can get the positioning of each frame write in the table layout,
and the only problem left is the dimensions of each cell.

So my question is:
Is there any way of automatically calculating the sizing of each table
cell, representing a frame, so that the resulting page will look like
the framed page, with the same size for each frame content?

I mean, how can I parse the rows and cols attribute values of the
frameset tags to convert them automatically into the correct width and
height of the table cells?


No. that is because tables and frames are both very bad tools for layout,
and their problems are in opposite places...

You really should use CSS instead.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 23 '05 #2
in comp.infosystem s.www.authoring.html, annie wrote:
Hello all.
I am writing an XSL stylesheet that automatically converts a page with
frames to a noframes equivalent of this page, using tables.


Forgot: about half of browsers that don't do frames don't do tables
either.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 23 '05 #3
In message <MP************ ************@ne ws.individual.n et>, Lauri
Raittila <la***@raittila .cjb.net> writes
in comp.infosystem s.www.authoring.html, annie wrote:
Hello all.
I am writing an XSL stylesheet that automatically converts a page with
frames to a noframes equivalent of this page, using tables.


Forgot: about half of browsers that don't do frames don't do tables
either.

In other words, a very small proportion of a very small proportion ....

The word 'insignificant' comes immediately to mind .... ;-)

--
Jake

Jul 23 '05 #4
Thanks for your answer.
CSS is also an option for me, but the problem there is that the
positioning might mess up some content of the frame, if it was
positioned as well.
But even with CSS, how can I generate the CSS layout automatically,
based on the rows/cols values of the frameses?

Jul 23 '05 #5
On Wed, 15 Dec 2004, Lauri Raittila wrote:
in comp.infosystem s.www.authoring.html, annie wrote:
Hello all.
I am writing an XSL stylesheet that automatically converts a page with
frames to a noframes equivalent of this page, using tables.


Forgot: about half of browsers that don't do frames don't do tables
either.


That's only partially true; and those who chose Lynx might well have
done so in order to avoid being forced to use frames...

The killer argument, for me, is that most of the browsers that /do/ do
frames (i.e the vast majority of those in popular use) will deny the
reader access to the noframes alternative. (I can only think of Opera
as an exception to that rule).

So, unless the author goes to extra trouble to produce and offer
separate access to a noframes option, most users are *forced* to get
the framed option, whether they like it or not. That's rude, and I
don't like to treat my readers in that way.
Jul 23 '05 #6
in comp.infosystem s.www.authoring.html, Alan J. Flavell wrote:
On Wed, 15 Dec 2004, Lauri Raittila wrote:
in comp.infosystem s.www.authoring.html, annie wrote:
Hello all.
I am writing an XSL stylesheet that automatically converts a page with
frames to a noframes equivalent of this page, using tables.
Forgot: about half of browsers that don't do frames don't do tables
either.


That's only partially true; and those who chose Lynx might well have
done so in order to avoid being forced to use frames...


By half I meaned exactly lynx. There is no sence to make table layout
stuff for lynx people. Not that it usually makes any sence on links etc
either. So it is very productive to make table layout for that audience,
as it is entirely possible that orginal, well done frames layout is just
fine (of course, OPs frames are not well done, as it would be easy to
convert such.)
The killer argument, for me, is that most of the browsers that /do/ do
frames (i.e the vast majority of those in popular use) will deny the
reader access to the noframes alternative. (I can only think of Opera
as an exception to that rule).
Yes, and even it don't have easy way to toggle. As it really would make
sence.
So, unless the author goes to extra trouble to produce and offer
separate access to a noframes option, most users are *forced* to get
the framed option, whether they like it or not. That's rude, and I
don't like to treat my readers in that way.


Yes.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 23 '05 #7
in comp.infosystem s.www.authoring.html, annie wrote:
Thanks for your answer.
CSS is also an option for me, but the problem there is that the
positioning might mess up some content of the frame, if it was
positioned as well.
I mostly considered it as option to get rid of frames, as I though you
are doing it for your site. Now I understand that it would make sence to
craft such XSL for other reasons too. (if that is the question, mention
it, I believe there is n+1 frame hater lurking out there ready to help
anyone to get rid of frames, but not with frames)

Here is link that nobody has yet posted, which is a must now, otherwise
someone pops and asks what is wrong with frames...
http://www.html-faq.com/htmlframes/?framesareevil
But even with CSS, how can I generate the CSS layout automatically,
based on the rows/cols values of the frameses?


Hard to say. Do I assume correctly, that frames would be set in all
possible ways? If you do have percentages, *s and pxs, then CSS most
likely won't be enaugh to do stuff automatically. You could get your
tabled version "work" using fixed table layout modell, but that would not
necessarily help to solve any real problem. (fixed table layout and * as
table width unit is are not too supported either)

Anyway, if your problem is your site, I would post URL to ciwa.site-
design, and as how it would be easiest to remake your whole site, getting
rid both frames and tables...

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 23 '05 #8
annie wrote:
I am writing an XSL stylesheet that automatically converts a page with
frames to a noframes equivalent of this page, using tables.


Why are you using frames in the first place?
Jul 23 '05 #9
I am not using frames. It's not my site.
What I want is to create a stylesheet that will create a noframes
version for ANY framed page out there, that will look as much like the
framed version as possible.
That's why I need something generic - I don't know how many different
versions of frames may occur.

Jul 23 '05 #10

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

Similar topics

1
2958
by: fartsniff | last post by:
hello all, i am using FRAMES on my PHP site, basically i am using just on frame with the entire site inside. this is mainly for cosmetics so that http://www.mydomain.com always is displayed in the address bar instead of every single variable and value being passed ;) a cleaner look imo. anyways, my index.htm looks like this: <html> <head>...
1
2468
by: Bart Plessers \(artabel\) | last post by:
Hello, I am wondering if one could do following. I have a main frame with 3 subframes ("top", "left" and "contents") I have a link in the left frame, someting like: <a href="test.asp?Mypath=/multimedia/images/">images</a> When clicking the link in the left frame, the page "test.asp" is displayed in the "contents" frame, with parameter...
3
1707
by: Jamal | last post by:
Hi, I have been searching around for a way to ensure a page stays framed. Here's the catch. The user starts at a two-frame page with the Google directory in one frame. I want the user to be able to navigate through the Google directory, but within the frame. Google has some sort of frame-busting script on this page and I need to find a...
21
3875
by: Jay Levitt | last post by:
I'm just starting to play around with CSS and MovableType. My home page (http://www.jay.fm) now validates on both the CSS and the XHTML. However, the Google cached version shows the wrong font in IE6. This seems to be because of the "header" they place before the <head> block; if I save the cached copy to disk and edit that out, it displays...
2
1740
by: Anna | last post by:
Hi all. I want to create a noframes version of a certain page (not written by me), that has three frames, each loading a page with few external stylesheets. If I copy the content of each framed page into a div on the noframes page, and put all the external links to stylesheets in the head, different styles
2
1625
by: Daniel Déchelotte | last post by:
Hi crowd, Please have a look at this page, where I try to have a framed block next to a floated one: http://yo.dan.free.fr/float_n_div.html Above is the best result I got so far. Works in (decently recent) IE and gecko-based browsers, unperfect in Opera. Below is what I try to avoid: the border and the background of the grey block extend...
2
1947
by: Toralf | last post by:
Greetings I have trouble catching the actual HTML Source code of a HttpWebRequest when the result of a successful login is a Frameset (I cant seem to get hold of the Frameset page Source code). The request is an automated basic login post (HttpWebRequest.Method = "POST" with username and password) which successfully catches Cookies etc....
6
3474
by: mcl | last post by:
I have a domain name which is set up for web forwarding with a frame. I have a link on one of the site's pages to an external site. When I select the link the external site is displayed correctly with its own URL in the address bar. When I select the <backbutton in the browser, my domain name appears temporarily in the browser, but it...
5
1675
by: DruidWanderer | last post by:
I'm attempting to create a frame that loads a page with a specific variable based on a random number, but I can't seem to get it to work. Any help would be greatly appreciated. Here's what I've got so far: <html> <head> <title>Main Page</title> </head> <frameset rows="100%">
0
7693
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7917
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7665
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...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6277
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...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2105
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
933
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...

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.