This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I've got a peculiar requirement... and I know the seasoned ranchers would pounce on me, or show the link to the "don't do" pages... but this somehow seems logical to me, and hence I'm planning to implement.
I have a AWT based interface, on which there is a link, on click of which, a brower window needs to be opened with a few records, internal to this app. The problem is that, I dont want the user to see the address bar in this browser window [its like a popup directly from a swing app]. I somehow cannot use POST here [and dont ask me why.... lets say, that it is a limitation]. I tried googling for it, and found many links wherein I can accomplish this, if I'm launching the browser window from another browser window... but not to my "specialized" case. Can someone help me.... pleeeeeeeeze....
P.S : I need to support both IE and Firefox [only ]
Modern day versions of browsers do not let you hide the address bar for security reasons.
Why are you using a pop up window? You have Ajax and iframes at your finger tips.
Joined: Apr 26, 2007
Thanks for looking into this, Eric.
The problem I have is that I need to show the responses in a web page itself [thats a mandatory customer requirement that I have absolutely no control upon].
These responses are, lets say a person's call history being fetched from a server in the telecom network. I understand that I could use POST here to effectiveness
so that the URL, though visible wouldn't have the input parameters visible to the unsuspecting user [which I cannot use because of another restriction], and then there is Ajax & Iframes,
which does everything behind the scenes, but the response has to be shown again on the webpage, whose address bar, I don't want to show.
could do this job for me ? Google has ditched me... so my only hope left is the ranch.
Joined: Nov 08, 2001
You can not hide the url unless the browser settings are changed.
Ajax can show the response, you just have to write it out.
Iframes can be placed on top of the current window.
Other than that, you have to tell your client they need to manually go and change all the user's browser settings or live with the url.
Ok, then if you run the same application in IE, there is not URL showing on the window.
so I was asked the same question the why it is working in IE as expected and why not it is possible in firefox.
Sorry if I am irritating you.
Joined: Nov 08, 2001
Forefox has a setting to not allow scripts to hide the address bar. IE8 has the setting too. There is NOTHING you can do about it other than go to every single user's machine that uses your site and disable the feature.
As stated many times in this thread and others: Hiding the address bar is NOT a security feature. If you think it is with your application, than your application is designed wrong. Anyone with basic knowledge of browsers can get the address in many ways.
There is no solution to this with modern day browsers. Tell your boss this and say the requirement is impossible in modern day browsers. If he does not believe you, find a new place of employment.