retacom-Mmb7MZpHnFY@public.gmane.org
2007-Oct-09 18:24 UTC
get all formelements and submit via updater
How can i do this? ____________ Virus checked by G DATA AntiVirusKit Version: AVK 17.8744 from 09.10.2007 Virus news: www.antiviruslab.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
google is your friend....
but anyways...
var boo = new
Ajax.Updater(''container'',''ajax.funcs.php?action=changeOffsiteLink'',
{evalScripts:true, parameters:Form.serialize(''addLinkForm'')});
there are, of course , other ways to do the parameters, and I''m sure
the
purists will say that action should go in parameteres, but I like that way,
of course there is backside verification of privileges in the php file.
On 10/9/07, retacom-Mmb7MZpHnFY@public.gmane.org
<retacom-Mmb7MZpHnFY@public.gmane.org> wrote:>
>
> How can i do this?
>
> ____________
> Virus checked by G DATA AntiVirusKit
> Version: AVK 17.8744 from 09.10.2007
> Virus news: www.antiviruslab.com
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
retacom-Mmb7MZpHnFY@public.gmane.org
2007-Oct-10 17:17 UTC
Re: get all formelements and submit via updater
Hello,
i try it like this
new
Ajax.Updater(''Kdlist'',''index.php?m=ksuche&c=getList'',
{
evalScripts:true,
parameters:Form.serialize(''FormSearchbox''),
onSuccess: function(transport)
{
var response = transport.responseText;
alert("Success! \n\n" + response);
} ,
onFailure: function(){ alert(''Die Verbindung zum Server ist
unterbrochen!'') }
});
but i get always this error:
Fehler: $(form) has no properties
Quelldatei: ....js/prototype/prototype.js
Zeile: 2655
> var boo = new
>
Ajax.Updater(''container'',''ajax.funcs.php?action=changeOffsiteLink'',
> {evalScripts:true,
parameters:Form.serialize(''addLinkForm'')});
>
> there are, of course , other ways to do the parameters, and I''m
sure the
> purists will say that action should go in parameteres, but I like that
> way, of course there is backside verification of privileges in the php
> file.
> ____________
> Virus checked by G DATA AntiVirusKit
> Version: AVK 17.8744 from 09.10.2007
> Virus news: www.antiviruslab.com <http://www.antiviruslab.com>
____________
Virus checked by G DATA AntiVirusKit
Version: AVK 17.8787 from 10.10.2007
Virus news: www.antiviruslab.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
do you have a matching html code to the javascript? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---