aspose file tools
The moose likes Scala and the fly likes Lift and jQuery Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Scala
Reply Bookmark "Lift and jQuery" Watch "Lift and jQuery" New topic
Author

Lift and jQuery

Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

Timothy, in this topic you linked to an informative video on Lift.

In it, you state that Lift's Ajax support leverages underlying JavaScript libraries including jQuery. Such abstraction is great, but is there any issue with using jQuery directly in on-page script to do things that are strictly client-side activities? Or does direct use of jQuery in the templates interfere with Lift's mechanics?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Timothy Perrett
author
Greenhorn

Joined: Nov 21, 2011
Posts: 19
Bear Bibeault wrote:Timothy, in this topic you linked to an informative video on Lift.

In it, you state that Lift's Ajax support leverages underlying JavaScript libraries including jQuery. Such abstraction is great, but is there any issue with using jQuery directly in on-page script to do things that are strictly client-side activities? Or does direct use of jQuery in the templates interfere with Lift's mechanics?


Not at all actually. Its essentially a "take it or leave it" abstraction. It's primary goal is to abstract away parts of Lift plumbing so people can use different libraries without interference from some internally mandated JS lib (resulting in clashing operators etc)... meaning that if you use YUI, Lift will use YUI automatically for its Comet and AJAX actions. You can happily write all the JS code you want in regular JQuery, CoffeeScript or whatever and that won't be affected by Lift at all. You can even have Lift dynamically call your own JS code if you want as well.

Hope that helps

Tim
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

It does.

Nothing aggravates me more than frameworks in which you must "do it our way or the highway". It sounds like Lift's focus and attitude is well in line with what I prefer: "we're here to help when you need it, but otherwise we stay out of your way".
 
IntelliJ Java IDE
 
subject: Lift and jQuery
 
Threads others viewed
How Scala faster than Java?
Is Lift a Scala framework like Play?
Groovy / Scala / Java interest levels from Wikipedia page views
Scala - frameworks
New Scala Forum
IntelliJ Java IDE

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