This worked perfectly thank you.
-Dave
On Sep 13, 2:33 pm, Indrajit Raychaudhuri indraj...@gmail.com wrote:
David,
1. Lift includes jquery-1.3.2, just do:
script id=jquery src=/classpath/jquery.js type=text/
javascript/script and your done.
2. For the other stuff:
a. Put the files in src/main/resources/toserve/ui (e.g., src/main/
resources/toserve/ui/ui.tabs.js)
b. Add them to ResourceServer.allowedPaths by adding this to Boot:
ResourceServer.allow {
case ui :: _ = true
}
c. Refer them as script id=jquery src=/classpath/ui/ui.tabs.js
type=text/javascript/script
Hope this helps.
Cheers, Indrajit
On Sep 13, 9:43 am, David david.b...@gmail.com wrote:
I'd like to use the latest jquery, 1.3.2. I'm new to both jquery and
lift but I like what I see!
script type=text/javascript src=../js/jquery-1.3.2.js/
script
script type=text/javascript src=../js/ui/ui.core.js/script
script type=text/javascript src=../js/ui/ui.tabs.js/script
script id=json src=/classpath/json.js type=text/javascript/
script type=text/javascript
$(function() {
$(#tabs).tabs();
});
/script
/head
body
lift:surround with=default at=content
I get this error:
$(#tabs).tabs is not a functionhttp://localhost:8080/hello
Line 33
Is it possible to mix separately downloaded jquery? If I save the
'source' of the html after lift has processed, from the browser,
jquery tabs are working. But from the dynamic jetty instance, the
tabs do not work and I get that error.
Thanks for any help you can provide.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---