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 ?
On Mon, May 31, 2010 at 6:07 AM, Hemant B. [email protected]
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 S. ------------------------ [email protected]
twitter: @hassan
Hassan S. wrote:
On Mon, May 31, 2010 at 6:07 AM, Hemant B. [email protected]
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 S. ------------------------ [email protected]
twitter: @hassan
I’m lost. What does this have to do with rails? Sounds like a browser
problem. :-/
Larry
On Mon, May 31, 2010 at 7:16 AM, Hemant B. [email protected]
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 S. ------------------------ [email protected]
twitter: @hassan
Hassan S. wrote:
On Mon, May 31, 2010 at 7:16 AM, Hemant B. [email protected]
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 S. ------------------------ [email protected]
twitter: @hassan
Best,
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
Marnen Laibow-Koser wrote:
Hassan S. wrote:
On Mon, May 31, 2010 at 7:16 AM, Hemant B. [email protected]
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 S. ------------------------ [email protected]
twitter: @hassan
Best,
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
On May 31, 6:02 pm, Marnen Laibow-Koser [email protected] wrote:
Hassan S. 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 Links to local pages do not work - MozillaZine Knowledge Base
Fred