views:

149

answers:

2

I am using Wordpress for this design portfolio website: http://onomadesign.com/wordpress/identity-design/shleppers-moving-storage/

Now, on this single.php page, you can see the thumbnails on the right which link to each different post. What I would like to accomplish is that the thumbnail navigation with scrollbar, stays in the same position when people click on one to view a project. Now the whole page refreshes, so that the scrollbar is viewed from the top again. I don't want that.

So, I think I have to 'ajax' some stuff, right? Preferrably using jQuery, because I use that library through the website allready. Can I make that div on the right side with the thumbnails not to refresh while the rest of the page does? Or fetch the single posts so that it 'ajax refreshes'?

I hope I made myself clear, thanks in advance for any help!

Joshua

A: 
Tatu Ulmanen
Thanks. I was afraid of that. I stumbled upon this: <a href="http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/"> fetching posts in wordpress</a>. Could I apply this to accomplish what I want?Another option I was thinking of: somehow make the 'current' thumbnail centre in the scrollbar.. Don't know how hard that is. Thanks for your help.
Josh
Sorry, I mean http://www.tyssendesign.com.au/articles/cms/fetching-posts-in-wordpress-expressionengine-with-jquery-ajax/
Josh
Actually, the method in the link your posted might work. Are you able to work it out yourself? If you try that method and run into problems, I suggest that you just post a new question. The alternative method you also suggested is possible and actually relatively easy to accomplish - let me know if you need help with that.
Tatu Ulmanen
We'll go with the alternative, relatively easy method. And I would really like some help with that, yes:) Thanks a million. Can it be done with pure CSS or does it need some (jQuery) Javascript?
Josh
It requires some jQuery; detecting what link was pressed and adjusting the scroll of the sidebar so that the current link is centered. Could you mark this as accepted (or remove this question) and formulate a new question on that subject as it is fundamentally different than this one?
Tatu Ulmanen
I will, thank you.
Josh
http://stackoverflow.com/questions/2008929/centre-thumbnail-in-scrollbar-jquery
Josh
A: 

How to make a post publish instantly using ajax?

jenni
You should post follow-up questions as a separate thread, notas an answer. After all, it doesn't really answer *this*question. Also more people would see it and try to answer if you post it asyour own question.
sth