473,320 Members | 1,865 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,320 software developers and data experts.

Date() didn't support mozill fireform

Hi!

pls clear my doubt…..

some more javascript and vbscript function didn’t support in mozilla firefox. How i can solve that problem?

for example:

Date(); — [ var FDate = new Date(document.getElementById('txt_F' + i).value);] didn’t support in firefox.

window.close(); — [Close] didn’t support in firefox.
.
.
.. etc..

how i can solve this problem?

Thanks & Regards,
siva.
Mar 16 '09 #1
6 1685
Dormilich
8,658 Expert Mod 8TB
both Javascript functions are supported by Mozilla. VBScript is exectuted on the server and doesn't reach the browser.

you could have javascript turned off or a syntax error (check in the error console), but I have insufficient info to tell for sure.
Mar 16 '09 #2
Hi!

Pls check my coding... because it isn't working in mozilla firefox... pls give some idea to solve this problem... & help me

Expand|Select|Wrap|Line Numbers
  1.     for (i=1; i<=lastRow; i++) {
  2.       var aRow = document.getElementById('txt_C' + i);
  3.       var FDate = new Date(document.getElementById('txt_F' + i).value);
  4.       var TDate = new Date(document.getElementById('txt_T' + i).value);
  5.       var country = document.getElementById('txt_C' + i).value; 
  6.     country = country.toUpperCase();
  7.  
  8.       if (aRow.value.length <= 0) {
  9.         alert('The country ' + i + ' is empty');
  10.         return;
  11.       }
  12.  
  13.       if (FDate>TDate) {// is not working in mozilla firefox
  14.         alert("You have entered the date incorrectly on Row '" + i +"', please make the necessary amendments.");
  15.         return;    }
  16. }    
  17.  
  18.  
Mar 17 '09 #3
Dormilich
8,658 Expert Mod 8TB
hard to tell without the according HTML. in the first place I'd suspect wrong input type in the function calls.....

if you have a link to the site, it would be helpful.

regards
Mar 17 '09 #4
acoder
16,027 Expert Mod 8TB
Yes, the corresponding HTML with example input would help. Do you get any errors?
Mar 17 '09 #5
Hi!

Thanks for yr reply.
No, i didn't got any error.
Please check this link : http://www.rjc.edu.sg/travel/index.asp --- username: s1
pls help me i want to solve this problem... within two days.

Thanks & regards,
Susan
Mar 18 '09 #6
Dormilich
8,658 Expert Mod 8TB
FireBug shows that your Date objects are invalid. imo, this is due to invalid input. it seems that mm-dd-yyyy is not recognised by Date as valid input.

see Date – MDC
Mar 18 '09 #7

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

Similar topics

3
by: Jim in Arizona | last post by:
I have a gridview that's being populated from an access db query. The problem I'm having is that the date/time fields in access that are populating the gridview are showing both date and time, when...
15
by: Cerebral Believer | last post by:
Hi all, I am a newbie to JavaScript and am just trying to get a script going that will write the ful date and time to each webpage as it is viewed. Can anyone point out what mistakes there are...
6
by: trytobreak | last post by:
Hi All, I am a network administrator in a fairly large software company and I would like to write myself a small utility, which would connect (one by one) to all machines on the network and get...
3
by: dkyadav80 | last post by:
Hi sir, I'have written small function in javascript for date (month and year), this is good working in IE at onclick event and current month-8 , year-2008 are displaying but in firefox3,opera,&...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.