Hi
I have a page that uses a number of file lists
http://www.handcoded.co.uk/talk/index.p ... mpany-info
For client presentations customers must click a link which is a folder which has the name of the presentation and then the page refreshes and then the customer would click another link which points to an index.html which when clicked starts the presentation.
The fact that the page has to reload and that site visitors would have to scroll down and click another link is not very intuitive so I wondered if I could change the link somehow so that only the table displaying the links is refreshed instead of the whole page and to get rid of the need to scroll down a second time.
Any help would be appreciated.
Anyone any good with Ajax?
Re: Anyone any good with Ajax?
Take a look at the jQuery colorbox site (which is what you have) and look to the load (html) option. Put &showtemplate=false at the end of the links and that shows how you can get just a piece of the page. You can also look at load() in the jQuery api and find that also with the showtemplate=false, you can go deeper by calling a div out of that only.
Lots of ways to do this... best to play and find out what is best for you... Hope that helps.. Cheers -Jeremy
Lots of ways to do this... best to play and find out what is best for you... Hope that helps.. Cheers -Jeremy
Re: Anyone any good with Ajax?
Hi Jeremy
I see. I could just wrap the content the file list table in a div and have this show inline using colorbox. I think it would work but I'm not 100% it would be the best solution but worth a go. Since you helped me out with this project additional file types have been added. I'm just trying to sort out audio playback now.
Somehow I've killed the video playback as it has decided it only wants to work in IE 8 which is very strange. Hey ho. I've got loads to be getting on with.
Thanks for your help once again
Richard
I see. I could just wrap the content the file list table in a div and have this show inline using colorbox. I think it would work but I'm not 100% it would be the best solution but worth a go. Since you helped me out with this project additional file types have been added. I'm just trying to sort out audio playback now.
Somehow I've killed the video playback as it has decided it only wants to work in IE 8 which is very strange. Hey ho. I've got loads to be getting on with.
Thanks for your help once again
Richard
Re: Anyone any good with Ajax?
Yes you can do that.. also you can still ajax it with the href option as it uses the .load() from jQuery.. Just an FYI but the inline should work as well.. Cheers -Jeremy