Displaying 2 results from an estimated 2 matches for "photo_".
Did you mean:
photo
2007 Apr 23
3
getElementsBySelector problem in IE
...iting, so you need this so the user can replace replace them), or a
pseuo id of the form "n_0", "n_1", ...]
This is how I''m doing it (and I''m sure there must be a more elegant
way, but as I said, just a js novice):
var mostRecentForm = $$(''fieldset.photo_fields'').last(); // get the
bottom fieldset
var formNumber = mostRecentForm.id.replace(''photo_fields_'',''''); //
find the photo'' s object id from the fieldsets CSS id
var rx = /n_\d/;
var newFormNumber = rx.test(formNumber) ?
Number(formNumber.r...
2005 Sep 14
4
How to drag/drop visitable anchors ?
Hi !
I have the following:
<li id="photo_<%= @photo.id %>" class="photo">
<%= link_to(image_tag(url_for_file_column(:photo, :picture)),
{:action => ''photo'', :id => @photo},
{:title => @photo.description}) %>
</li>
<script type="text/javascript"...