Greetings, I was using control.tabs extension of prototype recently, and ran into a rather odd problem with Safari. So, I was having a problem that the tabs didn''t work in Safari, which is a must browser for the app I am developing. I scratched my head, stripped everything down, added the bare bones and I STILL couldn''t get it going in Safari at all. The weirdest part about it, was I downloaded everything from the livepipe.net site and tested it on my own macbook Pro and it wouldn''t work in safari, however if I opened the livepipe site in Safari it did work fine. This baffled me. Finally, I took the same files I developed locally, uploaded them to a web server, and BOOM! It all works fine in Safari. I still have no idea why this would be, but I''d be interested to hear if someone else has had this happen or knows of this development issue in Safari. It took me two f$%^$^%king days to implement some tabs because of it, so I''m just posting this hoping someone else doesn''t run into this development problem, and to see if anyone would know why this would be. Interestingly, I can hide a div locally using regular getElementById in the page, so I wonder why this would only work from a hosted web server and not my my laptop (only broken in safari) Cheers, Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Are you sure Prototype was properly loaded ? On Jul 19, 2:52 am, spiralstarez <spiralsta...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Greetings, I was using control.tabs extension of prototype recently, > and ran into a rather odd problem with Safari. > > So, I was having a problem that the tabs didn''t work in Safari, which > is a must browser for the app I am developing. I scratched my head, > stripped everything down, added the bare bones and I STILL couldn''t > get it going in Safari at all. > > The weirdest part about it, was I downloaded everything from the > livepipe.net site and tested it on my own macbook Pro and it wouldn''t > work in safari, however if I opened the livepipe site in Safari it did > work fine. This baffled me. > > Finally, I took the same files I developed locally, uploaded them to a > web server, and BOOM! It all works fine in Safari. > > I still have no idea why this would be, but I''d be interested to hear > if someone else has had this happen or knows of this development issue > in Safari. It took me two f$%^$^%king days to implement some tabs > because of it, so I''m just posting this hoping someone else doesn''t > run into this development problem, and to see if anyone would know why > this would be. > > Interestingly, I can hide a div locally using regular getElementById > in the page, so I wonder why this would only work from a hosted web > server and not my my laptop (only broken in safari) > > Cheers, > > Jason--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jason, Were you running the app off the local file system when it failed to work? If a file is served from the file system, several things don''t work the same as from a web server, even if serving up static files. You won''t see a HTTP status code, and don''t get a mime type for the resource either. The most common gotcha here is if you''re sending back XML - xhr.responseXML doesn''t get set unless the mime type indicates XML. I don''t know the tabs extension, but I doubt that it uses XML - still, maybe something similar is giving you a problem? There are several small, light, free web servers available these days (I tend to use Tomcat, reflecting my Java bias, I''m sure the list can suggest many more). I''d suggest you always serve your app from a web server during all stages of development, even if you aren''t using any dynamically generated content. HTH Dave On Thursday 19 July 2007 07:52, spiralstarez wrote:> Greetings, I was using control.tabs extension of prototype recently, > and ran into a rather odd problem with Safari. > > So, I was having a problem that the tabs didn''t work in Safari, which > is a must browser for the app I am developing. I scratched my head, > stripped everything down, added the bare bones and I STILL couldn''t > get it going in Safari at all. > > The weirdest part about it, was I downloaded everything from the > livepipe.net site and tested it on my own macbook Pro and it wouldn''t > work in safari, however if I opened the livepipe site in Safari it did > work fine. This baffled me. > > Finally, I took the same files I developed locally, uploaded them to a > web server, and BOOM! It all works fine in Safari. > > I still have no idea why this would be, but I''d be interested to hear > if someone else has had this happen or knows of this development issue > in Safari. It took me two f$%^$^%king days to implement some tabs > because of it, so I''m just posting this hoping someone else doesn''t > run into this development problem, and to see if anyone would know why > this would be. > > Interestingly, I can hide a div locally using regular getElementById > in the page, so I wonder why this would only work from a hosted web > server and not my my laptop (only broken in safari) > > Cheers, > > Jason > > >-- Author: Prototype & Scriptaculous in Action, Ajax in Practice, Ajax in Action --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Dave and Tobie, I was not running anything server side at all, and yes it was just some local HTML and javascript files. Prototype was properly loaded, as everything worked perfectly well in Firefox on a Mac, and Firefox, IE6+ on a PC. It specifically wasn''t working only in Safari for Mac. Thanks for the tip on always using a web server Dave, I would have never thought that it might be something like that when only using static HTML and javascript files. In the meantime, I''ll still be wondering why this was only an issue in Safari only with Prototype, and not with Firefox and others... Regards, Jason On Jul 19, 4:14 am, Dave Crane <d...-Sy7q136SasSXmMXjJBpWqg@public.gmane.org> wrote:> Jason, > > Were you running the app off the local file system when it failed to work? If > a file is served from the file system, several things don''t work the same as > from a web server, even if serving up static files. You won''t see a HTTP > status code, and don''t get a mime type for the resource either. > > The most common gotcha here is if you''re sending back XML - xhr.responseXML > doesn''t get set unless the mime type indicates XML. I don''t know the tabs > extension, but I doubt that it uses XML - still, maybe something similar is > giving you a problem? > > There are several small, light, free web servers available these days (I tend > to use Tomcat, reflecting my Java bias, I''m sure the list can suggest many > more). I''d suggest you always serve your app from a web server during all > stages of development, even if you aren''t using any dynamically generated > content. > > HTH > > Dave > > On Thursday 19 July 2007 07:52, spiralstarez wrote: > > > Greetings, I was using control.tabs extension of prototype recently, > > and ran into a rather odd problem with Safari. > > > So, I was having a problem that the tabs didn''t work in Safari, which > > is a must browser for the app I am developing. I scratched my head, > > stripped everything down, added the bare bones and I STILL couldn''t > > get it going in Safari at all. > > > The weirdest part about it, was I downloaded everything from the > > livepipe.net site and tested it on my own macbook Pro and it wouldn''t > > work in safari, however if I opened the livepipe site in Safari it did > > work fine. This baffled me. > > > Finally, I took the same files I developed locally, uploaded them to a > > web server, and BOOM! It all works fine in Safari. > > > I still have no idea why this would be, but I''d be interested to hear > > if someone else has had this happen or knows of this development issue > > in Safari. It took me two f$%^$^%king days to implement some tabs > > because of it, so I''m just posting this hoping someone else doesn''t > > run into this development problem, and to see if anyone would know why > > this would be. > > > Interestingly, I can hide a div locally using regular getElementById > > in the page, so I wonder why this would only work from a hosted web > > server and not my my laptop (only broken in safari) > > > Cheers, > > > Jason > > -- > Author: Prototype & Scriptaculous in Action, Ajax in Practice, Ajax in Action--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Find a failing test case (i.e. localize the issue) and we''ll sure lok into it. Regards, Tobie On Jul 19, 1:21 pm, spiralstarez <spiralsta...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Dave and Tobie, > > I was not running anything server side at all, and yes it was just > some local HTML and javascript files. Prototype was properly loaded, > as everything worked perfectly well in Firefox on a Mac, and Firefox, > IE6+ on a PC. It specifically wasn''t working only in Safari for Mac. > > Thanks for the tip on always using a web server Dave, I would have > never thought that it might be something like that when only using > static HTML and javascript files. > > In the meantime, I''ll still be wondering why this was only an issue in > Safari only with Prototype, and not with Firefox and others... > > Regards, > > Jason > > On Jul 19, 4:14 am, Dave Crane <d...-Sy7q136SasSXmMXjJBpWqg@public.gmane.org> wrote: > > > Jason, > > > Were you running the app off the local file system when it failed to work? If > > a file is served from the file system, several things don''t work the same as > > from a web server, even if serving up static files. You won''t see a HTTP > > status code, and don''t get a mime type for the resource either. > > > The most common gotcha here is if you''re sending back XML - xhr.responseXML > > doesn''t get set unless the mime type indicates XML. I don''t know the tabs > > extension, but I doubt that it uses XML - still, maybe something similar is > > giving you a problem? > > > There are several small, light, free web servers available these days (I tend > > to use Tomcat, reflecting my Java bias, I''m sure the list can suggest many > > more). I''d suggest you always serve your app from a web server during all > > stages of development, even if you aren''t using any dynamically generated > > content. > > > HTH > > > Dave > > > On Thursday 19 July 2007 07:52, spiralstarez wrote: > > > > Greetings, I was using control.tabs extension of prototype recently, > > > and ran into a rather odd problem with Safari. > > > > So, I was having a problem that the tabs didn''t work in Safari, which > > > is a must browser for the app I am developing. I scratched my head, > > > stripped everything down, added the bare bones and I STILL couldn''t > > > get it going in Safari at all. > > > > The weirdest part about it, was I downloaded everything from the > > > livepipe.net site and tested it on my own macbook Pro and it wouldn''t > > > work in safari, however if I opened the livepipe site in Safari it did > > > work fine. This baffled me. > > > > Finally, I took the same files I developed locally, uploaded them to a > > > web server, and BOOM! It all works fine in Safari. > > > > I still have no idea why this would be, but I''d be interested to hear > > > if someone else has had this happen or knows of this development issue > > > in Safari. It took me two f$%^$^%king days to implement some tabs > > > because of it, so I''m just posting this hoping someone else doesn''t > > > run into this development problem, and to see if anyone would know why > > > this would be. > > > > Interestingly, I can hide a div locally using regular getElementById > > > in the page, so I wonder why this would only work from a hosted web > > > server and not my my laptop (only broken in safari) > > > > Cheers, > > > > Jason > > > -- > > Author: Prototype & Scriptaculous in Action, Ajax in Practice, Ajax in Action--~--~---------~--~----~------------~-------~--~----~ 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 tried emailing the author of the Control.Tab extention? Also, I know safari doesnt like cookies unless you use localhost (while testing on your mac), maybe using localhost will clear it up, Library>WebServer>Documents> <put your test files here > then use http://localhost/testfile.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Also enable the dev console in safari by: http://blog.neatlysliced.com/2007/06/safari-debug-menu/ and see if it reports any js errors. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---