I am having a problem with Attachment_fu. I have some code that''s based on the code from the Mark Clark tutorial. Everything works fine on firefox but on Internet Explorer it doesn''t. I click the upload button and nothing happens. There is no error and it seems no processing takes place. The development log seems to comfirm this. Any idea what is the problem? I am using ruby 1.8.6 and rails 2.0.2. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jan-Christian Foeh
2008-Apr-20 13:04 UTC
Re: Attachment_fu does not work with internet explorer?
> Everything works fine on firefox but on Internet Explorer it doesn''t. I click the upload button > and nothing happens. There is no error and it seems no processing takes > place.So it seems the form is never even submitted? Could you post the relevant form HTML your view creates? Jan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Kelvin Pompey
2008-Apr-20 18:31 UTC
Re: Attachment_fu does not work with internet explorer?
Jan-Christian Foeh wrote:>> Everything works fine on firefox but on Internet Explorer it doesn''t. I click the upload button >> and nothing happens. There is no error and it seems no processing takes >> place. > > So it seems the form is never even submitted? Could you post the > relevant form HTML your view creates? > > JanThe erb file is: <%= error_messages_for :photo %> <div id="photo_thumblist"> <h3>Fotos Agregados</h3> <%= render :partial => ''thumbpic'', :collection => @thumbpics unless @thumbpics.nil? == true %> </div <% form_for(:photo, :html => { :multipart => true }) do |f| -%> <p> <label for="photo">Cargar Foto:</label> <%= f.file_field :uploaded_data %> </p> <p> <%= submit_tag ''Cargar'' %> </p> <%= link_to ''Terminar'', :controller => ''apartments'', :action => ''list'' %> <% end -%> The generated html is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Alojamientos Puebla</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="/stylesheets/style1.css?1208495803" media="screen" rel="stylesheet" type="text/css" /> </head> <body> <div id="container"> <div id="login_logout"> Conectado: kelvin <em><a href="/account/logout">(Logout)</a></em> </div> <div id="masthead"> <div id="top_left"> </div> <div id="header"> Alojamientos Puebla</div> </div> <div id="left_col"> <div id="navigation"> <ul> <li><a href="/apartments/list">Inicio</a> </li> <li><a href="/apartments/new">Publicar Anuncio</a></li> <li>Mi Perfil</li> <li>Contacto</li> </ul> </div> </div> <div id="page_content"> <div id="photo_thumblist"> </div <form action="/photos/new" enctype="multipart/form-data" method="post"><div style="margin:0;padding:0"><input name="authenticity_token" type="hidden" value="a4e4db9eed289186620760969d88c0829a7ac748" /></div> <p> <label for="photo">Cargar Foto:</label> <input id="photo_uploaded_data" name="photo[uploaded_data]" size="30" type="file" /> </p> <p> <input name="commit" type="submit" value="Cargar" /> </p> <a href="/apartments/list">Terminar</a> </form> </div> <div id="right_col"> </div> <div id="footer"> Alojamientos Puebla © 2008</div> </div> </body> </html> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Kelvin Pompey
2008-Apr-20 18:45 UTC
Re: Attachment_fu does not work with internet explorer?
I''ve found the problem. Thanks. I was missing a ''>'' for one of my closing div tags. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---