0

I am using dashcode for probably the second time in my life. Working on to see the limitations of dashboard widgets.

I have a function being called onclick(). I want to use "$(this)" when it the elements are clicked. I keep getting a generic error "'undefined' is not an object". Once I remove this line:

var t = $(this);

I do not get the error anymore.

I am having zero luck finding information about JQuery limitations in Dashcode widgets.

csteel
  • 373
  • 1
  • 6
  • 16
  • Try loading jQuery in noconflict mode – elclanrs May 16 '12 at 04:19
  • http://api.jquery.com/jQuery.noConflict/ – Tats_innit May 16 '12 at 04:25
  • I thought of that as well but even using jQuery(this) turned up the same error. – csteel May 17 '12 at 02:05
  • Have you included jQuery before that code was executed? – Ross Gledhill May 28 '12 at 15:18
  • What I've observed: I have confirmed that jquery is included and works with alert($().jquery); to spit out version number. To confirm html structure I am trying to query, I did: alert($('body').html()); I did some dom manip before and found that the above revealed that 'body' no longer exists. The whole dom changed. Maybe this helps? – texas-bronius Jan 02 '14 at 16:58

0 Answers0