HighDots Forums  

converting from frames and tables to pure css

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss converting from frames and tables to pure css in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Adam Sandler
 
Posts: n/a

Default converting from frames and tables to pure css - 03-16-2006 , 04:46 PM






Hello,

After exploring the links found at http://allmyfaqs.net/faq.pl?CSS_FAQs
for a couple of months, I'm finally weaning myself off of the
<frameset> and <table> nipples.

I'm just having one problem; one where I haven't been able to otherwise
research the solution. When one uses the frameset tag, they can
specify a target of where the markup is to be displayed. How is this
accomplished with CSS?

Now with CSS, I have a page set up much like this...

________________________________________________
Quote:
| | |
| | |
| | |
| | |
div id=lft | div class=content | div id=rght |
| | |
| | |
| | |
| | |
________________________________________________


The nav on the left looks much like this:

<div id="lft">
<h2>Links</h2>
<p>
<a href="/pages/link1.htm" title="">link1</a><br> <!-- want this to
open in "content" -->
<a href="/pages/link2.htm" title="">link2</a><br>
<a href="/pages/link3.htm" title="">link3</a><br>
<a href="/pages/link4.htm" title="">link4</a><br>
<a href="/pages/link5.htm" title="">link5</a><br>
</p>
</div>

Right now, when a user clicks on the left, they leave the page with the
div(s) and go just to the content in linkn.htm. I want the site to
behave so that when the user clicks on any of the links on the left,
the resulting markup will appear in either the middle or the right...
Also, some of those pages have buttons (input="submit") on them.
Previously, the buttons drove pages which popped up; I'd rather get rid
of the popups and have everything either appear in the middle or the
right; but again, since I'm stuck in the "TARGET=" mindset I'm not sure
how to continue.

I guess a workaround would be to copy the same code for the left side
navigation into every page so that it appears the new markup is being
opened in a specified window. But that solution seems smelly offhand
and it seems to be a maintenance nightmare -- which isn't CSS supposed
to prevent in the firstplace?!

Thanks for your help!



Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: converting from frames and tables to pure css - 03-16-2006 , 04:58 PM






Adam Sandler wrote:

Quote:
Right now, when a user clicks on the left, they leave the page with the
div(s) and go just to the content in linkn.htm.
Great, that is how the web is expected to work.

Quote:
I want the site to
behave so that when the user clicks on any of the links on the left,
the resulting markup will appear in either the middle or the right...

And the URL in the address bar is unchanged, making it a pain to bookmark,
or copy/paste the link, or index if you're a search engine.

http://www.allmyfaqs.net/faq.pl?Prob...h_using_frames

Quote:
I guess a workaround would be to copy the same code for the left side
navigation into every page so that it appears the new markup is being
opened in a specified window.
Yes, its what 99.9% of websites do.

Quote:
But that solution seems smelly offhand and it seems to be a maintenance
nightmare
No, you use a tool to do it. The above link points to a page that discusses
such things.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #3  
Old   
Yourself
 
Posts: n/a

Default Re: converting from frames and tables to pure css - 03-17-2006 , 04:12 AM




"Adam Sandler" <corn29 (AT) excite (DOT) com> wrote

Quote:
Hello,

After exploring the links found at http://allmyfaqs.net/faq.pl?CSS_FAQs
for a couple of months, I'm finally weaning myself off of the
frameset> and <table> nipples.

I'm just having one problem; one where I haven't been able to otherwise
research the solution. When one uses the frameset tag, they can
specify a target of where the markup is to be displayed. How is this
accomplished with CSS?

Now with CSS, I have a page set up much like this...

________________________________________________
| | | |
| | | |
| | | |
| | | |
| div id=lft | div class=content | div id=rght |
| | | |
| | | |
| | | |
| | | |
________________________________________________


The nav on the left looks much like this:

div id="lft"
h2>Links</h2
p
a href="/pages/link1.htm" title="">link1</a><br> <!-- want this to
open in "content" --
a href="/pages/link2.htm" title="">link2</a><br
a href="/pages/link3.htm" title="">link3</a><br
a href="/pages/link4.htm" title="">link4</a><br
a href="/pages/link5.htm" title="">link5</a><br
/p
/div
I would recommend an unordered list here

Quote:
Right now, when a user clicks on the left, they leave the page with the
div(s) and go just to the content in linkn.htm. I want the site to
behave so that when the user clicks on any of the links on the left,
the resulting markup will appear in either the middle or the right...
Also, some of those pages have buttons (input="submit") on them.
Previously, the buttons drove pages which popped up; I'd rather get rid
of the popups and have everything either appear in the middle or the
right; but again, since I'm stuck in the "TARGET=" mindset I'm not sure
how to continue.

I guess a workaround would be to copy the same code for the left side
navigation into every page so that it appears the new markup is being
opened in a specified window. But that solution seems smelly offhand
and it seems to be a maintenance nightmare -- which isn't CSS supposed
to prevent in the firstplace?!

Yes, one solution is to use server side includes

Quote:
Thanks for your help!




Reply With Quote
  #4  
Old   
Adam Sandler
 
Posts: n/a

Default Re: converting from frames and tables to pure css - 03-17-2006 , 08:44 AM




Quote:
No, you use a tool to do it. The above link points to a page that discusses
such things.
Thanks for the reply... but I cannot find what tool to which you are
referring. I went to every link on that page (except for
http://www.webcoord.unsw.edu.au/desi...ng2-Why-2.html
and http://homepage.ntlworld.com/l_vajzo...b/frames.html; they
are 404) and there was no mention of the maintaining issue I described
in my first post.

All those pages unanimously said was that frames cause problems for
search engines, indexing, bookmarks, printing, yada, yada, yada...
which I know already as I would not be in this newgroup in the first
place trying to prevent poluting my portion of the infromatin
superhighway in the first place.



Reply With Quote
  #5  
Old   
Fig
 
Posts: n/a

Default Re: converting from frames and tables to pure css - 03-17-2006 , 09:48 AM



On Fri, 17 Mar 2006 14:44:45 -0000, Adam Sandler <corn29 (AT) excite (DOT) com> wrote:

Quote:
No, you use a tool to do it. The above link points to a page that
discusses
such things.

Thanks for the reply... but I cannot find what tool to which you are
referring.
I believe http://allmyfaqs.net/faq.pl?Include_one_file_in_another is the
link that was refered to.

HTH


Reply With Quote
  #6  
Old   
Trevor L.
 
Posts: n/a

Default Re: converting from frames and tables to pure css - 03-17-2006 , 11:51 PM




Fig wrote:
Quote:
On Fri, 17 Mar 2006 14:44:45 -0000, Adam Sandler <corn29 (AT) excite (DOT) com> wrote:


No, you use a tool to do it. The above link points to a page that
discusses
such things.

Thanks for the reply... but I cannot find what tool to which you are
referring.

I believe http://allmyfaqs.net/faq.pl?Include_one_file_in_another is the
link that was refered to.

HTH
I found this reference on
http://allmyfaqs.net/faq.pl?Include_one_file_in_another
http://david.us-lot.org/software/dolt/

The progam is a Perl script that requires a Perl interpeter to be
installed. But once I had done that it worked well.

It converted several files successfully, but it then stopped working. I
have emailed the author, but hopefully it is just a glitch, because it
is very useful and easy to use.

I copied the Perl script file as C:\Documents and
Settings\Trevor\Desktop\Utilities\Web SW\dolt.pl
I copied my modified source code to myweb\source
I placed my include files in myweb\includes

I ran this bat file
myweb\dolt.bat
----------------------
perl "C:\Documents and Settings\Trevor\Desktop\Utilities\Web
SW\dolt.pl" -s source/ -i includes/ -o . -q -l doltlog.txt

Perfect . All the outputs went to myweb (as specified by -o .) as did
the log file



Reply With Quote
  #7  
Old   
Fig
 
Posts: n/a

Default Re: converting from frames and tables to pure css - 03-18-2006 , 01:37 AM



On Sat, 18 Mar 2006 05:51:22 -0000, Trevor L. <tandcl (AT) homemail (DOT) com.au>
wrote:

Quote:
Fig wrote:
On Fri, 17 Mar 2006 14:44:45 -0000, Adam Sandler <corn29 (AT) excite (DOT) com
wrote:


No, you use a tool to do it. The above link points to a page that
discusses
such things.

Thanks for the reply... but I cannot find what tool to which you are
referring.

I believe http://allmyfaqs.net/faq.pl?Include_one_file_in_another is the
link that was refered to.

HTH

I found this reference on
http://allmyfaqs.net/faq.pl?Include_one_file_in_another
http://david.us-lot.org/software/dolt/

The progam is a Perl script that requires a Perl interpeter to be
installed. But once I had done that it worked well.

It converted several files successfully, but it then stopped working. I
have emailed the author, but hopefully it is just a glitch, because it
is very useful and easy to use.

I copied the Perl script file as C:\Documents and
Settings\Trevor\Desktop\Utilities\Web SW\dolt.pl
I copied my modified source code to myweb\source
I placed my include files in myweb\includes

I ran this bat file
myweb\dolt.bat
----------------------
perl "C:\Documents and Settings\Trevor\Desktop\Utilities\Web
SW\dolt.pl" -s source/ -i includes/ -o . -q -l doltlog.txt

Perfect . All the outputs went to myweb (as specified by -o .) as did
the log file
Looks like a very useful tool if you are unable to run scripts on the
server.

--
Fig


Reply With Quote
  #8  
Old   
David Dorward
 
Posts: n/a

Default Re: converting from frames and tables to pure css - 03-18-2006 , 03:01 AM



Trevor L. wrote:

Quote:
http://david.us-lot.org/software/dolt/

It converted several files successfully, but it then stopped working.
Try this version: http://dorward.me.uk/tmp/dolt-3.0.1.plx

It has more debugging code in it.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #9  
Old   
Adam Sandler
 
Posts: n/a

Default Re: converting from frames and tables to pure css - 03-20-2006 , 10:00 AM




David Dorward wrote:
Quote:
Trevor L. wrote:

http://david.us-lot.org/software/dolt/

It converted several files successfully, but it then stopped working.

Try this version: http://dorward.me.uk/tmp/dolt-3.0.1.plx

It has more debugging code in it.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/
Home is where the ~/.bashrc is
Thanks all!



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.