| 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
|
 |
 |
|
|
subject: regarding cross-browser functionality or compatibility?
|
|
|