hi,all
i dont know why it does not work as my expection.
it always render the 127.0.0.1:3000 (my ror server) ,not the 8080
port.
<%= link_to_remote ''query now!'',
{:host=>"127.0.0.1:8080",:controller=>"webgui",:action
=>"do_query",:only_path=>"false"},:update=>"result",:complete=>"$
(''queryed'')=1"%>
thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
why this does not work also??!!
<a complete="$(''queryed'')=1" href="#"
onclick="new
Ajax.Request(''http://127.0.0.1:3001/webgui/do_query'',
{asynchronous:true, evalScripts:true}); return false;"
update="result">query now!</a>
On May 2, 8:32 am, "Vincent.Z"
<zhu1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> hi,all
>
> i dont know why it does not work as my expection.
> it always render the 127.0.0.1:3000 (my ror server) ,not the 8080
> port.
>
> <%= link_to_remote ''query now!'',
>
{:host=>"127.0.0.1:8080",:controller=>"webgui",:action
>
=>"do_query",:only_path=>"false"},:update=>"result",:complete=>"$
> (''queryed'')=1"%>
>
> thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
FIXed after check rails'' sources. thanks! On May 2, 8:39 am, "Vincent.Z" <zhu1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> why this does not work also??!! > > <a complete="$(''queryed'')=1" href="#" onclick="new > Ajax.Request(''http://127.0.0.1:3001/webgui/do_query'', > {asynchronous:true, evalScripts:true}); return false;" > update="result">query now!</a> > > On May 2, 8:32 am, "Vincent.Z" <zhu1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > hi,all > > > i dont know why it does not work as my expection. > > it always render the 127.0.0.1:3000 (my ror server) ,not the 8080 > > port. > > > <%= link_to_remote ''query now!'', > > {:host=>"127.0.0.1:8080",:controller=>"webgui",:action > > =>"do_query",:only_path=>"false"},:update=>"result",:complete=>"$ > > (''queryed'')=1"%> > > > thanks!- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---