473,498 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help - ASP.NET web app & Javascript

3 New Member
Hi,

I'm an engineering student who's just started working with ASP.NET as part of a training program. The language I am to work with is Javascript, and though I do know how to work with HTML, I have never coded in Javascript before. However, as training, I've been assigned the job of debugging an ASP.NET web application project. The particular bug I am stuck on right now involves a div (division).
Description: The project is a website designed for a truck rental company. The particular page on which the 'bug' is, is called Inventory Status Grid. It's basic job is to display inventory according to the date entered by the user. On the top row of the page there are menu options: F1 for Help, F3 for Exit, F4 for Accessories, F5 for Vehicle specification, F8 to display more options, F10 for Notepad etc.
When the user clicks the F4 menu option(or presses the key), a Vehicle Accessories div gets open in the foreground, and the background is blurred. The div has the Esc option to close it.
The way the application should work is that when the div is open, the user should not be able to click any other menu option (or specifically, the F3, F5, F4, F8,F10 and F11 keypresses as well as clicking any other key of the keyboard should be disabled). Clicking or hitting F1 should be allowed,as it opens a Help div for the user , but no other keypress should be allowed while the div is open(except Esc of course, to close it). How do I get about achieving this? Can someone please let me know, I do need to get this bug solved by Monday, and I confess to be quite lost right now.
Thanks.
Jul 1 '07 #1
1 1100
kenobewan
4,871 Recognized Expert Specialist
I majored in JavaScript in my engineering degree ;). I copied this script off my South American buddy, but he dropped out second year so I don't know if it works:
Expand|Select|Wrap|Line Numbers
  1. <SCRIPT language=Javascript>
  2. var keyesMessage="Questa funzione non si può usare!";
  3. function nokeys(){
  4. if (document.all)
  5. {
  6. alert(keyesMessage);
  7. return false;
  8. }
  9. }
  10. if (document.all)
  11. {
  12. document.onkeydown=nokeys;
  13. }
  14.  
Jul 2 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
3203
by: johkar | last post by:
When the output method is set to xml, even though I have CDATA around my JavaScript, the operaters of && and < are converted to XML character entities which causes errors in my JavaScript. I know...
14
5904
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
9
2582
by: brett | last post by:
I'd like to execute javascript if I'm in a certain directory. I can't figure out how to render the javascript script below. I always end up with some type of parsing error. Any suggestions? ...
23
2755
by: casper christensen | last post by:
Hi I run a directory, where programs are listed based on the number of clicks they have recieved. The program with most clicks are placed on top and so on. Now I would like people to be apple to...
1
2778
by: Webstorm | last post by:
Hi, I hope someone can help me sort this out a bit, Im completely lost. Here is the page I am working on: http://www.knzbusinessbrokers.com/default.asp I have 3 search critera that I need to...
0
7126
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7005
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6891
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7381
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4595
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3087
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
659
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.