Basically, if i open an txt file in firefox using "File > Open file" then file is opening perfectly. But if i try to open a txt file from a file link on a webpage "file:///path" it is not going anywhere? Can i fix that in ROR ? If i can, then what is the way to get rid of this ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Mon, May 31, 2010 at 6:07 AM, Hemant Bhargava <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Basically, if i open an txt file in firefox using "File > Open file" > then file is opening perfectly. But if i try to open a txt file from a > file link on a webpage "file:///path" it is not going anywhere?? What *exactly* do you mean by "not going anywhere"? Does the file url exactly match a path and file on your system? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan Schroeder wrote:> On Mon, May 31, 2010 at 6:07 AM, Hemant Bhargava <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > wrote: >> Basically, if i open an txt file in firefox using "File > Open file" >> then file is opening perfectly. But if i try to open a txt file from a >> file link on a webpage "file:///path" it is not going anywhere? > > ? What *exactly* do you mean by "not going anywhere"?By this i mean that page is neither reloading nor going to a new tab. Usually if you click on a link something happens from these two. But now its not.> > Does the file url exactly match a path and file on your system?Yeah path is exactly the same.> > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan-- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I''m lost. What does this have to do with rails? Sounds like a browser problem. :-/ Larry -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Mon, May 31, 2010 at 7:16 AM, Hemant Bhargava <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:>>> Basically, if i open an txt file in firefox using "File > Open file" >>> then file is opening perfectly. But if i try to open a txt file from a >>> file link on a webpage "file:///path" it is not going anywhere?> By this i mean that page is neither reloading nor going to a new tab. > Usually if you click on a link something happens from these two. But now > its not.Dunno if it''s a bug or a feature, but yeah, file URLs don''t seem to work in FF (or Safari, for that matter). But if the link is hand-crafted (which is what I tried), I don''t see how it could be related to Rails, in any case. FWIW, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan Schroeder wrote:> On Mon, May 31, 2010 at 7:16 AM, Hemant Bhargava <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > wrote: > >>>> Basically, if i open an txt file in firefox using "File > Open file" >>>> then file is opening perfectly. But if i try to open a txt file from a >>>> file link on a webpage "file:///path" it is not going anywhere? > >> By this i mean that page is neither reloading nor going to a new tab. >> Usually if you click on a link something happens from these two. But now >> its not. > > Dunno if it''s a bug or a feature, but yeah, file URLs don''t seem to work > in FF (or Safari, for that matter). But if the link is hand-crafted > (which is > what I tried), I don''t see how it could be related to Rails, in any > case.I have a dim memory that this is a feature, designed to prevent remote websites from tricking you into editing local files or reading them with JavaScript. But I could be wrong.> > FWIW, > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassanBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser wrote:> Hassan Schroeder wrote: >> On Mon, May 31, 2010 at 7:16 AM, Hemant Bhargava <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> >> wrote: >> >>>>> Basically, if i open an txt file in firefox using "File > Open file" >>>>> then file is opening perfectly. But if i try to open a txt file from a >>>>> file link on a webpage "file:///path" it is not going anywhere? >> >>> By this i mean that page is neither reloading nor going to a new tab. >>> Usually if you click on a link something happens from these two. But now >>> its not. >> >> Dunno if it''s a bug or a feature, but yeah, file URLs don''t seem to work >> in FF (or Safari, for that matter). But if the link is hand-crafted >> (which is >> what I tried), I don''t see how it could be related to Rails, in any >> case.If this is not a feature then how come file opens when a open it with File > Open file. I think there must be some way in rails as well to open it. I''ll be back to you guys after a bit of R & D.. :)> >> >> FWIW, >> -- >> Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >> twitter: @hassan > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org-- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On May 31, 6:02 pm, Marnen Laibow-Koser <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hassan Schroeder wrote:> > I have a dim memory that this is a feature, designed to prevent remote > websites from tricking you into editing local files or reading them with > JavaScript. But I could be wrong. >sounds like http://kb.mozillazine.org/Links_to_local_pages_do_not_work Fred> > > > FWIW, > > -- > > Hassan Schroeder ------------------------ hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > twitter: @hassan > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.