Closed pfmaggi closed 11 years ago
you should include in layout.erb to use JS API from erb-file
include it before JQM!
Done, and it works. Thanks. so at this moment I've in my layout.erb:
<script src="/public/api/rhoapi-modules.js" type="text/javascript"s></script>
<script src="/public/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="/public/jqmobile/jquery.mobile-1.3.1.min.css">
<link rel="stylesheet" href="/public/css/jqmobile-patch.css">
<script type="text/javascript" charset="utf-8" src="/public/jqmobile/jquery.mobile-1.3.1.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/public/js/jqmobile-patch.js"></script>
~Pietro
using beta47, with the barcode extension in the build.yml.
If I use the following HTML page, and it works:
If I try to use in the following erb files, nothing happens and I don't see any particular message in the log. This is the erb file (in layout.erb I'm NOT loading the rhoapi-modules.js):