Hi all. I have this little JS Code (the alert is for debug):
alert("4");
var page = "/admin/registrazioneUtente.php";
alert("5");
var pars = $(''datiutente'').serialize();
alert("3");
SHEEBOO_ajax(page,pars,''SHEEBOO_inviaDatiRegistrazioneAjax'');
alert("2");
''datiutente'' is the "id" of a form.
When run in IE and FF all is ok. When run in Safari (2.0.4) JavaScript
stop to work at line
var pars = $(''datiutente'').serialize();
I use prototype 1.5.0.
There is some problem with safari and prototype and Form.serialize() ?
Tnx.
--
Michel ''ZioBudda'' Morelli
michel-0oFb7YEmpcLk1uMJSBkQmQ@public.gmane.org
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764
http://www.ziobuddalabs.it Skype: zio_budda
http://www.ajaxblog.it MSN:
michel-0oFb7YEmpcIlQMARD/awdg@public.gmane.org
--~--~---------~--~----~------------~-------~--~----~
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 dont know the actual problem, but have you tried updating your script to use the latest version of prototype? Keith zio budda wrote:> Hi all. I have this little JS Code (the alert is for debug): > > alert("4"); > var page = "/admin/registrazioneUtente.php"; > alert("5"); > var pars = $(''datiutente'').serialize(); > alert("3"); > SHEEBOO_ajax(page,pars,''SHEEBOO_inviaDatiRegistrazioneAjax''); > alert("2"); > > ''datiutente'' is the "id" of a form. > > When run in IE and FF all is ok. When run in Safari ( 2.0.4) > JavaScript stop to work at line > > var pars = $(''datiutente'').serialize(); > > I use prototype 1.5.0. > > There is some problem with safari and prototype and Form.serialize() ? > > Tnx. > > -- > Michel ''ZioBudda'' Morelli michel-0oFb7YEmpcLk1uMJSBkQmQ@public.gmane.org > <mailto:michel-0oFb7YEmpcLk1uMJSBkQmQ@public.gmane.org> > Consulenza sistemistica in ambito OpenSource. > Sviluppo applicazioni web dinamiche (LAMP+Ajax) > Telefono: +39-3939890025 -- Fax: +39-0291390660 > > http://www.ziobudda.net ICQ: 58351764 > http://www.ziobuddalabs.it > <http://www.ziobuddalabs.it> Skype: zio_budda > http://www.ajaxblog.it MSN: > michel-0oFb7YEmpcIlQMARD/awdg@public.gmane.org <mailto:michel-0oFb7YEmpcIlQMARD/awdg@public.gmane.org> > >-- MindVision Interactive Ph: (08) 8212 9544 Fax: (08) 8212 9644 E-Mail: keith-ildoxR50Kj+k+/BmZukYBiV4CK0nxESZKQEueVp/e6I@public.gmane.org Web: www.mindvision.com.au --~--~---------~--~----~------------~-------~--~----~ 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''m having form.seralize problems in safari too. Did you figure it out? On May 2, 5:20 am, "zio budda" <ziobu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all. I have this little JS Code (the alert is for debug): > > alert("4"); > var page = "/admin/registrazioneUtente.php"; > alert("5"); > var pars = $(''datiutente'').serialize(); > alert("3"); > SHEEBOO_ajax(page,pars,''SHEEBOO_inviaDatiRegistrazioneAjax''); > alert("2"); > > ''datiutente'' is the "id" of a form. > > When run in IE and FF all is ok. When run in Safari (2.0.4) JavaScript > stop to work at line > > var pars = $(''datiutente'').serialize(); > > I use prototype 1.5.0. > > There is some problem with safari and prototype and Form.serialize() ? > > Tnx. > > -- > Michel ''ZioBudda'' Morelli mic...-0oFb7YEmpcLk1uMJSBkQmQ@public.gmane.org > Consulenza sistemistica in ambito OpenSource. > Sviluppo applicazioni web dinamiche (LAMP+Ajax) > Telefono: +39-3939890025 -- Fax: +39-0291390660 > > http://www.ziobudda.net ICQ: 58351764http://www.ziobuddalabs.it Skype: zio_buddahttp://www.ajaxblog.it MSN: mic...-0oFb7YEmpcIlQMARD/awdg@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi,
I figured out a workaround for the bug. Yes, it still exists in Safari
2.04.
Workaround:
Instead of using the aliased version of Form.serialize, e.g. $
(''myform'').serialize(true);, you must use it like this:
Form.serialize(''myform'', true);
And that does it.
On May 2, 5:20 am, "zio budda"
<ziobu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi all. I have this little JS Code (the alert is for debug):
>
> alert("4");
> var page = "/admin/registrazioneUtente.php";
> alert("5");
> var pars = $(''datiutente'').serialize();
> alert("3");
>
SHEEBOO_ajax(page,pars,''SHEEBOO_inviaDatiRegistrazioneAjax'');
> alert("2");
>
> ''datiutente'' is the "id" of a form.
>
> When run in IE and FF all is ok. When run in Safari (2.0.4) JavaScript
> stop to work at line
>
> var pars = $(''datiutente'').serialize();
>
> I use prototype 1.5.0.
>
> There is some problem with safari and prototype and Form.serialize() ?
>
> Tnx.
>
> --
> Michel ''ZioBudda'' Morelli
mic...-0oFb7YEmpcLk1uMJSBkQmQ@public.gmane.org
> Consulenza sistemistica in ambito OpenSource.
> Sviluppo applicazioni web dinamiche (LAMP+Ajax)
> Telefono: +39-3939890025 -- Fax: +39-0291390660
>
> http://www.ziobudda.net ICQ:
58351764http://www.ziobuddalabs.it Skype:
zio_buddahttp://www.ajaxblog.it MSN:
mic...-0oFb7YEmpcIlQMARD/awdg@public.gmane.org
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
That''s a known issue with Prototype 1.5.0 which has been corrected in 1.5.1. Upgrade! -- Tobie --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
2007/5/2, Keith Pitt <keith-ve2Fw/1u49m1JilXf3s4iIdd74u8MsAO@public.gmane.org>:> > > I dont know the actual problem, but have you tried updating your script > to use the latest > version of prototype?Hi, ad sorry for the late. The problem is solved with upgrade prototype to 1.5.1 version and scriptaculous to 1.7.1beta versione. However: tnx. M. -- Michel ''ZioBudda'' Morelli michel-0oFb7YEmpcLk1uMJSBkQmQ@public.gmane.org Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel-0oFb7YEmpcIlQMARD/awdg@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Nope, I''m using 1.5.1 and it''s still there. On May 10, 9:25 am, tobie <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> That''s a known issue with Prototype 1.5.0 which has been corrected in > 1.5.1. > > Upgrade! > > -- Tobie--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
eggie5, Works for me here You must be doing something weird ;-) Regards, Tobie --~--~---------~--~----~------------~-------~--~----~ 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 have upgraded to 1.5.1 and still experience problems with forms in Safari. In my case, I was trying to use myform.getInputs(); but had to revert to Form.getInputs(myform). On May 14, 11:20 am, tobie <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> eggie5, > > Works for me here > > You must be doing something weird ;-) > > Regards, > > Tobie--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Brandy, use $(myform).getInputs() If that still doesn''t work, please file a bug (works for me btw). Regards, Tobie --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Toby, I was using it in a function where the form is passed into it,
so using $ didn''t make sense. I had a form kinda like this (with more
attributes, obviously):
<form onsubmit="someFunction(this)">
and the function was something like this:
function someFunction(form) {
form.getInputs(); //doesn''t work
Form.getInputs(form);
...
}
Of course, it has occurred to me since then that my problem may have
been using the word "form" as a variable. :/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Tobie, I was using it in a function where the form is passed into it,
so using $ didn''t make sense. I had a form kinda like this (with more
attributes, obviously):
<form onsubmit="someFunction(this)">
and the function was something like this:
function someFunction(form) {
form.getInputs(); //doesn''t work
Form.getInputs(form);
...
}
Of course, it has occurred to me since then that my problem may have
been using the word "form" as a variable. :/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Yes, you have to run it through $() to extend it like so:
function someFunction(form) {
$(form).getInputs();
}
Read more about extensions here: http://prototypejs.org/learn/extensions
-- tobie
--~--~---------~--~----~------------~-------~--~----~
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 have used $() as a shortcut for document.getElementById() many times but hadn''t thought about extensions much, simply because I haven''t had a reason to think about it yet. Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---