Trying to use jQuery on my Nokia gives me this error: TypeError: “Object $ (result of expression $) does not allow calls.”

StackOverflow https://stackoverflow.com/questions/3426652

Question

Nokia Errorflickr

Here's a simplified demo: http://jsbin.com/emugo3

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
try {
  $(function () {
    $.noop();
    $("#hello").text("it works");
  });
} catch (e) {
  alert(e.message);
}
</script>

The user agent for my phone's browser is:

NokiaE71x/ATT.03.28 Mozilla/5.0 SymbianOS/9.3; U; [en]; Series60/3.2; Profile/MIDP-2.1 Configuration/CLDC-1.1 AppleWebKit/413 (KHTML, like Gecko) Safari/413

I've tried googling this error and I've seen people with really old versions of Safari having the same issue, but I haven't seen a solution yet. Does anyone know anything I can try?

Was it helpful?

Solution

The solution that worked for me is to use version 1.2.6 of jQuery: http://jsbin.com/emugo3/14

That was the latest version that still works with my phone.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top