View Full Version : Disabling Open in New window??
venerable bede
08-29-2002, 10:52 AM
Is it possible to disable the "Open in new window" when on a link.
The problem I have is that I have used the get method on a number of my pages. This is not normally a problem as I am using frames however if you open in a new window the user can see the parameters being passed and alter them.
Can anyone help?
Thanks in advance
Bede:(
beetle
08-29-2002, 11:07 AM
You don't need to disable the open new window. What you should just use is a re-framing script. I made one a while back that you are welcome to use. The documentation is in the script
www.peterbailey.net/js/superframes.js
venerable bede
08-29-2002, 01:11 PM
Thanks for the script. I will give it a go but on some occasions some of the users will almost certainly have cookies disabled.
Do you think it would be possible to disable the open in new window facility.
Thanks for your help
beetle
08-29-2002, 02:38 PM
I've also made a version of the script above that uses the search string instead of cookies, and if I remember correctly it was a relatively quick change. Perhaps you can have a go at it.
Roy Sinclair
08-29-2002, 07:29 PM
If you don't want users to see things then you should switch to using POST. Fix the real problem instead of working on the symptoms.
joh6nn
08-29-2002, 07:45 PM
do you mind if i ask why it's a problem if the visitors see and/or alter the paramters? i can't think of a reason why that would be a problem, so i'm curious as to why you need them hidden.
by the way, just disabling the open in new window bit won't help you. i could still go to properties, and get the url of the page. if you really need to hide the parameters, then like Roy said, you're better of using post, instead of get
whammy
08-31-2002, 12:55 AM
The only people that (probably) would ever think to alter "get" parameters are web developers, anyway (or curious kids).
If you're that worried about it, make sure that one of an array of valid parameters is passed when the form is submitted (or just check the URL using a server-side language, and make sure the HTTP_REFERER matches when it's submitted; that's just brainstorming, but I think it would work - needs to be tested).
But I wouldn't worry about it personally...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.