[jQuery] jQuery.data() woes

2008-03-09 Thread Julie A
How is jQuery.data() calculating the id? I'm using code simar to: $.fn.myPlugin = function() { return this.each(function() { console.log($.data($(this).parent().parent())); $(this).blur(function(e) { $.myPlugin.test($(this).parent().parent()); }); } };

[jQuery] jQuery.data() woes

2008-03-09 Thread Julie A
How is jQuery.data() calculating the id? I'm using code simar to: $.fn.myPlugin = function() { return this.each(function() { console.log($.data($(this).parent().parent())); $(this).blur(function(e) { $.myPlugin.test($(this).parent().parent()); }); } }; $.my

[jQuery] Problem: Plugin architecture/layout

2008-03-09 Thread Julie A
Hello I'm creating a plugin that enhances an input element in a form. The plugin makes use of, among other things, the keydown event. The problem I'm seeing is that when I run: $.fn.myPlugin = function(e) { return this.each(function() { $input = $(this); $input.keydown(myFun