473,394 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Javascript validations not working in firefox

in my website javascript validations are not working in firefox, can any any one of u say why ? and if u know the solution tell me
Feb 2 '07 #1
2 1459
acoder
16,027 Expert Mod 8TB
Welcome to The Scripts.

I can't say unless I see the code. Please can you post the relevant code (in code tags please).
Feb 2 '07 #2
this is the code:


Expand|Select|Wrap|Line Numbers
  1. function clickIE4(){
  2. if (event.button==2){
  3. alert(message);
  4. return false;
  5. }
  6. }
  7.  
  8. function clickNS4(e){
  9. if (document.layers||document.getElementById&&!document.all){
  10. if (e.which==2||e.which==3){
  11. alert(message);
  12. return false;
  13. }
  14. }
  15. }
  16.  
  17. if (document.layers){
  18. document.captureEvents(Event.MOUSEDOWN);
  19. document.onmousedown=clickNS4;
  20. }
  21. else if (document.all&&!document.getElementById){
  22. document.onmousedown=clickIE4;
  23. }
  24.  
  25. document.oncontextmenu=new Function("alert(message);return false")
Feb 8 '07 #3

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

Similar topics

3
by: phal | last post by:
Hi all; I code Perl for CGI, I using regular expression to check the validation of user input, because the form is small and it run only from my own computer, anyways if many people using my...
3
by: useenmelately | last post by:
Hello, I am working with asp.net 2.0 and have run into a problem with the custom validators. The client validation functions were originally written in vbscript, but as this is not compatible...
3
by: Bill_W_Stephens | last post by:
I am modifying existing javascript code where the author appears to be passing an entire form to a javascript function called Require(). I want to add a new test: "is @BHFOR.value = blanks". ...
8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
13
by: David Golightly | last post by:
I'm getting my feet wet with JavaScript 1.7 (Firefox 2.0 only) and messing around with it in the console, working through some of the exercises given at...
16
by: Eric | last post by:
I have a user of a web application written in Java/JSP that is unable to login to the site simply because certain links on the page do not run when they are clicked. Other popups using Javascript...
12
by: tim | last post by:
I am using foldoutmenu 3 and am having problems with viewing my menus in firefox. On my sub3 menus i have more than one line of text in some places. firefox does not recognise that there is more...
3
by: daokfella | last post by:
It looks like this is now an embedded resource. So is it permanently hidden? In earlier versions of .Net, I made a simple change to the WebUiValidation.js so that the validation summary was...
84
by: Patient Guy | last post by:
Which is the better approach in working with Javascript? 1. Server side processing: Web server gets form input, runs it into the Javascript module, and PHP collects the output for document prep....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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...

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.