scidept-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-29 20:41 UTC
Safari 3 and Prototype?
Hello, I''ve got a little ajax code going on a page at: http://www.enginemaxx.com/dealer-locator.php using prototype''s Ajax.Updater. The code seems to work in every browser except Safari 3 for Mac & PC. The code doesn''t seem to run at all, and if you select the drop down on that page, it even crashes Safari 3 on PC. I''m using Prototype 1.6 RC but 1.5.1 also doesn''t work. Has anyone run into this problem before? Anyone have any ideas? I realize my code isn''t exactly amazingly well done, but it seems to work for all the other browsers. Thanks, BJ Clark sci.dept --~--~---------~--~----~------------~-------~--~----~ 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 the same stuff with updating the selects happen with safari 3 on the PC I figure just ignore it because Safari3 is still beta. Users who actually have that will know its beta and use something else. I don''t even have the benefit of being able to report mine to apple because it''s behind password protection. I''m not sure what version of Safari my mac at home is running but my code doesn''t crash that one -- i''ll try when i get home. On 8/29/07, scidept-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <beckyfassler-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Hello, > I''ve got a little ajax code going on a page at: > http://www.enginemaxx.com/dealer-locator.php > using prototype''s Ajax.Updater. > > The code seems to work in every browser except Safari 3 for Mac & PC. > > The code doesn''t seem to run at all, and if you select the drop down > on that page, it even crashes Safari 3 on PC. > > I''m using Prototype 1.6 RC but 1.5.1 also doesn''t work. > > Has anyone run into this problem before? Anyone have any ideas? > I realize my code isn''t exactly amazingly well done, but it seems to > work for all the other browsers. > > Thanks, > BJ Clark > sci.dept > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
scidept-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-29 22:26 UTC
Re: Safari 3 and Prototype?
Well, I think it might be linked to Safari 3''s onLoad behavior, and the fact that it fires before most other browsers, but that doesn''t really explain why Safari is crashing all together. I''ve changed my code to use Event.observe(window, ''load'', etc) instead of <body onLoad="foo()">, however that didn''t help. I''m wondering if there''s a further work around, someway to check if the page has actually loaded. BJ Clark sci.dept On Aug 29, 3:40 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m having the same stuff with updating the selects happen with safari 3 on > the PC > > I figure just ignore it because Safari3 is still beta. > > Users who actually have that will know its beta and use something else. > > I don''t even have the benefit of being able to report mine to apple because > it''s behind password protection. > > I''m not sure what version of Safari my mac at home is running but my code > doesn''t crash that one -- i''ll try when i get home. > > On 8/29/07, scid...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <beckyfass...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hello, > > I''ve got a little ajax code going on a page at: > >http://www.enginemaxx.com/dealer-locator.php > > using prototype''s Ajax.Updater. > > > The code seems to work in every browser except Safari 3 for Mac & PC. > > > The code doesn''t seem to run at all, and if you select the drop down > > on that page, it even crashes Safari 3 on PC. > > > I''m using Prototype 1.6 RC but 1.5.1 also doesn''t work. > > > Has anyone run into this problem before? Anyone have any ideas? > > I realize my code isn''t exactly amazingly well done, but it seems to > > work for all the other browsers. > > > Thanks, > > BJ Clark > > sci.dept--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
it''s not onload. my ajax isn''t launched until a user selects an item from a select box which then loads another select box and then safari *usually* crashes just after that select is done loading. On 8/29/07, scidept-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <beckyfassler-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Well, I think it might be linked to Safari 3''s onLoad behavior, and > the fact that it fires before most other browsers, but that doesn''t > really explain why Safari is crashing all together. > I''ve changed my code to use Event.observe(window, ''load'', etc) instead > of <body onLoad="foo()">, however that didn''t help. > I''m wondering if there''s a further work around, someway to check if > the page has actually loaded. > > BJ Clark > sci.dept > > > On Aug 29, 3:40 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I''m having the same stuff with updating the selects happen with safari 3 > on > > the PC > > > > I figure just ignore it because Safari3 is still beta. > > > > Users who actually have that will know its beta and use something else. > > > > I don''t even have the benefit of being able to report mine to apple > because > > it''s behind password protection. > > > > I''m not sure what version of Safari my mac at home is running but my > code > > doesn''t crash that one -- i''ll try when i get home. > > > > On 8/29/07, scid...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <beckyfass...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > Hello, > > > I''ve got a little ajax code going on a page at: > > >http://www.enginemaxx.com/dealer-locator.php > > > using prototype''s Ajax.Updater. > > > > > The code seems to work in every browser except Safari 3 for Mac & PC. > > > > > The code doesn''t seem to run at all, and if you select the drop down > > > on that page, it even crashes Safari 3 on PC. > > > > > I''m using Prototype 1.6 RC but 1.5.1 also doesn''t work. > > > > > Has anyone run into this problem before? Anyone have any ideas? > > > I realize my code isn''t exactly amazingly well done, but it seems to > > > work for all the other browsers. > > > > > Thanks, > > > BJ Clark > > > sci.dept > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
scidept-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-30 04:57 UTC
Re: Safari 3 and Prototype?
Brian, Sorry, that wasn''t particularly @ you. My initial problem is that my script doesn''t work in the first place, which I believe it linked to the onLoad weirdness, not the crashing issue. That one boggles my mind. :D -BJ On Aug 29, 8:42 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> it''s not onload. > > my ajax isn''t launched until a user selects an item from a select box which > then loads another select box and then safari *usually* crashes just after > that select is done loading. > > On 8/29/07, scid...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <beckyfass...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Well, I think it might be linked to Safari 3''s onLoad behavior, and > > the fact that it fires before most other browsers, but that doesn''t > > really explain why Safari is crashing all together. > > I''ve changed my code to use Event.observe(window, ''load'', etc) instead > > of <body onLoad="foo()">, however that didn''t help. > > I''m wondering if there''s a further work around, someway to check if > > the page has actually loaded. > > > BJ Clark > > sci.dept > > > On Aug 29, 3:40 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I''m having the same stuff with updating the selects happen with safari 3 > > on > > > the PC > > > > I figure just ignore it because Safari3 is still beta. > > > > Users who actually have that will know its beta and use something else. > > > > I don''t even have the benefit of being able to report mine to apple > > because > > > it''s behind password protection. > > > > I''m not sure what version of Safari my mac at home is running but my > > code > > > doesn''t crash that one -- i''ll try when i get home. > > > > On 8/29/07, scid...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <beckyfass...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hello, > > > > I''ve got a little ajax code going on a page at: > > > >http://www.enginemaxx.com/dealer-locator.php > > > > using prototype''s Ajax.Updater. > > > > > The code seems to work in every browser except Safari 3 for Mac & PC. > > > > > The code doesn''t seem to run at all, and if you select the drop down > > > > on that page, it even crashes Safari 3 on PC. > > > > > I''m using Prototype 1.6 RC but 1.5.1 also doesn''t work. > > > > > Has anyone run into this problem before? Anyone have any ideas? > > > > I realize my code isn''t exactly amazingly well done, but it seems to > > > > work for all the other browsers. > > > > > Thanks, > > > > BJ Clark > > > > sci.dept--~--~---------~--~----~------------~-------~--~----~ 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 Aug 30, 6:41 am, "scid...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <beckyfass...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, > I''ve got a little ajax code going on a page at:http://www.enginemaxx.com/dealer-locator.php > using prototype''s Ajax.Updater.It seems a strange design philosophy to load a page that then uses onload to send an XMLHttpRequest to get content for the page. Why don''t you just put it in the HTML in the first place? The select just filters content that is already in the page, why use XMLHttpRequest? You could achieve the same result with a very simple client-side script. But anyhow, that doesn''t directly address why your script fails in Safari. What may be of more importance is using an XHTML document (which itself it pointless on the web where around 75% to 85% of browsers don''t know what XHTML is, so you serve it as text/html and your page is treated as invalid HTML). <URL: http://www.hixie.ch/advocacy/xhtml > <URL: http://www.spartanicus.utvinternet.ie/no-xhtml.htm >> The code seems to work in every browser except Safari 3 for Mac & PC.Safari tends to be strict about such stuff, either enclose your script in XML comments or remove it entirely to an external script file. Or use a doctype of HTML 4 strict.> The code doesn''t seem to run at all,Running Safari 3.0.3 on Mac OS X, I get an error message of: Syntax error: parse error line 63 Attempting a selection creates an error message of: Can''t find variable getDealers line 92 Which indicates to me that Safari is ignoring all of your in-page script, hence my response above.> and if you select the drop down > on that page, it even crashes Safari 3 on PC.Not on Mac OS, but that''s kinda moot. -- Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---