3 replies [Last post]
tomlin
tomlin's picture
Offline
newbie
Last seen: 5 years 37 weeks ago
Timezone: GMT-5
Joined: 2010-01-24
Posts: 4
Points: 6

Hello,

I used html to write web pages many years ago and thought I'd give it another shot, only using CSS. I'd like to know if there is a way to load a "block" of text into an existing open area in a page based on which link is clicked. I'd like to do this rather than loading an entirely new page; just the particular part/block. Is this possible with CSS or do I need JS?

Thanks

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 16 hours 4 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9761
Points: 3843

There is no point

There is no sane reason to do that. It doesn't save any bandwidth, nor does it speed anything up. All the images, css files and js files you already have are cached and will not be reloaded unless your visitor decides to do a hard refresh.

Were you to do it anyway, it's done by the html link targeting a frame in a frameset. This has nothing to do with css. Javascript can generate content, but is a not particularly smart way to do things.

Perhaps if you would tell us what it is you want to accomplish, we could suggest a solution.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

tomlin
tomlin's picture
Offline
newbie
Last seen: 5 years 37 weeks ago
Timezone: GMT-5
Joined: 2010-01-24
Posts: 4
Points: 6

Thanks for replying. I'm

Thanks for replying.

I'm putting together a band website. The "Upcoming Gigs" page has the top half filled with a band pic. The bottom half has 2 columns. The left column lists the date and venue and the right is blank (right now). I'd like to be able to click the venue link on the left and have a description fill in the column on the right.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 16 hours 4 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9761
Points: 3843

Simpler way

In the interest of being user friendly, make your banner pic only use about 200px or less height. The picture of the band may stroke the band's ego, but does nothing to give the fans any usable information. Don't waste the visitor's expensive screen real estate.

The list of gigs will be edited each time a new gig is booked, and each gig will have a page published for it. As each gig is done, its link will be moved to the archival list.

I don't see any reason to do it differently. The site can easily be done statically or dynamically. I might even favor static. Additional pages dedicated to members, the music etc. can be built and updated as needed.

The band should also consider allowing free downloads of mp3 quality select songs, plus a means of offering cd quality paid downloads of full albums.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.