View Single Post
Old 05-05-2005, 06:54 PM   #30 (permalink)
arch13
Loves my girl in thongs
 
arch13's Avatar
 
Location: North of Mexico, South of Canada
Quote:
Originally Posted by Silvy
I agree with Trache's comments on javascript security and common annoyances, but I don't know what the statistics are for users with javascript enabled/disabled.
To be most compatible, a server-side solution is best. In your case: generating all pages with PHP.
Brewery.php would then compose a list of all images, output the page with the current image (id2), and depending on where that image is in the list, display the x/12 and < > things.
The brackets < > would then directly link back to a new page with id2+1 or id2-1.
The downside compared to JavaScript is the fact that the complete page will be reloaded for each image. The plus side is that all gallery logic is server-side and in the same language, making maintenance/debugging etc easier.
That is exactly what I'm thinking of Silvy
I guess I should start a new thread (or not if we're still going for longest single post records )
Is this a realitively easy approach? I don't mind the server load since the site does not have heavy traffic. I'm more concerened with good presentation and good code that can be used long term.

How do I go about this (Arch13 figures he may be getting some sort of bill from Silvy soon )
__________________
Seen on an employer evaluation:

"The wheel is turning but the hamsters dead"
____________________________
Is arch13 really a porn diety ? find out after the film at 11.
-Nanofever
arch13 is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76