aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes regarding cross-browser functionality or compatibility? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "regarding cross-browser functionality or compatibility?" Watch "regarding cross-browser functionality or compatibility?" New topic
Author

regarding cross-browser functionality or compatibility?

Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1291

Hi Ranchers,

Prototype, dojo, jquery or may be other frameworks, enables you to deal with Ajax calls in a very easy way and it is also deal with cross-browser complaint.

My Question is,
what type of techniques they used in the liabraries to make it compatible with others browers?

Thanks,
[ April 13, 2007: Message edited by: Saif uddin ]

Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 14999
I would say look at the source code, they have comments.

Eric
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 1985
Ill guess that feature-sensing has to be one of the techniques, if not the only technique.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1291

Thanks for your quick reply Eric,

I am going to look these libraries source code (i don't know whether i can understand it or not) but can you give me any example of it.

Thanks in Advance.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1291

Originally posted by Jesus Angeles:
Ill guess that feature-sensing has to be one of the techniques, if not the only technique.


Yeah it may be..

is this like creating a XMLHttpRequest Object with other browser supported methods if it not supported this JavaScript Object.
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 1985
You will need to understand OO javascript as it is used in the libraries.

http://java.sun.com/javascript/ajaxinaction/Ajax_in_Action_ApB.html
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1291

Thanks for link Jesus,

thing which i need look before library..

Thanks again.
[ April 13, 2007: Message edited by: Saif uddin ]
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 1985
Originally posted by Saif uddin:


Yeah it may be..

is this like creating a XMLHttpRequest Object with other browser supported methods if it not supported this JavaScript Object.


Yes, it is like that.

You can ask javascript if a feature is supported.

Like,

if aaa
<do it IE way>
else if bbb
<do it Firefox way>
else
<for some reason, like very old browsers, no such feature supported>
endif
endif
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1291

Originally posted by Jesus Angeles:

Yes, it is like that.
You can ask javascript if a feature is supported.

Like,
if aaa
<do it IE way>
else if bbb
<do it Firefox way>
else
<for some reason, like very old browsers, no such feature supported>
endif
endif



Thanks Jesus,
this is what I am looking for...
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 1985
another way is to use the try{} instead of 'if'

just like in java
 
IntelliJ Java IDE
 
subject: regarding cross-browser functionality or compatibility?
 
Threads others viewed
Trouble with getElementById() in Firefox
hide dropdown list
jQuery in Action - is jQuery an abstraction
How to tilt cloumn text to an angle
WA #1.....word association
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture