[solved] Load version of the same image with different size (e.g. Full Size) without reloading the whole site - expl of params?

Roi Danton

Joined: 2006-06-15
Posts: 46
Posted: Sun, 2007-01-07 13:13

I want to add the feature where the whole page isn't reloaded by changing the image size by clicking on the image or on "full size".

That's the link like in Matrix Theme (photo.tpl):

{g->url params=$theme.pageUrl arg1="itemId=`$theme.item.id`"
				   arg2="imageViewsIndex=`$imageViewsLink`"}

Which of these parameters I need to directly link to the "different sized item" (to use that link with JS-functions) instead to a new page?

Btw, the same I'm going to do with "Add Comment" and "Edit" (comment) so the input forms are dynamically loaded into the current item page (photo.tpl) (w/o frames of course).

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2007-01-07 19:59

I think the ajaxian theme does this. I don't think it reloads the page just to advance the photo as well.

Dave
_____________________________________________
Blog & G2 || floridave @ Gallery Team || G2 Theme Contest: +$3k in Prizes!

 
Roi Danton

Joined: 2006-06-15
Posts: 46
Posted: Sun, 2007-01-07 23:19

Thx, I think, this will help enough!

[OffTopic]
EDIT: Found the appropriate topics about Dreamhost in the Hosting subforum here.
Btw, I recognized the hoster of your G2 page is DreamHost. This company offers 200GB for 10€/month what's insane. Are you satisfied with this hoster?
[/OffTopic]

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2007-01-07 23:55

I have not had any troubles with Dreamhost other than the CPU usage issue when I migrate lots of G1->G2 installs and redo them a few times.

Dave

_____________________________________________
Blog & G2 || floridave @ Gallery Team || G2 Theme Contest: +$3k in Prizes!

 
Roi Danton

Joined: 2006-06-15
Posts: 46
Posted: Mon, 2007-01-08 21:24

Just as info: I've did it like the author of Ajaxan did or like it is done in slideshow module: Saving the other views and peer images in arrays and just referring to these arrays with Javascripts. Unfortunately using these Javascripts to change image (I'm using jQuery Lib b/c I'm a Drupalist ;) ) slows down the performance on computer with high load noticeable - in comparison to the normal "load the whole site" version. So I've removed this. Nevertheless, thx for the hint!