javascript - Polymer do not import script -


it's first time using polymer.and wanted import external scripts, it's not working...

<link rel="import" href="bower_components/polymer/polymer.html"> <dom-module id="geo-dropdown">     <meta http-equiv="content-type" content="text/html; charset=utf-8" />     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>     <script type="text/javascript" src="http://geotree.geonames.org/jquery.rightclick.js"></script>     <script type="text/javascript" src="http://geotree.geonames.org/jquery.scrollto-min.js"></script>     <script type="text/javascript" src="geodropdown.js"></script>      <template>         <!-- entry point (earth id) -->         <fieldset style="display:none;">             <div id="earth" gid="6295630" class="id_6295630"></div>         </fieldset>          <div>             <select id="continent" name="continent"></select>             <select id="country" name="country"></select>             <select id="adm1" name="adm1"></select>             <select id="adm2" name="adm2"></select>             <select id="adm3" name="adm3"></select>             <select id="adm4" name="adm4"></select>             <select id="adm5" name="adm5"></select>             <input id="submitbtn" type="submit" value="submit" onclick="getlocation();"></input>         </div>     </template>     <script>         polymer({             is: "geo-dropdown"         });     </script> </dom-module> 

can me? believe i'm making stupid error, can't find it.

remove type="text/javascript".

best way load dependency different html through import , reuse again when needed. checkout marked-element handle scope.


Comments