Basis of rails driven photo website with a Flash uploader
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

36 lines
1.4 KiB

  1. <%- title "Upload New Photo" -%>
  2. <%- content_for :head do -%>
  3. <%= javascript_include_tag 'swfobject' %>
  4. <script type="text/javascript">
  5. <!--
  6. swfobject.registerObject("uploader", "10.0.0", false);
  7. function uploaderBusy() {
  8. document.getElementById('status').innerHTML = 'Working...';
  9. }
  10. -->
  11. </script>
  12. <% end -%>
  13. <div id="image" style="width:640px; height:427px; border:1px solid gray; background-color: #f6f6ff"></div>
  14. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="120" height="40" id="uploader">
  15. <param name="movie" value="/swfs/uploader-free.swf" />
  16. <param name="menu" value="false" />
  17. <param name="quality" value="high" />
  18. <param name="scale" value="noscale" />
  19. <param name="flashvars" value="configFile=/uploader.xml" />
  20. <!--[if !IE]>-->
  21. <object type="application/x-shockwave-flash" data="/swfs/uploader-free.swf" width="120" height="40">
  22. <param name="menu" value="false" />
  23. <param name="quality" value="high" />
  24. <param name="scale" value="noscale" />
  25. <param name="flashvars" value="configFile=/uploader.xml" />
  26. <!--<![endif]-->
  27. <a href="http://www.adobe.com/go/getflashplayer"><img alt="Get Adobe Flash player"
  28. src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" /></a>
  29. <!--[if !IE]>-->
  30. </object>
  31. <!--<![endif]-->
  32. </object>
  33. <p id="status">&nbsp;</p>
  34. <p><%= link_to "Back to List", photos_path %></p>