I'm trying to open a file outside of my current application, now it works in all browsers except for IE 6. May I know what I should do for this? (I'm not sure if this is the best section to post into - but i'm using GWT and I don't know where else to ask - I really hope you could help me...)
oh sorry, result is just a string which contains the filename of the file i want to view so in this case, result = "/docs_for_preview/filename", i tried result = "/../docs_for_preview/filename" but still ie6 recognizes the "/../" as a literal string rather than to push the directory one level up
So I would conclude, you were constructing the URL wrong in the Window.open(...) code right?
Joined: Feb 05, 2005
yes, I would think so, I wanted to reach the folder docs_for_preview which is in the same level as where my_app is (my_app is where I call Window.open(..)). I assumed that using the characters "/../" would solve it, since i just have to go one level up from my_app and then I can access docs_for_preview. It worked for others but IE 6 keeps taking "/../" as a literal and treats it as if it's a folder name, i'm not sure why. is there a way to do this in IE 6 that would also do the same for all the other browsers?
Thanks a lot for all your help, I'm sorry if I keep repeating my explanation, just wanted to make sure I get it across.
Hi I'm very sorry for the delayed reply, didn't have internet the past few days, anyway the reason why I can't directly do this: Why cant you do Window.open(" http://localhost:8080/docs_for_preview/result") is because I am not only using my localhost as the container for the application. I am deploying it in some other server and I wouldn't be able to hardcode this: localhost:8080 in there. I am also launching the my_app application, remember in my directory: