substituting information on a web page
hello
i'm currently trying to improve a website for a club of which i am a member. the website currently has a section which displays the profiles of its members on 4 seperate pages. i want to cut this down to 1 page, but due to the number of people who are members, this isn't really practical from an end users point of view due to each user having an image of themselves as part of their profile.
what i want to know is:
is it possible to have a list of names on the page, and when a particular name is clicked then the profile for that person is displayed. this would mean that only 1 image would have to be loaded at a time, making the page load faster.
what is the best way of doing this, bearing in mind that i have a fairly good understanding of html but hardly any knowledge of javascript, or other web based programming languages.
any help would be greatfully recieved
thanks in advance
Re: substituting information on a web page
Hi,
Yeah this is perfectly possible. Youll first need to know waht language the page is written in and how it retrieves its members from the database (ADO or ODBC).
the plan how to extend the page functionality (I.D reducing the member info retrieved and making allowances for the option of member specifics retrieveable. I would personally do this by using quesrystrings and ativating commands based upon the querystring value, is the easiest way probably.
Then simply write the code and te command to do so. not much server code involved in this and is easily implemented and deployed.
If you post the site details i'll have a quick look ad advicse you a little further on this and give you language pointers if needs be.
Hope this helps
Kai
Re: substituting information on a web page
You can also include all of the users info in a single html page and use javascript and css to hide some info and show other info. One method is to use Iframes another is to use folding list. Using the folding list method all images pre-load but since they are loading to a non-displayed portion of the page it isn't noticeable unless you are watching the status bar count them off as they load.
I'm actually working on a folding list method script..if I can get it to function in Mozilla pretty quick I'll post it but right now it's actually using an IE exploit and I hate to do that in production environments.
Re: substituting information on a web page
hi kaihirst
the information on the pages is coded in html and not actually retrieved from a database. I was thinking more along the lines of having html to display the info but only displaying the part of the html which applies to a specific member, something along the lines of what is suggested by anotherVBnewbie.
if you want to see what the pages are like at the moment, the address is
http://www.tainosen.co.uk
look in the section about the students and it'll give you an idea of what i mean, (the information is incomplete at the moment but will be updated in the coming weeks, but you'll understand what i mean when you see it)
anotherVBnewbie
is there anywhere i can get an example of a folding list method to see exactly what it does?
Re: substituting information on a web page
Hi
You can use HTML, CSS and javaqscript in such a way like this.
HTML Code:
<b onclick='show_or_hide()'> show/hide
<div id='name' style='display:blovck>
bla balh balh balh
</div>
javascript wil look like this.
VB Code:
function show_or_hide() {
if (document.all.name.style.display == 'non') {
document.all.name.style.display = 'block'
} else{
document.all.name.style.display = 'none'
}
}
self explanatory really, click to show, click again to hide.
Heop this helps.
Kai