Feature-request - Dynamic sorting of Javascript (tags and files) dependencies
This feature is extracted from a thread in the google group created by me: http://groups.google.com/group/liftweb/browse_thread/thread/34dc88d46001b2c
I would like a way to tell Lift if a javascript file (or just script tag) is dependent of another one - this would allow lift to order the script-tags correctly
Example:
The AutcoComplete widget adds the '/classpath/autocomplete/jquery.autocomplete.js' javascript file to the header - If I want to include a static JS file where I bind some JS functions to the autocomplete text-field I can't select it using it's class as the css selector unless my static file is loaded after the script-tag - This is because the class is added dynamically when the script-tag that calls the autocomplete method executes
N.B: This is not really a big problem in my case because i can just select the text-field using another css selector, but i could imagine that in larger projects this would be a handy thing to have :)
I would like a way to tell Lift if a javascript file (or just script tag) is dependent of another one - this would allow lift to order the script-tags correctly
Example:
The AutcoComplete widget adds the '/classpath/autocomplete/jquery.autocomplete.js' javascript file to the header - If I want to include a static JS file where I bind some JS functions to the autocomplete text-field I can't select it using it's class as the css selector unless my static file is loaded after the script-tag - This is because the class is added dynamically when the script-tag that calls the autocomplete method executes
N.B: This is not really a big problem in my case because i can just select the text-field using another css selector, but i could imagine that in larger projects this would be a handy thing to have :)
Leave a comment
on 2010-02-06 13:52 *
By github.importer
Imported from GitHub: http://github.com/dpp/liftweb/issues/281/find
on 2010-02-26 21:02 *
By Peter Robinett
Related association with ticket #322 was added
on 2010-02-26 21:05 *
By Peter Robinett
Type set to Enhancement
Assigned to set to pr1001
Component changed from None to WebKit
Milestone changed from Post 2.0 to Lift 2.0-M3
Status changed from New to Test
Implemented on branch pr1001_issue_322: http://github.com/dpp/liftweb/commit/e7db6266feeba9b4780015402955f119e60db6f7
on 2010-02-28 16:12 *
By Peter Robinett
Child association with ticket #380 was added
First implementation cherry-picked to branch pr1001_issue_281. Based upon first review (http://reviewboard.liftweb.net/r/252/) more work needs to be done to handle dependencies across multiple snippets on one webpage.
on 2010-04-03 16:54 *
By Peter Robinett
Required documentation set to Wiki
Milestone changed from Lift 2.0-M4 to Lift 2.0-M5