473,626 Members | 3,936 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 1115
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
3216
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 that I could externalize my JavaScript, but that will not be practical throughout this application. Is there any way to get around this issue? Xalan processor. Stripped down stylesheet below along with XHTML output. <?xml version='1.0'?>...
14
5920
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 because of this, so I hope some of you gurus can enlighten me with this :) In what circumstances can the "&amp;" in the source code be involuntary changed to "&" by a browser when or other software, when editing and uploading the file to the web...
9
2592
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? <?php $url= $_SERVER; $isWPAdmin = strstr($url, "wp-admin"); if($isWPAdmin) {} else {
23
2783
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 place a link on there site so people can vote for their program, "ad a click". eg someone clicks the link on some page and it counts +1 click on my page. if some one clicks the link below it will count a click on my page.
1
2789
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 use when querying the database. Right now it is only looking for a match on one of those dropdowns and not all 3. can anyone help? Here is the code: <form BOTID="0" METHOD="POST" action="businessforsale_interface/Results/test3.asp">
0
8266
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8705
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8638
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8365
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
4092
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2626
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.