[jQuery] Re: Can I somehow see what events are binded to a DOM element?

2009-10-29 Thread Bjarki
Using firebug: you can write $('selector').data('events') in the console and run it. then you will get all the events bound to that object. you can click the events in firebug and go to there source to view them. On Oct 28, 11:45 am, jayarjo wrote: > I wonder if I can see somewhere what events a

[jQuery] Re: (validate)

2009-10-08 Thread Bjarki
at function. > > > > On Thu, Oct 8, 2009 at 01:58, Bjarki wrote: > > > Hello Miguel, > > > for part 3, you can use errorPlacement like this. > > > errorPlacement: function(error, element) { > >               if (element.attr('id') === yourItem.at

[jQuery] Re: (validate) JSON Response for remote method

2009-10-08 Thread Bjarki
if the data is on the form {"result":true} you can use var returnObj = JSON.parse(data) if you use http://www.json.org/json_parse.js and return returnObj.result you can also use regards, Bjarki Heiðar On Oct 7, 9:13 am, zeussolo wrote: > Hi all, > > I would like to use the

[jQuery] Re: (validate)

2009-10-07 Thread Bjarki
nsertAfter(givenItem); } else { error.insertAfter(element); } } hope this helps Regards, Bjarki Heiðar On Oct 7, 10:29 pm, msimoes wrote: > Hello, > > I've started to use this plugin within an application I'm buildin

[jQuery] Re: autocomplete question

2009-10-07 Thread Bjarki
I found out there is a formatMatch function. formatMatch: function(row) { return row.N; } it's just not in the documentation On Oct 7, 10:50 am, Bjarki wrote: > I am looking at the auto-complete demo page, > (http://view.jquery.com/trunk/plugins/autocomplete/demo/) on the demo

[jQuery] autocomplete question

2009-10-07 Thread Bjarki
I am looking at the auto-complete demo page, ( http://view.jquery.com/trunk/plugins/autocomplete/demo/ ) on the demo of remote images. the Javascript for that is $("#imageSearch").autocomplete("images.php", { width: 320, max: 4, highlight: false,