473,387 Members | 1,596 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.

converting from frames and tables to pure css

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>

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!

Mar 16 '06 #1
8 3181
Adam Sandler wrote:
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.
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
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.
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
Mar 16 '06 #2

"Adam Sandler" <co****@excite.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
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

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
Thanks for your help!

Mar 17 '06 #3
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.

Mar 17 '06 #4
Fig
On Fri, 17 Mar 2006 14:44:45 -0000, Adam Sandler <co****@excite.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
Mar 17 '06 #5

Fig wrote:
On Fri, 17 Mar 2006 14:44:45 -0000, Adam Sandler <co****@excite.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

Mar 18 '06 #6
Fig
On Sat, 18 Mar 2006 05:51:22 -0000, Trevor L. <ta****@homemail.com.au>
wrote:

Fig wrote:
On Fri, 17 Mar 2006 14:44:45 -0000, Adam Sandler <co****@excite.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
Mar 18 '06 #7
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
Mar 18 '06 #8

David Dorward wrote:
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!

Mar 20 '06 #9

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...
3
by: lostinspace | last post by:
Hello, My sites were created primarily with tables as layout. :-( I have two page designs which I used frequently and hopefully somebody can provide some insight as to whether its best to remain...
8
by: Uttam | last post by:
Hello, I am currently in the process of developing an application in a pure desktop world using Access 2000. I am intending to convert this pure desktop application into a Client Server...
9
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and...
4
by: Man-wai Chang | last post by:
Must I use CSS to layout the pages? -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Ubuntu 6.06) ...
27
by: Murray R. Van Luyn | last post by:
Hi, Is using frames in a website as big an issue nowadays as it was maybe 5 or so years ago? I can remember that you used to have to have a frame site, as well as a non frame site for browsers...
5
by: Jeff User | last post by:
Hi all I am writing program/framework to server a web site dynamically based on stored web page data with C#, .net1.1 What is the preferred means of controlling page layout, frames or...
4
by: arnaudk | last post by:
I am trying to come up with a class design to deal with asynchronous data to be stored and analyzed over multiple time frames and could really use some design input. This is a rather long question...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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.