Hi,
I want to use prototype to update some content in a layer called
"inhalt".
When a special event is fired its calling "Folien" with a string as
parameter and should update the layer.
Unfortunatyle nothing happens in FF2.
// Handle incoming events
function Folien(data){
new Ajax.Updater(''inhalt'', ''aktion.php'', {
method: ''get'' ,
parameters: { l: data}});
};
If I just write new Ajax.Updater(''inhalt'',
''aktion.php'', { method:
''get'' , parameters: { l: data}}); somewhere outside a function
its
working.
Does someone know the problem?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
try this
function Folien(data){
var d = data;
new Ajax.Updater(''inhalt'',
''aktion.php'', { method: ''get'' ,
parameters: { l: d}});
};
Elden
On Wed, Mar 5, 2008 at 6:48 AM, krassA
<mathiasmethner-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
wrote:
>
> Hi,
>
> I want to use prototype to update some content in a layer called
> "inhalt".
> When a special event is fired its calling "Folien" with a string
as
> parameter and should update the layer.
> Unfortunatyle nothing happens in FF2.
>
> // Handle incoming events
> function Folien(data){
> new Ajax.Updater(''inhalt'',
''aktion.php'', { method: ''get'' ,
> parameters: { l: data}});
> };
>
> If I just write new Ajax.Updater(''inhalt'',
''aktion.php'', { method:
> ''get'' , parameters: { l: data}}); somewhere outside a
function its
> working.
>
> Does someone know the problem?
> >
>
--
{a human being that was given to fly}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
On 5 Mrz., 16:11, Elden <willy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> try this > > function Folien(data){ > var d = data; > new Ajax.Updater(''inhalt'', ''aktion.php'', { method: ''get'' , > parameters: { l: d}}); > > }; >Unfortunately this isnt the solution. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Have you watched the request/response in Firebug? Is the request being sent correctly, with the correct data? On Mar 7, 11:18 am, krassA <mathiasmeth...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 5 Mrz., 16:11, Elden <willy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> try this > > > function Folien(data){ > > var d = data; > > new Ajax.Updater(''inhalt'', ''aktion.php'', { method: ''get'' , > > parameters: { l: d}}); > > > }; > > Unfortunately this isnt the solution.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I receive the correct data, but the Request is never fired within the function. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Sorry, I don''t think I understand your reply. The more detail you can provide, the better the odds that I or someone else on the list will be able to spot whatever''s (not) going on... -- T.J. Crowder tj / crowder software / com On Mar 10, 1:55 pm, krassA <mathiasmeth...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> I receive the correct data, but the Request is never fired within the > function.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---