Forum: Ruby on Rails empty link_to_remote

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7223c62b7310e164eb79c740188abbda?d=identicon&s=25 Xavier Noria (Guest)
on 2006-02-21 22:23
(Received via mailing list)
I am playing around with AJAX pagination, but even a hard-coded

  <%= link_to_remote('1', :update => 'listing', :url => {:action =>
'listing', :page => 1}) %>

produces href="#". Does anybody know why?

-- fxn
6dab365a82517fb694650a57ee88e4a4?d=identicon&s=25 joey__ (Guest)
on 2006-02-21 22:52
Xavier Noria wrote:
> I am playing around with AJAX pagination, but even a hard-coded
>
>   <%= link_to_remote('1', :update => 'listing', :url => {:action =>
> 'listing', :page => 1}) %>
>
> produces href="#". Does anybody know why?
>
> -- fxn

It should produce something like(IF its AJAX):
<a href="#" onclick="new Ajax.Updater('listing',
'/controller/listing?pgae=1', {asynchronous:true, evalScripts:true});
return false;">1</a>

Joey__
7223c62b7310e164eb79c740188abbda?d=identicon&s=25 Xavier Noria (Guest)
on 2006-02-21 22:54
(Received via mailing list)
On Feb 21, 2006, at 22:22, Xavier Noria wrote:

> I am playing around with AJAX pagination, but even a hard-coded
>
>  <%= link_to_remote('1', :update => 'listing', :url => {:action =>
> 'listing', :page => 1}) %>
>
> produces href="#". Does anybody know why?

Argh, that is right, I was puzzled because of a bug somewhere else.
This topic is locked and can not be replied to.