Open bhellman1 opened 12 years ago
I need to use $.getScript, To use getScript I would need just the URL from Jammit. Is this possible?
$.getScript('ajax/test.js', function(data, textStatus){ console.log('Load was performed.'); });
Thanks
Here's what i did:
<%= javascript_path (Jammit.asset_url("desktop", :js)) %>
Assumes you have :desktop JavaScript packages in config/assets.yml
cheers
I need to use $.getScript, To use getScript I would need just the URL from Jammit. Is this possible?
$.getScript('ajax/test.js', function(data, textStatus){ console.log('Load was performed.'); });
Thanks