Make sure your link_to_remote is not triggered multiple times for the same
image.
Also you should check the logs on your server and see how quickly is your
request processed.
On 6/22/06, Ben Lisbakken <lisbakke@gmail.com>
wrote:>
> I''m having severe speed issues on our server (localhost is
lightening
> fast!).
>
> Here''s the call:
> <img src= <%= @pics[col].img_url %> height=80 width=60
onMouseover="<%> remote_function(:update => "diag_box",
:url => { :action => :preview,
> :tit => @pics[col].mname, :desc => @pics[col].description
})%>;">
>
> It''s an image, that when moused-over, it calls the function
:preview,
> and passes :tit and :desc. The results of :preview will get rendered in
> the div :update.
>
> The preview function just does
> render_text "<b>" + params[:tit] +
"</b><br>" + params[:desc]
>
> Is there a better way to do this?
> Why does it load so slowwwwwww on our server but not in localhost?
>
> -Ben
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060622/67493fd8/attachment.html