I should clarify, I did some more testing and it only seems to do
this when I call the template using RJS. The link I use to load the
page is a link to remote that replaces the inner_html of a div. if I
go to another page (regular link_to) and than come back and call
click on the link_to_remote link safari behaves as it should.
Starting to look like I need to rethink how this is going to work
unfortunately unless anyone has a suggestion.
Andrew
On Jul 11, 2006, at 8:09 AM, Andrew Filipowski wrote:
> Not sure where I can get help with this one but I getting a wierd
> behavior out of safari when trying to use the responds to parent
> plugin. Basically I have the following in my view:
>
> <div class="rightsidecontentbody">
> <%= form_tag({:action => "create"}, {:multipart =>
"true", :target
> => "frame"}) %>
> <form target="frame" action="create">
> <div>
> <%= text_field("publisher", "name",
"size" => 20) %>
> </div>
> <div>
> <%= text_field("publisher", "website",
"size" => 20) %>
> </div>
> <div>
> <%= file_column_field("publisher", "logo") %>
> </div>
> <div>
> <%= submit_tag("Save") %>
> <%= end_form_tag %>
> </div>
> <iframe id=''frame'' name="frame"
src="about:blank;" style="width:
> 1px;height:1px;"></iframe>
>
> its a simple little proof of concept app that I have been playing
> with as my knowledge of rails grows as well as as new features/
> plugins come out so that I can see how different things work.
>
> the controller looks like this:
>
> def create
> @publisher = Publisher.create(params[:publisher])
> responds_to_parent do
> render :update do |page|
> page.replace_html ''rightcolumncontent'', :partial
=> ''show''
> end
> end
> end
>
>
> my problem is that safari automatically tries to create the
> publisher as soon as I load up the new publisher page and runs
> create. This happens after I try to load something. It seems to be
> getting the iframe target from cache or something but I am not sure
> what. IE and Firefox behave exactly as they should. Any thoughts on
> how to get safari to play nice with this page?
>
> Thanks
>
> Andrew
>
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails