[jQuery] Re: Is it possible to do something like Firebug `inspect` function with JQuery?

2007-09-09 Thread howa
Yes, this is exactly what I want. This tool is really useful. Thanks. On 9月8日, 下午11時45分, Tzury <[EMAIL PROTECTED]> wrote: > > When mouse over an object, say a DIV for simplicity, I can use JQuery > > to get its absolute position in DOM tree, > > There is Modi (http://slayeroffice.com/tools/modi

[jQuery] Re: Is it possible to do something like Firebug `inspect` function with JQuery?

2007-09-09 Thread Tzury
> When mouse over an object, say a DIV for simplicity, I can use JQuery > to get its absolute position in DOM tree, There is Modi (http://slayeroffice.com/tools/modi/v2.0/modi_help.html) not jQuery but still JavaScript

[jQuery] Re: Is it possible to do something like Firebug `inspect` function with JQuery?

2007-09-09 Thread Joan Piedra
Do you mean its top, left, right and bottom values? $('div').mouseover(function(){ var $this = $(this); var top = $this.css('top'); var bottom = $this.css('bottom'); var left = $this.css('left'); var right = $this.css('right'); console.log($this, top, bottom, left, right);

[jQuery] Re: Is it possible to do something like Firebug `inspect` function with JQuery?

2007-09-09 Thread Rafael Santos
I've done a function like this: myId = function(me){ return me.id ? '#' + me.id : '' } myTag = function(me){ return me.tagName ? me.tagName.toLowerCase() : '' } myClass = function(me){ return me.className ? '.' + me.className.split(' ').join('.') : '' } breadcrumbs = function(me){ var path = [m

[jQuery] Re: Is it possible to do something like Firebug `inspect` function with JQuery?

2007-09-09 Thread Richard D. Worth
Something like this? $('#myDiv').click(function() { var path = [this.tagName + '#' + this.id]; $(this).parents().each(function() { path[path.length] = this.tagName; }); alert(path.join(' < ')); }); - Richard On 9/8/07, howa <[EMAIL PROTECTED]> wrote: > > > When mouse over an object,