The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Disabling the F8 functionality
Posted: 13 Apr 07 8:18 AM
|
When a user presses F8 in the web client, a message box appears displaying all the hidden fields on the form and their values. I would prefer it if this didn't happen, is there a way to disable it?
Thanks. |
|
|
|
Re: Disabling the F8 functionality
Posted: 13 Apr 07 11:13 AM
|
fiogf49gjkf0d Alec,
In the jscript\behaviors folder there is a "pageinfo.htc" file, which is attached to the body element. There is an if statement that evaluates the event.keyCode. The last if traps the keycode of 119, which is the F8 key. Just comment out that section. You way want to comment out the whole thing - F12 and F10 are captured, too.
Personally, I think it's bad form to leave a debugging utility like this behavior in a production release, but it's there. It should at least be harder to invoke.
Jeff
|
|
|
| |
|
Re: Disabling the F8 functionality
Posted: 13 Apr 07 11:28 AM
|
Hopefully not - the comments in the file specify that it's for QA personnel's use. If that's the case, then why include it in the public release?
It's been around since at least 6.2.3; I don't remember if it was in 6.2.2 or prior.
One other way to disable it (that might be easier) is to open the body.css file, and in the BODY section, remove (or comment out) the line
behavior: url(/slxweb/jscript/behaviors/pageinfo.htc);
That would unattach the behavior from the body tag.
Jeff
|
|
|
|
Re: Disabling the F8 functionality
Posted: 13 Apr 07 11:59 AM
|
Hey I think that is cool! I never even knew you could do that in the web client! (Although it would sure seem like something you should be able to easily turn off in a production app!) |
|
|
|
Re: Disabling the F8 functionality
Posted: 13 Apr 07 12:02 PM
|
I guess you're right, it is cool (and has come in handy), but it should be a switch you can easily set somewhere. It's not something that should require code modifications...
Of course, the web client shouldn't be based on such old technology, either. 
Jeff
|
|
|
| |
| |
| |
|