RE: AJAX image manipulation

Canyou tell me how to reference a specifc image in the pics collection?
I
tried pic.image_url[0] but it didn’t work…

Try window.document.getElementsByTagName(‘img’) for the collection.

Then you can access with the [x] to the specific img you want.

Hope it helps.

Try window.document.getElementsByTagName(‘img’) for the collection.

Then you can access with the [x] to the specific img you want.

Hope it helps.


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

what is happening is that I loop thru a collection and show all my
images in
thumbnails, that last picture is always show in the large view, I want
the
first image…

From the original code I posted I don’t know what you mean…

Jim


Express yourself instantly with MSN Messenger! Download today - it’s
FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

what is happening is that I loop thru a collection and show all my images in
thumbnails, that last picture is always show in the large view, I want the
first image…

From the original code I posted I don’t know what you mean…

@pics.first.image_url

Michael