On 09 Jul 2007, at 07:13, BeeRich wrote: > "Death before Flash". Nuff said. > > I found a solution, however some functions with Prototype aren't > working for some reason. I started another post about that. > element.update has no properties...which is strange. It's an empty > element, and it's definitely there. > > My research today said something about opening up the DOM security, > which is possible, but not recommended at any level. So, the > non-refresh gets taken care of by iFrame, and the load of the iFrame > launches an event.observer target function that should do what I want. > > 95% of it works. The observe works, calls the function, but for some > reason, my target div doesn't have any properties. Like it's not > there. Very very strange.
Although I'm not a very big Flash fan myself, I don't refrain from using the best solution for a certain problem. For emulating ajax uploads Flash has some serious advantages over an iFrame for example. I'm using SWFUpload in several of our applications with great success. IMHO, the biggest advantage of using a very small Flash movie just for the upload (so not for anything interface related) is that Flash enables you to do client-side checking before uploading the file: maximum filesize, allowed file extensions (greying out unavailable files in the selection dialog), multiple file selection in the selection dialog, reliable upload progress without hammering the server every few seconds ... The serverside checks should still be in place, because you should never trust a user (but in Rails using attachment_fu for example that's just so easy), but at least normal use of your application will limit the options presented BEFORE the file is uploaded, very useful when some users upload movies > 40 MB using their capped upload internet connection at home. Not trying to convert you to a Flash based solution here, but just pointing out some of the upsides of such a solution to other readers on the list. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
