• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

regarding cross-browser functionality or compatibility?

 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would say look at the source code, they have comments.

Eric
 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ill guess that feature-sensing has to be one of the techniques, if not the only technique.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
another way is to use the try{} instead of 'if'

just like in java
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic