[Lift] Re: 2.0-M3 JQuery 1.4
The scaladocs of WithResourceId snippet looks like this: /** * Adds a resource id entity for each URI in order to control browser caching. * The rules of creating unique URI's are defined in LiftRules.attachResourceId function. * * pre * lt;lift:with-resource-id * lt;link ... / * lt;script ... / * lt;/lift:with-resource-id * /pre */ By default LiftRules.attachResourceId attaches a random query string to the URI-s (This is a quantity unique per application lifetime on a single JVM). You can of course register your own function and define your own behavior of how the resources (script and link) are modeled to control caching. On Mar 8, 7:55 pm, Channing Walton channingwal...@mac.com wrote: I am interested in this too but I don't understand the lift:with-resource-id thing, where can I find out more? AnthonyW wrote: Ugh, I must have had a cache issue despite the fact that I certainly did hit refresh before... I am now seeing 1.4.2 JQuery. Regarding lift:with-resource-id, I just added that too. This is definitely a nice feature because caching has been an issue for me. Thanks Marius! -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@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. -- View this message in context:http://old.nabble.com/2.0-M3---JQuery-1.4-tp27802013p27825013.html Sent from the liftweb mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@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.
[Lift] Re: 2.0-M3 JQuery 1.4
? Did you refresh the browser to make sure that the resources is fetched? If you don't want to bother we resource refresh you can try this: lift:with-resource-id // put your script tags here /lift:with-resource-id I just re-tested and it is working just fine for me JQuery14Artifacts points to JQuery 1.4.2 On 6 mar., 06:50, aw anth...@whitford.com wrote: I understand from Issue 363 that I can control which version of JQuery to use. I generally prefer the latest and greatest, and I see that I am using 1.3.2, so I want to set it to 1.4.2. According to this thread: http://groups.google.com/group/liftweb/browse_thread/thread/807a9397f... I thought it was as easy as adding this line to boot: LiftRules.jsArtifacts = JQuery14Artifacts Alas, this doesn't seem to work for me as I am still getting 1.3.2... Also, I see that Issue 311, which was closed in 2.0-M2, says that 1.4.1 is the default. But I don't think that was the case, right? Can somebody please tell me what I am missing? This strikes me as a good Wiki topic. ;-) -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@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.