getscript will load the file over and over without caching it..... On Thursday, June 27, 2013 10:25:10 PM UTC+2, RHC wrote: > > Thanks for your response Anthony and Niphlod. > > For the record I went with dynamically loading css and javascript as > follows: > > /* Load required css dynamically */ > function loadcss(path) { > if (document.createStyleSheet) { /* check if need to use an IE > compatible method */ > document.createStyleSheet(path) /* use IE method */ > } else { > $("head").append($('<link rel="stylesheet" href="' + path + '" > type="text/css" />')) > } > } > > and for javascript > > $.getScript("{{=URL('static','plugin_spectrum/spectrum/spectrum.js')}}", > function() { > /* Some code here to run after script loaded */ > })
-- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.