<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: JavaScript Find Position</title>
	<atom:link href="http://blog.firetree.net/2005/07/04/javascript-find-position/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.firetree.net/2005/07/04/javascript-find-position/</link>
	<description>Sharing useful things with the world.</description>
	<lastBuildDate>Fri, 21 Jan 2011 09:51:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dphir</title>
		<link>http://blog.firetree.net/2005/07/04/javascript-find-position/comment-page-3/#comment-25575</link>
		<dc:creator>dphir</dc:creator>
		<pubDate>Mon, 15 Nov 2010 06:28:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=12#comment-25575</guid>
		<description>&lt;p&gt;hai sir,why the value of x and y position always 0
i want to get selected text from web page..
i have been tried to add obj with this obj = document.getSelection();
but it doesn&#039;t work.
can you help me and give me an advice..
thank you&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>hai sir,why the value of x and y position always 0
i want to get selected text from web page..
i have been tried to add obj with this obj = document.getSelection();
but it doesn&#8217;t work.
can you help me and give me an advice..
thank you</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Rafael</title>
		<link>http://blog.firetree.net/2005/07/04/javascript-find-position/comment-page-3/#comment-25559</link>
		<dc:creator>Rafael</dc:creator>
		<pubDate>Thu, 07 Oct 2010 18:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=12#comment-25559</guid>
		<description>&lt;p&gt;Unbelievable, it works!!! Thanks a lot!!!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Unbelievable, it works!!! Thanks a lot!!!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Paresh</title>
		<link>http://blog.firetree.net/2005/07/04/javascript-find-position/comment-page-3/#comment-25556</link>
		<dc:creator>Paresh</dc:creator>
		<pubDate>Mon, 27 Sep 2010 15:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=12#comment-25556</guid>
		<description>&lt;p&gt;Thanks. You saved my day.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks. You saved my day.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny Boy</title>
		<link>http://blog.firetree.net/2005/07/04/javascript-find-position/comment-page-3/#comment-25554</link>
		<dc:creator>Sunny Boy</dc:creator>
		<pubDate>Sat, 18 Sep 2010 07:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=12#comment-25554</guid>
		<description>&lt;p&gt;Problem Description:
i have a table in the html, each row of the table have hidden division for overlay.Table columns contains [+] buttons. When i click on [+] button i have to show the hidden overlay at [+] button.i mean absolute left and absolute top of overlay should start at [+] button
Can some one help me...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Problem Description:
i have a table in the html, each row of the table have hidden division for overlay.Table columns contains [+] buttons. When i click on [+] button i have to show the hidden overlay at [+] button.i mean absolute left and absolute top of overlay should start at [+] button
Can some one help me&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Mehdi</title>
		<link>http://blog.firetree.net/2005/07/04/javascript-find-position/comment-page-3/#comment-25548</link>
		<dc:creator>Mehdi</dc:creator>
		<pubDate>Mon, 16 Aug 2010 08:02:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=12#comment-25548</guid>
		<description>&lt;p&gt;awesome script. Made my day :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>awesome script. Made my day :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Guy Schalnat</title>
		<link>http://blog.firetree.net/2005/07/04/javascript-find-position/comment-page-3/#comment-25545</link>
		<dc:creator>Guy Schalnat</dc:creator>
		<pubDate>Tue, 03 Aug 2010 15:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=12#comment-25545</guid>
		<description>&lt;p&gt;Even more oo (object oriented) and even shorter (and with the curly braces correctly placed for maintainability and readability, not to fit as much code as possible on a 24x80 terminal screen, which is why we used to put them to the far right):  &lt;/p&gt;

&lt;pre&gt;
function Size(x, y, w, h)
{
    this.x = x;
    this.y = y;
    this.w = w;
    this.h = h;
}
        
function getSize(n)
{
    var s = new Size(n.offsetLeft, n.offsetTop, n.offsetWidth, n.offsetHeight);
    while (n.offsetParent &amp;&amp; n.offsetParent.offsetLeft !== undefined)
    {
        n = n.offsetParent;
        s.x += n.offsetLeft;
        s.y += n.offsetTop;
    }
    return s;
}

var s = getSize(p);
alert(&quot;x = &quot; + s.x + &quot;, y = &quot; + s.y + &quot;, w = &quot; + s.w + &quot;, h = &quot; + s.h);
&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>Even more oo (object oriented) and even shorter (and with the curly braces correctly placed for maintainability and readability, not to fit as much code as possible on a 24&#215;80 terminal screen, which is why we used to put them to the far right):  </p>

<pre>
function Size(x, y, w, h)
{
    this.x = x;
    this.y = y;
    this.w = w;
    this.h = h;
}
        
function getSize(n)
{
    var s = new Size(n.offsetLeft, n.offsetTop, n.offsetWidth, n.offsetHeight);
    while (n.offsetParent &amp;&amp; n.offsetParent.offsetLeft !== undefined)
    {
        n = n.offsetParent;
        s.x += n.offsetLeft;
        s.y += n.offsetTop;
    }
    return s;
}

var s = getSize(p);
alert("x = " + s.x + ", y = " + s.y + ", w = " + s.w + ", h = " + s.h);
</pre>]]></content:encoded>
	</item>
	<item>
		<title>By: dexdix</title>
		<link>http://blog.firetree.net/2005/07/04/javascript-find-position/comment-page-3/#comment-25537</link>
		<dc:creator>dexdix</dc:creator>
		<pubDate>Mon, 05 Jul 2010 12:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=12#comment-25537</guid>
		<description>&lt;p&gt;Does not work on IE 8, Mozila 6, Opera .
It jus not work :D
I realy need this function.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Does not work on IE 8, Mozila 6, Opera .
It jus not work :D
I realy need this function.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: nary</title>
		<link>http://blog.firetree.net/2005/07/04/javascript-find-position/comment-page-3/#comment-25503</link>
		<dc:creator>nary</dc:creator>
		<pubDate>Tue, 08 Jun 2010 12:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=12#comment-25503</guid>
		<description>&lt;p&gt;hai sir,
am selecting my treeview node in my web page,
when i select that node, it will show one div on the top right of the page with some details.&lt;/p&gt;

&lt;p&gt;but i need to get that div at the currect position of my tree node where i selected that node.&lt;/p&gt;

&lt;p&gt;this is my problem.&lt;/p&gt;

&lt;p&gt;plz help.&lt;/p&gt;

&lt;p&gt;thanks in advance.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>hai sir,
am selecting my treeview node in my web page,
when i select that node, it will show one div on the top right of the page with some details.</p>

<p>but i need to get that div at the currect position of my tree node where i selected that node.</p>

<p>this is my problem.</p>

<p>plz help.</p>

<p>thanks in advance.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: HungTD7</title>
		<link>http://blog.firetree.net/2005/07/04/javascript-find-position/comment-page-3/#comment-25498</link>
		<dc:creator>HungTD7</dc:creator>
		<pubDate>Mon, 31 May 2010 14:08:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=12#comment-25498</guid>
		<description>&lt;p&gt;Thanks a lot. It is so helful&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks a lot. It is so helful</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Eli</title>
		<link>http://blog.firetree.net/2005/07/04/javascript-find-position/comment-page-3/#comment-25492</link>
		<dc:creator>Eli</dc:creator>
		<pubDate>Sun, 23 May 2010 09:50:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.firetree.net/?p=12#comment-25492</guid>
		<description>&lt;p&gt;Thx :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thx :)</p>]]></content:encoded>
	</item>
</channel>
</rss>

