aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes What the purpose of libraries ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "What the purpose of libraries ?" Watch "What the purpose of libraries ?" New topic
Author

What the purpose of libraries ?

Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Hi Kris Hadlock,

What the purpose behind using libraries (prototype... etc) with Ajax?
What libraries do effects on Ajax web application? Is this better to apply instead of without using it? (If it is then why) I am expecting that your book covers these concepts with clear depiction. I believe (Graphical illustration gives you better and quick understanding instead of words)

Thanks,


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Kris Hadlock
Author
Greenhorn

Joined: Nov 14, 2006
Posts: 26
Hi Saif,

If you create a library properly you can reuse it in other Ajax applications. This is the same concept of creating object libraries in other languages. My book covers the creation of components in depth and includes graphics of the finished products in most cases. There are many effects libraries out there, http://script.aculo.us is one of the more popular ones.


<a href="http://www.krishadlock.com" target="_blank" rel="nofollow">www.krishadlock.com</a><br /><a href="http://www.krishadlock.com/blog" target="_blank" rel="nofollow">www.krishadlock.com/blog</a><br /><a href="http://www.studiosedition.com" target="_blank" rel="nofollow">www.studiosedition.com</a><br /><a href="http://www.amazon.com/exec/obidos/redirect?link_code=as2&path=ASIN/0672329123&tag=krishadlock-20&camp=1789&creative=9325" target="_blank" rel="nofollow">Ajax for Web Application Developers</a>
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Thanks for your response Kris,

But I am a beginner to using prototype in Ajax could you please provide me some resources(example) of implementation of it.

Thanks
Kris Hadlock
Author
Greenhorn

Joined: Nov 14, 2006
Posts: 26
Do you mean prototype the library or prototypes as in JavaScript objects?
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Oh! sorry actually I forgot to mansion the library after prototype.

Yeah prototype the library
Kris Hadlock
Author
Greenhorn

Joined: Nov 14, 2006
Posts: 26
I have read about it a bit and it looks very useful, but I have never actually used the library. I'm sure you could find some information on it with a simple Google search. Sorry I couldn't be more helpful.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Thanks Kris,

I think you are right Kris,
Google would be my first place to ask for the example of code.

Thanks again.. Kris to make me clear on my question,
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

Protoype (spelled with a capital P) is about the only Javascript library I've ever found truly useful without being invasive.

But I am a beginner to using prototype in Ajax could you please provide me some resources(example) of implementation of it.


The book Prototype and Scriptaculous Quickly, which I wrote in conjunction with Dave Crane (of Ajax in Action fame) is due to be out in the beginning of 2007, and is currently available from the Manning Early Access Program.

Ajax in Practice, another book I worked on (with Dave Crane and Jord Sonneveld) makes heavy use of Prototype (and takes a survey of other libraries as well) and focuses on using Protoype and Object-oriented Javascript to reign in Ajax complexity. It's also coming out after the 1st of the year, and available now through MEAP.
[ December 21, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by Bear Bibeault:

Protoype (spelled with a capital P) is about the only Javascript library I've ever found truly useful without being invasive.

Ajax in Practice



Thanks for your information bear,

Originally posted by Bear Bibeault:
I'm not big on frameworks. I like Protoype because it's small, and useful and doesn't get in the way, or make me write code that is useless in any other environment.


your above post make me interested into this.

Thanks again bear,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What the purpose of libraries ?