Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>Disabling F1, F3, etc. default actions

Disabling F1, F3, etc. default actions

Rob Dixon
11-24-2004, 04:38 PM
I am web enabling existing neural database applications and my users want to operate them as they do at present but over the Internet using a browser, without using a terminal emulator.

I am using an IBM product that allows the applications to be run over the web without any modifications (even without any CGI or Java programming) but this provides buttons rather than function keys. I am modifying my applications further by generating HTML and Javascript on the fly and inserting this into the existing datastream. There is no stored HTML or JS. I can insert new HTML and Javascript into the <body> only.

I wish to provide the existing application functionality for function keys and to disable the default browser actions for those function keys that have them. I have made this work for some keys (more to do) in NS, Firefox, etc. but cannot get it to work with IE.

A snip from my code is
______________________________

document.onkeypress = keyHit;
if (document.layers) {document.captureEvents(Event.KEYDOWN); F01=112;F03=114;F05=116;F12=123;} else {F01=112;F03=114;F05=116;F12=123;}
function keyHit(event)
{if (event) {thisKey = event.which;} else {thisKey = window.event.keyCode;}
if (event.keyCode == event.DOM_VK_F1) {var buttonname = session + "/BUTTON.999-999=*1"; document.getElementsByName(buttonname)[0].click(); event.stopPropagation(); event.preventDefault();}
}
__________________________

I defined "thisKey" in the hope that this would cross browser boundaries, and used (thisKey == F01) instead of
(event.keyCode == event.DOM_VK_F1) but without success.

Has anyone idea what I am doing wrong? I do not have much experience of JS.

Many thanks

Rob Dixon

jbot
11-24-2004, 04:53 PM
I have made this work for some keys (more to do) in NS, Firefox, etc. but cannot get it to work with IE.
______________________________

document.onkeypress = keyHit;
if (document.layers) {document.captureEvents(Event.KEYDOWN); F01=112;F03=114;F05=116;F12=123;} else {F01=112;F03=114;F05=116;F12=123;}
function keyHit(event)
{if (event) {thisKey = event.which;} else {thisKey = window.event.keyCode;}
if (event.keyCode == event.DOM_VK_F1) {var buttonname = session + "/BUTTON.999-999=*1"; document.getElementsByName(buttonname)[0].click(); event.stopPropagation(); event.preventDefault();}
}
__________________________


hi rob, your code only works in Moz based browsers because it's using the Moz only BOM (Browser Object Model).


I defined "thisKey" in the hope that this would cross browser boundaries, and used (thisKey == F01) instead of
(event.keyCode == event.DOM_VK_F1) but without success.

event.keyCode is the M$ method. so you're on the right tracks.

but we need to see more code to help you out further. btw: when posting code, use the code tags to help format your code - it makes it much more reacable :)

Rob Dixon
11-24-2004, 07:32 PM
Hi Jbot

Many thanks for your response.

I am very anxious to solve my problem but do not have enough experience of JS to do it by myself.

Sorry not to use the code tags before but I hadn't spotted how to use them before.

The full code is below. I am not sure that the extra code will help and I am afraid that it isn't very easy to read as the IBM package I mentioned doesn't put in line breaks and neither does my generator. I have put some breaks to help (I hope!).

I have treated the four keys that I have defined so far separately but I do intend to reduce it once I have got it working

All help gratefully received

Rob Dixon


<html>
<head>
<title>AS/400 Workstation Gateway</title>
</head>
<body>
<form METHOD="POST" ACTION="http://000.000.000.000:5024/WSG/021010/QTMTWSG/QTWSG07202">
<input TYPE="HIDDEN" NAME="SESSION" VALUE="/7A421350CB098A4C/5F11B6B3"><pre><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*E" VALUE="Enter"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*U" VALUE="Page Up"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*V" VALUE="Page Down"><input TYPE="RESET" NAME="RESET" VALUE="Reset"><input TYPE="SUBMIT" NAME="SPECIALS" VALUE="Close"><input TYPE="SUBMIT" NAME="SPECIALS" VALUE="Refresh"><input TYPE="SUBMIT" NAME="SPECIALS" VALUE="Time"><input TYPE="SUBMIT" NAME="SPECIALS" VALUE="Style"><input TYPE="SUBMIT" NAME="SPECIALS" VALUE="Tips">
<center><h3>AS/400 Workstation Gateway</h3></center>
<hr>
<select NAME="-General-" SIZE=1><option SELECTED VALUE="-NONE-">-General-<option VALUE="*U">Page Up<option VALUE="*V">Page Down<option VALUE="*C">Clear<option VALUE="*A*<">Record Back<option VALUE="*A*X">PA1<option VALUE="*A*Y">PA2<option VALUE="*A*Z">PA3<option VALUE="*A*T">Print<option VALUE="*A*C">Test Request<option VALUE="*S*E">Host print screen<option VALUE="*A*Q">Attention program<option VALUE="*A*H">System requests<option VALUE="*A*H90*E">Sign off<option VALUE="*X">F12<option VALUE="*3">F3</select><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*H" VALUE="Help">

<pre><font COLOR="WHITE">STIPPLE IV<font COLOR="YELLOW" SIZE="-1"> (An ERROS Application) <font COLOR="BLUE" SIZE="-0"> Rob Dixon </b><font COLOR="NAVY"> Rob Dixon Collection <br> <br> <br><font COLOR="WHITE"> STIPPLE Print catalogue?by Title or STIPPLE http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/# or date) <br><font COLOR="NAVY"> name and/or number <br><script LANGUAGE="JavaScript"> var nHR = document.getElementsByTagName("HR")[0]; var nHRParent = nHR.parentNode; nHRParent.removeChild(nHR); var nh3 = document.getElementsByTagName("h3")[0]; var nh3Parent = nh3.parentNode; nh3Parent.removeChild(nh3); var num; var msgt; var session=(document.getElementsByName('SESSION')[0].value); javascript:window.history.forward(1); void(document.bgColor='C0C0C0');
document.onkeypress = keyHit;
if (document.layers) {document.captureEvents(Event.KEYDOWN); F01=112;F03=114;F05=116;F12=123;} else {F01=112;F03=114;F05=116;F12=123;}
function keyHit(event) {if (event) {thisKey = event.which;} else {thisKey = window.event.keyCode;}
if (event.keyCode == event.DOM_VK_F1) {var buttonname = session + "/BUTTON.999-999=*1"; document.getElementsByName(buttonname)[0].click(); event.stopPropogation(); event.preventDefault();}
if (event.keyCode == event.DOM_VK_F3) {var buttonname = session + "/BUTTON.999-999=*3"; document.getElementsByName(buttonname)[0].click(); event.stopPropogation(); event.preventDefault();}
if (event.keyCode == event.DOM_VK_F5) {var buttonname = session + "/BUTTON.999-999=*5"; document.getElementsByName(buttonname)[0].click(); event.stopPropogation(); event.preventDefault();}
if (event.keyCode == event.DOM_VK_F12) {var buttonname = session + "/BUTTON.999-999=*X"; document.getElementsByName(buttonname)[0].click();}}

function fd() {var buttonname = session + "/BUTTON.999-999=*E"; document.getElementsByName(buttonname)[0].click();} function cbt2(letter, newText) {var buttons2 = session + "/BUTTON.999-999=*" + letter; document.getElementsByName(buttons2)[0].value=newText;} function fm(msg) { if (msg=='1') {msgt="OR double left click on link to navigate"} else if (msg=='2') {msgt="OR double click to continue"} else if (msg=='3') {msgt="OR double click to Navigate or Single click and then select option"} else if (msg=='4') {msgt="OR double click for details or Single click and click on Navigate"; cbt2('I', "NAVIGATE")} else if (msg=='5') {msgt="OR single click and select Option"} else if (msg=='6') {msgt="Type . in main box and ENTER (you can follow . with index name)"} else {msgt="Hover over highlighted links or images for instructions"} javascript:document.getElementById('popupText').innerHTML=msgt;} function fr(num) {document.getElementsByName('AFIELD.007-016')[0].value = num;} function DoOnLoad2(){document.getElementsByName('AFIELD.007-016')[0].focus();} function DoOnLoad(){DoOnLoad2(); cbt2('1', "Help"); cbt2('2', "MSG Help"); cbt2('3', "Return"); cbt2('5', "Refresh"); cbt2('7', "Audit"); cbt2('X', "BACK"); cbt2('Z', "Tasks"); } document.getElementsByTagName("BODY")[0].setAttribute("onLoad","DoOnLoad()"); </SCRIPT><style>A:link {color:blue;text-decoration:none;font-weight:bold;} A:visited {color:blue;text-decoration:none;font-weight:bold;} A:hover {color:blue;text-decoration:underline;} </STYLE>
<font COLOR="FFFF00"> Public Data</font> <input TYPE="TEXT" NAME="AFIELD.007-016" VALUE="" SIZE=64 MAXLENGTH=64>

<font COLOR="FF00FF"> </font> <font COLOR="FF00FF"> </font> http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/# <input TYPE="TEXT" NAME="AFIELD.008-043" VALUE="" SIZE=9 MAXLENGTH=9> On <input TYPE="TEXT" NAME="AFIELD.008-056" VALUE=" 0" SIZE=2 MAXLENGTH=2> / <input TYPE="TEXT" NAME="AFIELD.008-061" VALUE=" 0" SIZE=2 MAXLENGTH=2> / <input TYPE="TEXT" NAME="AFIELD.008-066" VALUE=" 0" SIZE=4 MAXLENGTH=4> @ <input TYPE="TEXT" NAME="AFIELD.008-073" VALUE=" 0" SIZE=2 MAXLENGTH=2> . <input TYPE="TEXT" NAME="AFIELD.008-078" VALUE=" 0" SIZE=2 MAXLENGTH=2>

<table><td width="700" BGCOLOR=YELLOW> Type No. of record (or full or partial record ID) & press ENTER</b></td><td BGCOLOR="WHITE"><a href=http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/# ONMOUSEOVER="fm(6)" ONMOUSEOUT="fm(9)";><u> INDEX</u></a></td></tr><tr><td bgcolor="yellow" id="popupText"></td></table> <br> <br><tt><font COLOR="BLACK"> 1 <a href=http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/# ONMOUSEOVER="fm(2)" onDblClick="fr(1); fd()" ONCLICK="fr(1); fm(4)"; onmouseout="fm(9)";>Ax About ¬Bowles & Carver(small)</a><font COLOR="NAVY"> http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/#5236<br><font COLOR="BLACK"> 2 <a href=http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/# ONMOUSEOVER="fm(2)" onDblClick="fr(2); fd()" ONCLICK="fr(2); fm(4)"; onmouseout="fm(9)";>Ax about</a><font COLOR="NAVY"> published W.Davidson http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/http://www.codingforums.com/archive/index.php/#39261 <br><br> <br> <br> <br> <br> <br> <br> <br><table><td BGCOLOR=FFFFFF><font COLOR="RED"> F10=Change F11=Delete </td></table> <br></b><font COLOR="GREEN">Server= ERROSIV </b> Task= WORKGROUP</b><font COLOR="BLACK"> !END=End_Task !OFF=Sign_off<script LANGUAGE="JavaScript"> DoOnLoad2(); fm(9); </script> </font>

<input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*E" VALUE="Enter"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*U" VALUE="Page Up"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*V" VALUE="Page Down">
<input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*1" VALUE="F01"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*2" VALUE="F02"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*3" VALUE="F03"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*4" VALUE="F04"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*5" VALUE="F05"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*6" VALUE="F06"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*7" VALUE="F07"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*8" VALUE="F08"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*9" VALUE="F09"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*W" VALUE="F10"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*B" VALUE="F11"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*X" VALUE="F12">
<input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*D" VALUE="F13"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*Y" VALUE="F14"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*F" VALUE="F15"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*G" VALUE="F16"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*Z" VALUE="F17"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*I" VALUE="F18"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*J" VALUE="F19"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*K" VALUE="F20"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*L" VALUE="F21"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*M" VALUE="F22"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*N" VALUE="F23"><input TYPE="SUBMIT" NAME="/7A421350CB098A4C/5F11B6B3/BUTTON.999-999=*O" VALUE="F24">
</pre>
</form>
</body>
</html>

Rob Dixon
12-03-2004, 08:42 AM
Hi Jbot and others

I still have not been able to resolve my problem and I am most anxious to find a solution. Does anyone have any suggestions or does anyone one know of code examples that disable function keys in IE. I cannot find any.

Many thanks

Rob Dixon

hemebond
12-04-2004, 12:27 AM
Is there a particular reason you're trying to hijack the users browser rather than provide a sensible alternative that's tailored to the browser/web environment?

Basscyst
12-04-2004, 12:38 AM
Because, from what I understand, this is not just a web page you would happen upon. It's an application in which certain functionalities may need to be disabled. In which case throw all your "But it's my browser window and you can't just. . . ." right out the door. I scrounged this up off the web and modified it a bit, it supposedly works in all major browsers, I tested it in IE 6. Just add the keyCodes to the array of the keys that you wish to disable.


<html>
<head>
<script type="text/javascript">
function showDown(evt) {
evt = (evt) ? evt : ((event) ? event : null);
if (evt)
{
var nokey=new Array();
nokey[0]=112;
nokey[1]=113;
nokey[2]=114;
nokey[3]=115;
nokey[4]=116;
nokey[5]=117;
nokey[6]=118;
nokey[7]=119;
nokey[8]=120;
nokey[9]=121;
nokey[10]=122;
for(var i=0;i<nokey.length;i++)
{
if(evt.keyCode==nokey[i])
{
cancelKey(evt);
}
}
}
}

function cancelKey(evt) {
if (evt.preventDefault) {
evt.preventDefault();
return false;
}
else {
evt.keyCode = 0;
evt.returnValue = false;
}
}

// Additional code for NS
if (navigator.appName=="Netscape") {
document.addEventListener("keypress",showDown,true);
}
document.onkeydown = showDown;
</script>
</head>
<body>
</body>
</html>


Basscyst

hemebond
12-05-2004, 09:01 PM
Because, from what I understand, this is not just a web page you would happen upon. It's an application in which certain functionalities may need to be disabled. In which case throw all your "But it's my browser window and you can't just. . . ." right out the door.I know this is for an in-house application, but even their users have preconceptions on how the page will work and don't expect things to work differently because they looked at a different page. How far do you go? Do you make every page disable different functionality? That can not be good for productivity.

As an example, I use AutoCad here at work, and one of the most annoying things about it is the fact that drawings save the settings they were created with. Anyone opening this drawing suddenly has all their settings changed and has to spend time changing them. Extremely irritating.

joh6nn
12-05-2004, 09:10 PM
yes, but from the way i read this, he's been asked to do it this way. it's a valid argument, but it's most likely out of Rob's hands.

Rob Dixon
12-09-2004, 03:57 PM
Thanks for the replies. I apologise for not responding earlier but have been out of the office.

Basscyst

Thank you so much for your efforts. I will try this out and report back.

All

Some question my right to make the changes, and I don't understand why. I said in my original post -
I am web enabling existing neural database applications and my users want to operate them as they do at present but over the Internet using a browser, without using a terminal emulator.

This is what my users want. I believe that it is up to developers to provide the solutions that users want (if they are sensible ideas!). Technology is simply a means of providing user solutions - technology is not an objective.

Clearly if my users move from one of the neural database pages to another site, then any modifications I have made to the browser will not apply on the other sites, where the browsers will function as usual.

I also explained that all pages are virtual, generated on the fly. I did not explain, athough it follows, that search engines cannot search the sites so individual pages will not be found with search engines. This is very deliberate. Basscyst is right to say
from what I understand, this is not just a web page you would happen upon

There will be a few static home pages that can be accessed by search engines and for these the browser will operate in the normal way. They will point to the main sites but users will have to log on and when they do they will be told what changes have been made to the browser operations.

They will also be told that there is no search engine used as the underlying neural database structure makes them redundant. Search engines can be very frustrating when they find 1 million or more pages to a simple search and when there is no obvious way of changing your search term to cut down the number to a sensible level. With so many sites indexing each other, the number of pages can continue to increase without any additional data being available.

Hemebond

You asked

Is there a particular reason you're trying to hijack the users browser rather than provide a sensible alternative that's tailored to the browser/web environment?

I am trying to tailor the browser to the applications - not the other way round. The browser is a simple way of providing a thin client that requires no support from the server end. The applications have been in use using terminals for many years and the users believe that the interface that they currently get is what they want. They are of course used to using standard browsers when using the internet for other purposes. If anyone does'nt like the result, they don't have to access the sites. Like all technology, inclluding my neural database, browser technology isn't perfect and can be improved. I am sure that the current borwser interface will be replaced one day by something better.

Personally, whilst I understand that pointing and clicking can be very powerful, it is very slow, even for those that are very skilled with a mouse. Being busy moving the pointer is not the same as being productive. It is much quicker, for instance, to click on a function key to go back to an earlier page than to click on the back button. In any event, since my neural database applications are persistent, and the database available over the Web is being continually updated, I have disabled the back button since the virtual page to which that would have pointed may already have changed.

All applicatioins developed using the neural database technology have exactly the same interface and are very productive. If the browser interface was as productive for these applications, I would not change it.

BTW, I have asked a few regular Web users if they know what F1 and F3 do when pressed in their browser and none of them did - they never use them.

Hemebond - you wrote about

a sensible alternative that's tailored to the browser/web environment?

If you know of one, I am ready to listen

Thanks to everyone

Rob Dixon

Willy Duitt
12-09-2004, 04:10 PM
I have disabled the back button since the virtual page to which that would have pointed may already have changed

Please tell us how you disabled the back button...
That's impossible... although you could use location.replace() to replace the location in the browser history, you can not disable returning to a previous page... There's just too many ways available to a user...

Please share with us your secret to disabling the back button...

.....Willy

jbot
12-09-2004, 04:15 PM
Please share with us your secret to disabling the back button.

yeah, you might be worshipped in god-like terms if you've done that across all configurations and platforms :eek:

Rob Dixon
12-09-2004, 05:27 PM
I cannot believe that I know something that you experts don't but I am happy to share what little I do know. However, I didn't claim that I've
done that across all configurations and platforms
I have just tried it on NS 7.2, Firefox 1.0 and I.E 6.0 and it seems to be OK. I have don't have any earlier browsers on this machine.

The answer was in my full code that I posted - the revelant part was javascript:window.history.forward(1);
This doesn't stop you from clicking on the back button but it has no effect - the current page is redisplayed. If you select an earlier page from the drop down list under the back button, the current page is redisplayed - not the one you selected.

In NS & Firefox, if you go to history and select a previous page, you get the message
SNMP: No Local host name could be found, domain name will be used
In I.E, selecting a page from history will cause it to be redisplayed but fortunately my persistent server application will object if the user submits the page again. I didn't say that I had stopped access to history (as yet). I have a vague memory that you can stop the history from being updated but I haven't looked into this yet and don't have any reference books with me today.

Since you are the experts and I am not, it may be that I have missed the point, but it seems to do what I want.

BTW, are you trying to highjack browsers? :)

Rob

Willy Duitt
12-09-2004, 05:42 PM
Don't pat yourself on the back just yet...
You missed the point...

That does not work...
How does that stop: Ctrl & R for one instance of the numerous ways a user can go back??

.....Willy

Rob Dixon
12-09-2004, 06:20 PM
I wasn't patting myself on the back, but I said that I had disabled the back button, not that I had prohibited access to history, so I have yet to be convinced that it is me that has missed the point.

To me the biggest problem is the back button - ordinary users tend not to know about short cut keys but they do know about the back button.

Rob

Rob Dixon
12-09-2004, 06:25 PM
I meant to add, surely it is possible to disable the default action of Ctrl & R using a technique similar to that kindly posted by Basscyst. Certainly I intend in due course to disable most default actions.

Rob

Rob Dixon
12-09-2004, 07:02 PM
Sorry - I keep clicking on Submit before I have marshalled all my thoughts!

The earlier code I submitted disables F5 default action and clicks on a button generated by the IBM package I use. This causes my neural database to resend the page, having re-accessed the data, in case any of it has changed since the page was posted. Assuming that I can disable Ctrl & R, I will change the default to clicking on the same button.

Rob

jbot
12-09-2004, 07:45 PM
I meant to add, surely it is possible to disable the default action of Ctrl & R using a technique similar to that kindly posted by Basscyst. Certainly I intend in due course to disable most default actions.

you can't possibly disable everything for every browser. furthermore, that's highly inaccessible and to some extent illegal.

Willy Duitt
12-09-2004, 07:50 PM
I assume you are talking that you disabled the Backspace button on the keyboard... I doubt you have disabled the Back button on the toolbar or the right click context menu (along with Ctrl & R)...

Besides, I find what you are doing to be wrong and have doubts as to whether this is in the interest of responding to what users want but rather what you want and it seems to me that you are disabling as many builtin browser functions in the interest of protecting your code...

Eitherway, my interest is not so great as to bother finding your site.... So carry on...

.....Willy

hemebond
12-09-2004, 08:03 PM
Hey Rob, why not create a XUL front-end for your application? It may only work for Gecko browsers, but then, do you really want people remote accessing your secure system using IE?

jbot
12-09-2004, 08:12 PM
why not create a XUL front-end for your application? It may only work for Gecko browsers, but then, do you really want people remote accessing your secure system using IE?

you could even plumb for an HTA setup. Mozillla would be better tho, since it would work on any platform.

Basscyst
12-09-2004, 09:30 PM
You guys are nuts. There are certain development environments where the browser becomes your tool to do with what you please. When you don't have to ask who is using what browser, what kind of device is my user using etc. and when designing a client side application. Sometimes an application needs to do certain things, and may not need to do certain things that would be required for normal browsing. When it gets to that point it's not IE, or Mozilla or FF any more,(not that mozilla or FF is capable of things that I'm referring too) its the front end to my application. You don't get pissed at Adobe for making F5 do something different in Photoshop then it does in Windows media player do you? Good call on the hta though, that seems more like what he needs. Wish someone had suggested it to me long ago.

Basscyst

Willy Duitt
12-09-2004, 09:42 PM
Contrary to what you believe Basscyst, this is not on an Intranet to be used by a select group of people expecting their browsers inherent behavior to be disabled...

This is being hosted and served up from the internet... Perhaps restricted to those signing up and paying for a service but the internet just the same... And I can not help but think that since this is probably a paid members only service that the underlying reason to disable as many of the browsers features as possible is to prevent these paid subscribers from accessing the underlying code...

If this was truly a controlled enviorment I would agree with you, but if it was, as Jbot pointed out, you would use an HTA or other application and which case you would not only have the rights to control the interface, but you would have the administrative permissions to do so...

I don't care how Rob packages his actions... I find disabling a users inherent browser behaviors and features deplorable...

.....Willy

Basscyst
12-09-2004, 10:25 PM
Contrary to what you believe Basscyst

Hey!! I don't like your tone. :p :D

Maybe you are right, I re-read the post and didn't notice the thing about it being submitted to search engines etc. I honestly thought he was working within an intranet. I think he is concerned about the f5 and back buttons buttons etc. because the page doesn't really exist, as he states the pages are basically just written directly to the window. If the user presses f5 or back it will just be gone.

Basscyst

jbot
12-09-2004, 10:41 PM
you can see the application here (http://www.erros.co.uk/ERROS_Products/erros_creation.htm)

* hope you don't mind me posting the link, Rob

hemebond
12-09-2004, 11:32 PM
I'm sorry Rob, but that's bad. That's specifically what I was talking about. Trying to bend and twist the browser/html to do something it's not suited for. Seperate frames for next and previous buttons? A whole bunch of buttons without descriptive labels? Plus I get error pages no matter what I click on; and btw, almost everything looks like a link! There's no coherency in the design.

While your system may be really good, you can't just dump it on the net like that. The rules are different online. Standards and conventions have been set.You don't get pissed at Adobe for making F5 do something different in Photoshop then it does in Windows media player do you?Of course not. They're different applications. I expect them to have different options. But this is not an application seperate to my browser. It's a page running inside my browser. I don't expect the chrome to suddenly function differently every time I click a link.

Rob Dixon
12-09-2004, 11:46 PM
Jbot

I said that I would disable MOST default functions (assuming that it is possible). In my English, that does not mean ALL.

I do not see how what I am trying to do can be illegal. By what statute in which court in which country? Is this Scottish law? If "illegal", why do the browser manufacturers support the Javascript facilities that allow their users to behave in an "illegal" fashion?

This has to be total nonsense.

What do you mean by saying that it's "highly inaccessible"?

Willy

If I had intended to discuss the disabling of the Backspace KEY on the keyboard, I would not have said that I had disabled the Back BUTTON. If you had understood my simple code or tried or accepted my description of how I had achieved disabling the back Button, you would understand this. Let me repeat - I have disabled the Backspace Button

I didn't say that I had disabled Right click although I believe that it isn't difficult. However, why would I wan't to protect a simple piece of Javascript. My horizons go way beyond that. If I have skills, it is in databases. Since you haven't criticised my neural database, I can only assume that you have no idea what that is. I would protect the code for that.

You say
Eitherway, my interest is not so great as to bother finding your site.... Firstly, since you seem to want to be pernickety, "eitherway" should be two words. Secondly, it is up to you whether you wish to use my site when available. But I will carry on, with or without your permission. I have spoken to my users. You have not.

Hemebond

You have answered my question - thank you. What is XUL - where do I find out about it? What might its advantages be? I might not like Microsoft or IE but I cannot choose the browser.

Jbot

What is HTA? Where do I find out about it? Is it browser independent?

Basscyst

I find it interesting that the only person that has tried to help solve my problem (and may well have succeeded) is the only one who doesn't attack what I am trying to do. You are quite correct to say that the others are nuts and that the browser is just a tool. At least Jbot is honest enough to say that he wants to be a nutter.


Willy (again)

You are correct that it will be a subscription service - and people, including you, can choose whether they subscribe or not.

Surely, for my applications, I have the right to control the interface. Users have the right to refuse to subscribe.

Basscyst

Clearly you are the only one who understands. Do any of the others actually do anything useful or is their "real world" just making negative posts in a very small environment?


Jbot

No I don't mind.

However, the sample pages are somewhat out of date and, when I have changed the interface, I will update them.

Hemebond

I am not sure that I understand what you mean by separate frames for next and previous buttons. However those sample screens were saved some time ago and were created by the IBM package, not modified by me. if you look at my sample code, you will see that I am now putting labels on the buttons.

You will get errors if yoiu click on the sample pages. They are just samples - not for use. These are persistent applications - you can only use the pages when they are created - not some time later.

I hate to say this but you have prompted it. I have been involved in creating major online systems since about 1967, long before the Internet, browsers etc.. You may conclude, correctly, that I am not young, but I do know what I am doing.

jbot
12-09-2004, 11:58 PM
Jbot

I do not see how what I am trying to do can be illegal. By what statute in which court in which country? Is this Scottish law? If "illegal", why do the browser manufacturers support the Javascript facilities that allow their users to behave in an "illegal" fashion?

This has to be total nonsense.

What do you mean by saying that it's "highly inaccessible"?

it's the Disability Discrimination Act (DDA) and applies all over the UK, no doubt. The US has one too. basically, these laws mandate that people with disabilities will not be discriminated against in the course of their daily lives, and consequently has been extended to cover web pages. accessability is the process by which you make your sites accessible, ie easily used, by those with physical or mental impairments.

if you google on these subjects you'll find out better and fuller descriptions. it's late and i cannae be bothered now.

good luck moving from the prototype interface though. your product sounds really good, just needs some UI treatment though (which, of course, you already know).
:thumbsup:

jbot
12-10-2004, 12:01 AM
oh yes, you can find out about HTAs at MSDN (http://msdn.microsoft.com/workshop/author/hta/hta_node_entry.asp?frame=true). basically, they're separate from browsers, but still use IE as it's built into the OS. they overcome a lot of security issues. to get the best out of them, tho, they still need to be distributed to the user's client machine. very powerful nonetheless.

Willy Duitt
12-10-2004, 12:06 AM
Since you haven't criticised my neural database, I can only assume that you have no idea what that is.


Firstly, do not assume what I know or don't know....
I haven't critisised your database because I haven't looked at... But looking at the code you posted here in this forum I would not expect to see anything noteworthy... Again, do not pat yourself on the back thinking you know something others do not...


If I had intended to discuss the disabling of the Backspace KEY on the keyboard, I would not have said that I had disabled the Back BUTTON. If you had understood my simple code or tried or accepted my description of how I had achieved disabling the back Button, you would understand this. Let me repeat - I have disabled the Backspace Button


Once again you are wrong... I looked at your code and tested it... It does not work on my machine using IE6 SP1... If it works on your machine I would assume that your security settings are much lower than mine.... But there again, if you believe what you are doing will work across platforms or even the same browsers with different configurations, you are more of a pompous fool than I first thought....

I did not bother reading the rest of your post since it is obvious that you are single minded in your purpose and could care less what any other experienced coder or even your users think...

Good luck in your excercise in futility, fore even if you successfully exploit one browser security hole today, a patch will be released, breaking your program in the future....

Have many nice days;
.....Willy

joh6nn
12-10-2004, 12:13 AM
yeah, this thread's done. closed.


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

Link to root
How to group records
Problem with Totaling Total Price
expanding embedded text on same page with no reloading
Textfield
JavaScript is interrupting the loading of images
help with multiple codes

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics