<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>hasan&#039;s blog (বল্গ) &#187; javascript</title>
	<atom:link href="http://we4tech.wordpress.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://we4tech.wordpress.com</link>
	<description>work for fun!!!</description>
	<lastBuildDate>Wed, 25 Jan 2012 11:56:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='we4tech.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/77f5f3e5f84d83c83da12540728f5cb3?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>hasan&#039;s blog (বল্গ) &#187; javascript</title>
		<link>http://we4tech.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://we4tech.wordpress.com/osd.xml" title="hasan&#039;s blog (বল্গ)" />
	<atom:link rel='hub' href='http://we4tech.wordpress.com/?pushpress=hub'/>
		<item>
		<title>internet explorer expected identifier, string or number</title>
		<link>http://we4tech.wordpress.com/2008/05/25/internet-explorer-expected-identifier-string-or-number/</link>
		<comments>http://we4tech.wordpress.com/2008/05/25/internet-explorer-expected-identifier-string-or-number/#comments</comments>
		<pubDate>Sun, 25 May 2008 17:14:51 +0000</pubDate>
		<dc:creator>nhm tanveer hossain khan</dc:creator>
				<category><![CDATA[bug]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://hasan.we4tech.com/internet-explorer-expected-identifier-string-or-number/</guid>
		<description><![CDATA[huh, IE is one of those curses which came down to earth from the hell. anyway if you face such problem you should check the following stuffs - 1. this guy described about the first problem 2. here is what i have faced and resolved, i had a javascript code like this - var element &#8230; <a href="http://we4tech.wordpress.com/2008/05/25/internet-explorer-expected-identifier-string-or-number/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=we4tech.wordpress.com&amp;blog=537526&amp;post=411&amp;subd=we4tech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>huh, IE is one of those curses which came down to earth from the hell.<br />
anyway if you face such problem you should check the following stuffs -</p>
<blockquote><p>1. <a href="http://hasan.we4tech.com/dotnetfish.blogspot.com/2007/11/expected-identifier-string-or-number.html">this guy described about the first problem </a><br />
2. here is what i have faced and resolved,</p></blockquote>
<p>i had a javascript code like this -</p>
<blockquote><p>var element = new Element(&#8220;a&#8221;, {<strong>class</strong>: &#8220;keyboard_option_link&#8221;, href: &#8220;javascript: void(0)&#8221;});</p></blockquote>
<p>so IE minds, because i have used &#8220;<strong>class</strong>&#8221; the fix i have used -</p>
<blockquote><p>var element = new Element(&#8220;a&#8221;, {<strong>&#8220;class&#8221;</strong>: &#8220;keyboard_option_link&#8221;, href: &#8220;javascript: void(0)&#8221;});</p></blockquote>
<p>this things now working fine,<br />
best wishes,</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/we4tech.wordpress.com/411/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/we4tech.wordpress.com/411/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/we4tech.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/we4tech.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/we4tech.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/we4tech.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/we4tech.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/we4tech.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/we4tech.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/we4tech.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/we4tech.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/we4tech.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/we4tech.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/we4tech.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/we4tech.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/we4tech.wordpress.com/411/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=we4tech.wordpress.com&amp;blog=537526&amp;post=411&amp;subd=we4tech&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://we4tech.wordpress.com/2008/05/25/internet-explorer-expected-identifier-string-or-number/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4bb774de244da2d6e7f39a189b905077?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hasan</media:title>
		</media:content>
	</item>
		<item>
		<title>uncaught exception: Permission denied to get property Object.constructor</title>
		<link>http://we4tech.wordpress.com/2007/12/30/uncaught-exception-permission-denied-to-get-property-objectconstructor/</link>
		<comments>http://we4tech.wordpress.com/2007/12/30/uncaught-exception-permission-denied-to-get-property-objectconstructor/#comments</comments>
		<pubDate>Sun, 30 Dec 2007 07:58:14 +0000</pubDate>
		<dc:creator>nhm tanveer hossain khan</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://hasan.we4tech.com/uncaught-exception-permission-denied-to-get-property-objectconstructor/</guid>
		<description><![CDATA[seems you are getting &#8220;uncaught exception: Permission denied to get property Object.constructor&#8221; while you are  executing some javascript which was instantiating some objects and during that time it stucked with some exception. for example function get(pUpdate, pUrl, pParams) { new Ajax.Updater(pUpdate, pUrl, {parameters: pParams}); } if you want to regenerate this exception you can invoke &#8230; <a href="http://we4tech.wordpress.com/2007/12/30/uncaught-exception-permission-denied-to-get-property-objectconstructor/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=we4tech.wordpress.com&amp;blog=537526&amp;post=390&amp;subd=we4tech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>seems you are getting &#8220;uncaught exception: Permission denied to get property Object.constructor&#8221; while you are  executing some javascript which was instantiating some objects and during that time it stucked with some exception.</p>
<p>for example</p>
<p>function get(pUpdate, pUrl, pParams) {<br />
new Ajax.Updater(pUpdate, pUrl, {parameters: pParams});<br />
}</p>
<p>if you want to regenerate this exception you can invoke this function with the following arguments -</p>
<p>get(&#8220;abc&#8221;, &#8220;http://abc&#8221;)</p>
<p>so why this crap ?</p>
<p>the main reason is in your code where you mentioned about &#8220;parameters&#8221; and which is not supposed to be null. you better write the following code -</p>
<p>function get(pUpdate, pUrl, pParams) {<br />
var options = new Array();<br />
if (pParams != null) {<br />
options["parameters"] = pParams;<br />
}</p>
<p>new Ajax.Updater(pUpdate, pUrl, options);<br />
}<br />
that will take away your javascript exception.</p>
<p>best wishes,<!--ad04f3532ed57400b9d6076e25c5c38a--></p>
</p>
<p><!--f73179b3f04d1c7c82ca5411ae48fd2f-->
</p>
<p><!--49e0d34ca2cd0a35fe5fa98e268ea7a0--></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/we4tech.wordpress.com/390/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/we4tech.wordpress.com/390/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/we4tech.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/we4tech.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/we4tech.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/we4tech.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/we4tech.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/we4tech.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/we4tech.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/we4tech.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/we4tech.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/we4tech.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/we4tech.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/we4tech.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/we4tech.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/we4tech.wordpress.com/390/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=we4tech.wordpress.com&amp;blog=537526&amp;post=390&amp;subd=we4tech&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://we4tech.wordpress.com/2007/12/30/uncaught-exception-permission-denied-to-get-property-objectconstructor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4bb774de244da2d6e7f39a189b905077?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hasan</media:title>
		</media:content>
	</item>
		<item>
		<title>Google map: map.setCenter(latLng, zoomLevel)</title>
		<link>http://we4tech.wordpress.com/2007/04/12/google-map-mapsetcenterlatlng-zoomlevel/</link>
		<comments>http://we4tech.wordpress.com/2007/04/12/google-map-mapsetcenterlatlng-zoomlevel/#comments</comments>
		<pubDate>Thu, 12 Apr 2007 06:12:10 +0000</pubDate>
		<dc:creator>nhm tanveer hossain khan</dc:creator>
				<category><![CDATA[gmap]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web trends]]></category>

		<guid isPermaLink="false">http://hasan.we4tech.com/google-map-mapsetcenterlatlng-zoomlevel</guid>
		<description><![CDATA[Recently i am playing with Google map. it is really fun. i am thinking i will share my experience through my blog. problem: i want to set a center point answer: you can use map.setCenter(new GLatLng(35.746512259918504,-42.1875), 2); here 35.xxx is lat, -42.xx is lng  and 2 is zoom level. how to use: 1. you can &#8230; <a href="http://we4tech.wordpress.com/2007/04/12/google-map-mapsetcenterlatlng-zoomlevel/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=we4tech.wordpress.com&amp;blog=537526&amp;post=323&amp;subd=we4tech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently i am playing with Google map. it is really fun. i am thinking i will share my experience through my blog.</p>
<p><em><strong>problem: </strong></em>i want to set a center point<br />
<em><strong>answer: </strong></em>you can use map.setCenter(new GLatLng(35.746512259918504,-42.1875), 2);<br />
here 35.xxx is lat, -42.xx is lng  and 2 is zoom level.</p>
<p><u><em><strong>how to use:<br />
</strong></em></u><br />
1. you can use <strong>&#8220;setCenter&#8221;</strong> when you instantiating an map object. for example:<br />
<strong>var map = new GMap2(&#8230;);<br />
map.setCenter(..);<br />
</strong></p>
<p>2. you can use after completing your initial process. for example:<br />
<strong>setCenter</strong> after loading marker from <strong>GDowloadUrl</strong>.</p>
<p>best of luck <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
</p>
<p><!--ce82103688163728253a1b0169b2a4fc-->
</p>
<p><!--3936dc7f810ec2146c633bf26db60cb0--></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/we4tech.wordpress.com/323/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/we4tech.wordpress.com/323/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/we4tech.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/we4tech.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/we4tech.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/we4tech.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/we4tech.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/we4tech.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/we4tech.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/we4tech.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/we4tech.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/we4tech.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/we4tech.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/we4tech.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/we4tech.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/we4tech.wordpress.com/323/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=we4tech.wordpress.com&amp;blog=537526&amp;post=323&amp;subd=we4tech&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://we4tech.wordpress.com/2007/04/12/google-map-mapsetcenterlatlng-zoomlevel/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4bb774de244da2d6e7f39a189b905077?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hasan</media:title>
		</media:content>
	</item>
		<item>
		<title>Customize HTML file field</title>
		<link>http://we4tech.wordpress.com/2006/08/21/customize-html-file-field/</link>
		<comments>http://we4tech.wordpress.com/2006/08/21/customize-html-file-field/#comments</comments>
		<pubDate>Mon, 21 Aug 2006 03:48:39 +0000</pubDate>
		<dc:creator>nhm tanveer hossain khan</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://somewhereindhaka.net/hasan_blog/customize-html-file-field</guid>
		<description><![CDATA[Hi, as we know html file field is unchangeable. you can change border style but you can&#8217;t use a button instead of traditional style. recently i have introduced an article which clearly illustrated several examples. though you can read it from here i am also giving my code snap. here is live example: customized_file_field.html &#60;html&#62; &#8230; <a href="http://we4tech.wordpress.com/2006/08/21/customize-html-file-field/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=we4tech.wordpress.com&amp;blog=537526&amp;post=119&amp;subd=we4tech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>as we know html file field is unchangeable. you can change border style but you can&#8217;t use a button instead of traditional style.</p>
<p>recently i have introduced <a title="quirksmode.org/dom/inputfile.html" target="_blank" href="http://quirksmode.org/dom/inputfile.html">an article </a> which clearly illustrated several examples.</p>
<p>though you can read it from <a href="http://quirksmode.org/dom/inputfile.html">here</a>  i am also giving my code snap.</p>
<blockquote><p>here is live example:  <a id="p130" title="customized file field" href="http://somewhereindhaka.net/hasan_blog/wp-content/uploads/2006/08/customized_file_field.html">customized_file_field.html</a></p></blockquote>
<blockquote>
<pre /></blockquote>
<blockquote><p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;style type="text/css"&gt;<br />
.file {<br />
position: relative;<br />
-moz-opacity:0;<br />
filter:alpha(opacity: 0);<br />
opacity: 0;<br />
z-index: 2;<br />
left: -160px;<br />
}<br />
.fake {<br />
position: absolute;<br />
top: 0px;<br />
left: 0px;<br />
z-index: 1;<br />
}<br />
&lt;/style&gt;</p>
<p>&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form action="null" style="position: relative;"&gt;<br />
&lt;input type="file" name="file" class="file" id="upload-file" /&gt;<br />
&lt;div class="fake"&gt;<br />
&lt;input type="button" value="upload" /&gt;<br />
&lt;input type="submit" value="submit" /&gt;<br />
&lt;/div&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<p><a id="p130" title="customized_file_field" href="http://somewhereindhaka.net/hasan_blog/customized_file_field.html" /></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/we4tech.wordpress.com/119/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/we4tech.wordpress.com/119/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/we4tech.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/we4tech.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/we4tech.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/we4tech.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/we4tech.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/we4tech.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/we4tech.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/we4tech.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/we4tech.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/we4tech.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/we4tech.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/we4tech.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/we4tech.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/we4tech.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=we4tech.wordpress.com&amp;blog=537526&amp;post=119&amp;subd=we4tech&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://we4tech.wordpress.com/2006/08/21/customize-html-file-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4bb774de244da2d6e7f39a189b905077?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hasan</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript: Delete child element with Effect.Fade (Effect.Fade and Element.remove)</title>
		<link>http://we4tech.wordpress.com/2006/07/23/javascript-delete-child-element-with-effectfade/</link>
		<comments>http://we4tech.wordpress.com/2006/07/23/javascript-delete-child-element-with-effectfade/#comments</comments>
		<pubDate>Sun, 23 Jul 2006 04:32:07 +0000</pubDate>
		<dc:creator>nhm tanveer hossain khan</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://hasan.we4tech.com/javascript-delete-child-element-with-effectfade</guid>
		<description><![CDATA[hi all, let&#8217;s think you have a list of rows&#8230; when user click on delete button it sends a Ajax post request on server&#8230; after receiving JSON or XML response&#8230; it display a visual effect of destroying that row&#8230; using Script.aculo.us you can make it with in a few seconds&#8230; new Effect.Fade(&#8230;) right!!! but i &#8230; <a href="http://we4tech.wordpress.com/2006/07/23/javascript-delete-child-element-with-effectfade/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=we4tech.wordpress.com&amp;blog=537526&amp;post=113&amp;subd=we4tech&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>hi all,<br />
let&#8217;s think you have a list of rows&#8230; when user click on delete button it sends a Ajax post request on server&#8230; after receiving JSON or XML response&#8230; it display a visual effect of destroying that row&#8230;<br />
using Script.aculo.us you can make it with in a few seconds&#8230; <strong>new Effect.Fade(&#8230;) </strong>right!!!<br />
but i think you DOM tree will not get that advantage as you are giving to your user&#8230; user could see visual disappearance of some object&#8230; but it is actually not deleting from DOM tree&#8230; you just hidding them&#8230; !!!</p>
<p>though you can use <strong>element.removeChid( childElement ) </strong>&#8230; but it is not much interactive approach as you want to show a visiual effect&#8230;.</p>
<p>so here is my code snap&#8230; hope you will enjoy&#8230; and your visitor will happy as well as DOM tree will happy&#8230;</p>
<pre>deleteElement: function(divId, options) {
try {
var element = $(divId);
var oldOpacity = element.getInlineOpacity();
var options = Object.extend({
from: element.getOpacity() || 1.0,
to:   0.0,
afterFinishInternal: function(effect) {
if(effect.options.to!=0) return;
var rootElement = $(BnChat.userListDiv);
rootElement.removeChild(effect.element);
effect.element.setStyle({opacity: oldOpacity});
}}, arguments[1] || {});
return new Effect.Opacity(element,options);
}
catch(e) {
// goes your exception handling
}
},</pre>
<p><!--acf6ba3f06ba33968be7eb5e2ead2ce5--></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/we4tech.wordpress.com/113/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/we4tech.wordpress.com/113/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/we4tech.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/we4tech.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/we4tech.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/we4tech.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/we4tech.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/we4tech.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/we4tech.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/we4tech.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/we4tech.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/we4tech.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/we4tech.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/we4tech.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/we4tech.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/we4tech.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=we4tech.wordpress.com&amp;blog=537526&amp;post=113&amp;subd=we4tech&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://we4tech.wordpress.com/2006/07/23/javascript-delete-child-element-with-effectfade/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4bb774de244da2d6e7f39a189b905077?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hasan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
