[On-Rev] Photo Gallery problem

Dom mcdomi at free.fr
Wed Jun 24 11:24:41 EDT 2009


Hi!
I am running up against a problem...

My goal:
- given a number of shots, automatically construct a table with photos
thumbnails (Done)
- by clicking on a thumbnail, to go to a larger image, in the same page
or in another page (more or less done)
- the page with the larger image being rebuilt upon demand

Going to another page with the image alone is not too hard
(target='_blank')

Passing a parameter in a table is feasible, see:
http://medard.on-rev.com/essais/image.irev
In this page, there is "traditional" table, not built par "?rev"
commands...
a line in the table:
<a href="image.irev?timage=Images/1.jpg"><img border="0" alt=""
src="Thumbnails/1.jpg"></a><br>

It is possible to make "?rev" to build a table:
http://medard.on-rev.com/photos/pensees/index_2112.irev
a "constructed" line, as above:
put "<a href='Images/" & L & "'" & "target='_blank'><img
src='Thumbnails/" & L & "'></a>" after ttable
(the photos list is obtained according to Sarah's example)

But -- in the page:
http://medard.on-rev.com/photos/pensees/index.irev
the interpreter chokes on this:
put "<a href='index.irev?timage=Images/" & L & "'><img border='0' alt=''
src='Thumbnails/" & L & "'></a>" afterttable
it says "Error: can't find handler"

I'm scratching my head ;->
I can show my .irev pages, if you want (not given here, to save
bandwidth ;-))

Dom, AKA medard at on-rev
also posted to the On-Rev forum




More information about the use-livecode mailing list