Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Javascript code same but output is different on different browsers

Reply
Thread Tools

Javascript code same but output is different on different browsers

 
 
pradeep
Guest
Posts: n/a
 
      06-07-2007
Hello,

Can any one tell me different functions or properties of javascript
which are gives different outputs on different browsers ?

Thanks in advance.
Bye

 
Reply With Quote
 
 
 
 
Erwin Moller
Guest
Posts: n/a
 
      06-07-2007
pradeep wrote:

> Hello,
>
> Can any one tell me different functions or properties of javascript
> which are gives different outputs on different browsers ?
>
> Thanks in advance.
> Bye


Are you asking for a full list of differences in Javascript behaviour?
For every browser / JS implementation?

That is like asking: Pradeep, can you give me a full list of every
difference between every carmodel that was ever made?


I think you better show us what function/behaviour is causing you trouble.

Regards,
Erwin Moller
 
Reply With Quote
 
 
 
 
Julian Turner
Guest
Posts: n/a
 
      06-07-2007
On 7 Jun, 11:48, pradeep <(E-Mail Removed)> wrote:
> Hello,
>
> Can any one tell me different functions or properties of javascript
> which are gives different outputs on different browsers ?
>
> Thanks in advance.
> Bye


If you are talking about the native JavaScript features (as defined in
the ECMA script) then I beleve that all main browsers are now pretty
close. There may be some subtle differences or bugs, but you will
rarely encounter them I would guess.

If you are talking about browser differences in terms of how they
render HTML and CSS, and the differences in the browser object models
they provide to JavaScript, then you could start with:-

http://www.quirksmode.org/

Julian

 
Reply With Quote
 
Dr J R Stockton
Guest
Posts: n/a
 
      06-07-2007
In comp.lang.javascript message <(E-Mail Removed)
glegroups.com>, Thu, 7 Jun 2007 03:48:53, pradeep <(E-Mail Removed)>
posted:

>Can any one tell me different functions or properties of javascript
>which are gives different outputs on different browsers ?


As well as asking whether there is a dependence on browser name &
version, you should IMHO also consider whether there may be a dependence
on OS location or settings for the same browser version - if only to
avoid problems that it may cause.

Number.toFixed() has a browser-dependent bug - see FAQ.
The methods of Date which give Strings give undefined formats, varying
with browser and version and I'd not be much surprised by a location
dependence either (VBScript has dependence on OS settings); the effects
of input strings might vary.

Date.getTimezoneOffset() is necessarily dependent on apparent location,
of course.

For current dates, Date.getYear() can give at least 2 values, maybe a
third.

Date.UTC(Y, M, D) has a bug for D<1 in FireFox.

See <URL:http://www.merlyn.demon.co.uk/js-datex.htm>.

It's a good idea to read the newsgroup c.l.j and its FAQ. See below.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird issue, same code, same browser, two different apache servers,very different css bluebaron HTML 3 11-04-2009 07:13 PM
Avoiding code repetition - same code but different hashes Aldric Giacomoni Ruby 1 02-19-2009 09:12 PM
list of html code same but output is different on different browsers pradeep HTML 3 06-07-2007 05:54 PM
RMI binding to SAME port but DIFFERENT IP address on SAME host Alexander N. Spitzer Java 21 08-16-2004 12:41 AM
same code produces different decimal symbol on different computers with same settings ASP General 2 12-29-2003 02:29 PM



Advertisments