search for: photo_fields

Displaying 2 results from an estimated 2 matches for "photo_fields".

2010 Sep 21
0
Upload form with uploadify jquery plugin
I would like to integrate the uploadify plugin with a standard rails form. However I can''t figure out how to add a new field and have it get submitted with the file upload. I added a name field into the form, but the valued does not get submitted. <% dialog_file_description = ''Photos'' allowed_extensions = [:jpg, :jpeg, :gif, :png] max_size = 20.megabyte
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.replace...