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.

inside custom component

Web and WebWorks Development

Reply
J4y
Contributor
Posts: 27
Registered: ‎01-19-2013
My Device: Z10 Dev Edition, Playbook, every BB in-between
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.

J4y
Contributor
Posts: 27
Registered: ‎01-19-2013
My Device: Z10 Dev Edition, Playbook, every BB in-between
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 Smiley Happy duh.

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