theusser
2007-Jun-25 19:34 UTC
Ajax.Updater, paramter ignored -> allwas parameters of main page used
Hallo, i have the following Code alert("action: " + action) var params = "action=" + action; new Ajax.Updater(''resultsNormal'', newUrl, { parameters: params } ) action has the correct content. On the page "newUrl" i read this action (as url-Parmeter), but i got always the value of the main page an not of the ajax request. (the main page is called with action=full. on the page i have sevaral links to limit the result, so in my case, action=service, but nevertheless i got in the container "restultNormal" again values based on action=full) What do i wrong? Thomas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
theusser
2007-Jun-26 09:22 UTC
Re: Ajax.Updater, paramter ignored -> allwas parameters of main page used
soved, it works now, i called a wrong version of the script, which did not yet handle the action .... Thomas On 25 Jun., 21:34, theusser <thomas.heus...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hallo, > > i have the following Code > > alert("action: " + action) > var params = "action=" + action; > new Ajax.Updater(''resultsNormal'', newUrl, { parameters: params } ) > > action has the correct content. > > On the page "newUrl" i read this action (as url-Parmeter), but i got > always the value of the main page an not of the ajax request. > > (the main page is called with action=full. on the page i have sevaral > links to limit the result, so in my case, action=service, but > nevertheless i got in the container "restultNormal" again values based > on action=full) > > What do i wrong? > > Thomas--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---