Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
J4y
Contributor
J4y
Posts: 27
Registered: ‎01-19-2013
My Carrier:

jQuery for BB10? Does anything need to be changed?

[ Edited ]
  1. Uncaught ReferenceError: $ is not defined
    1. (anonymous function)
    2. (anonymous function)bbui.js:330
    3. bb.loadScreenbbui.js:322
    4. bb.pushScreenbbui.js:749
    5. onclick(program):1
       
       
      part of jquery code:
       

      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"> </script>

      <script type="text/javascript">

      $("#searchterm").keyup(function(e){
      var q = $("#searchterm").val();
      $.getJSON("http://<url>&callback=?",

      {
      q: q,
      format: "jsonp"
      },

      etc etc

       

      </script>

       

       

      my code works as a webpage, in browser, but breaks in ripple!
       

       thanks in advance.

Please use plain text.
J4y
Contributor
J4y
Posts: 27
Registered: ‎01-19-2013
My Carrier:

Re: jQuery for BB10? Does anything need to be changed?

[ Edited ]

resolved own issue  - had to include the link to jquery in the index.htm file :smileyhappy: duh.

<script type="text/javascript" src="js/jquery.min.js"></script>

 

Please use plain text.