<?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/"
><channel><title>Developer Code book &#187; JavaScript</title> <atom:link href="http://wordpressapi.com/category/javascript/feed/" rel="self" type="application/rss+xml" /><link>http://wordpressapi.com</link> <description>Wordpressapi.com is focused on Wordpress API, wordpress news, wordpress themes, wordpress plugins, wordpress tips, wordpress tutorials, wordpress design wordpress templates, wordpress breaking news and web-development. We deliver useful information about wordpress,  wordpress latest trends and wordpress techniques, wordpress useful ideas, wordpress innovative approaches and wordpress tools. Social Media news blog covering cool new websites and social networks: Facebook, Google, Twitter, MySpace and YouTube.  The latest web technology news, via RSS daily.</description> <lastBuildDate>Thu, 09 Sep 2010 10:36:02 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Really Simple History – History for Ajax</title><link>http://wordpressapi.com/2010/08/02/really-simple-history-for-ajax/</link> <comments>http://wordpressapi.com/2010/08/02/really-simple-history-for-ajax/#comments</comments> <pubDate>Mon, 02 Aug 2010 06:19:45 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Ajax]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[history]]></category><guid
isPermaLink="false">http://purab.wordpress.com/?p=15</guid> <description><![CDATA[Ajax (pronounced /ˈeɪˌdʒæks/) (shorthand for Asynchronous JavaScript  and XML) is a group of interrelated web development techniques used on the client-side  to create interactive web applications. With Ajax, web applications can retrieve data from the server  asynchronously in the background without interfering with the display and behavior of the existing page. The use of Ajax.....]]></description> <content:encoded><![CDATA[<p><img
class="alignnone size-full wp-image-4985" title="ajax-image" src="http://wordpressapi.com/files/ajax-image.jpg" alt="" width="316" height="159" /></p><p>Ajax (pronounced /ˈeɪˌdʒæks/) (shorthand for Asynchronous JavaScript  and XML) is a group of interrelated web development techniques used on the client-side  to create interactive web applications. With Ajax, web applications can retrieve data from the server  asynchronously in the background without interfering with the display and behavior of the existing page. The use of Ajax techniques has led to an increase in interactive or dynamic interfaces on web pages. Data is usually retrieved using the XMLHttpRequest object. Despite the name, the use of XML is not actually required, nor do the requests need to be asynchronous.</p><p>If you’re working on Ajax based websites, you’ll always face usability problems when users click on the Back or Forward buttons on the broswer. Using Really Simple History (RSH) allows you over come this issue.</p><p><em>The Really Simple History (RSH) framework makes it easy for AJAX applications to incorporate bookmarking and back and button support. By default, AJAX systems are not bookmarkable, nor can they recover from the user pressing the browser’s back and forward buttons. The RSH library makes it possible to handle both cases.</em></p><p><em>In addition, RSH provides a framework to cache transient session information that persists after a user leaves the web page. This cache is used by the RSH framework to help with history issues, but can also be used by your own applications to improve application performance. The cache is linked to a single instance of the web page, and will disappear when the user closes their browser or clear their browser’s cache.</em></p><p><em>RSH works on Internet Explorer 6+ and Gecko-based browsers, like Firefox. Safari is not supported.</em></p><p>Link: <a
href="http://codinginparadise.org/projects/dhtml_history/#what">Really Simple History</a><br
/> Demo Link: <a
href="http://codinginparadise.org/projects/dhtml_history/testDhtmlHistory.html">testDhtmlHistory.html</a> (try using the browser back button after you get to this demo)</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/08/02/really-simple-history-for-ajax/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>JavaScript/CSS Compression</title><link>http://wordpressapi.com/2010/08/02/javascript-css-compression/</link> <comments>http://wordpressapi.com/2010/08/02/javascript-css-compression/#comments</comments> <pubDate>Mon, 02 Aug 2010 05:46:51 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[code]]></category> <category><![CDATA[compressor]]></category> <category><![CDATA[JS]]></category> <category><![CDATA[tools]]></category> <category><![CDATA[YUI]]></category><guid
isPermaLink="false">http://purab.wordpress.com/2009/09/09/javascriptcss-compression/</guid> <description><![CDATA[Many times we are searching for Javascript and css compression. Few days before i was searching for Jquery JS library compression. Yes there is compressed version available but i want to make some changes in JS files as per my project requirements. So i want to compress my JS and CSS files without getting any.....]]></description> <content:encoded><![CDATA[<p><img
class="alignnone size-full wp-image-4987" title="css-10" src="http://wordpressapi.com/files/css-10.jpg" alt="" width="199" height="253" /></p><p>Many times we are searching for Javascript and css compression.</p><p>Few days before i was searching for Jquery JS library compression.<br
/> Yes there is compressed version available but i want to make some changes in JS files as per my project requirements.<br
/> So i want to  compress my JS and CSS files without getting any error.<br
/> YUI Compressor 2.4.2. is the very nice tool for that. But i dont want to spend time on how YUI compressor is working.</p><p>So here is solution- I got online YUI compressor.<br
/> You can use that:<br
/> <span
style="color: #0000ff;"> http://refresh-sf.com/yui/</span><br
/> It has very nice options.</p><p><a
href="http://compressor.ebiene.de/" target="_blank">http://compressor.ebiene.de/</a></p><p><a
href="http://www.cssdrive.com/index.php/main/csscompressor" target="_blank">http://www.cssdrive.com/index.php/main/csscompressor</a></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/08/02/javascript-css-compression/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Drag &amp; Drop Sortable Lists through JS</title><link>http://wordpressapi.com/2010/08/01/drag-drop-sortable-lists-through-js/</link> <comments>http://wordpressapi.com/2010/08/01/drag-drop-sortable-lists-through-js/#comments</comments> <pubDate>Sun, 01 Aug 2010 06:19:32 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[JavaScript]]></category> <category><![CDATA[drag & drop]]></category> <category><![CDATA[list]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://purab.wordpress.com/?p=14</guid> <description><![CDATA[In 2007 I written this post and again I am publishing this post. Various implementations of Drag &#38; Drop sortable lists using JS and CSS. “In Web applications I’ve seen numerous — and personally implemented a few — ways to rearrange items in a list. All of those were indirect interactions typically involving something like.....]]></description> <content:encoded><![CDATA[<p>In 2007 I written this post and again I am publishing this post.</p><p><img
class="alignnone size-full wp-image-4975" title="drag-drop" src="http://wordpressapi.com/files/drag-drop.jpg" alt="" width="160" height="160" /></p><p>Various implementations of Drag &amp; Drop sortable lists using JS and CSS.</p><p>“<em>In Web applications I’ve seen numerous — and personally implemented a few — ways to rearrange items in a list. All of those were indirect interactions typically involving something like up/down arrows next to each item. Then I came across Simon Cozens’ example of rearranging a list via drag &amp; drop. I was so inspired I had to try it out myself.</em>”</p><p>Link: <a
href="http://tool-man.org/examples/sorting.html">Drag &amp; Drop Sortable Lists with JavaScript and CSS</a></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/08/01/drag-drop-sortable-lists-through-js/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>popup slide effect with only javascript</title><link>http://wordpressapi.com/2010/07/04/popup-slide-effect-javascript-2/</link> <comments>http://wordpressapi.com/2010/07/04/popup-slide-effect-javascript-2/#comments</comments> <pubDate>Sun, 04 Jul 2010 08:16:23 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[JavaScript]]></category> <category><![CDATA[tutorials]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=4051</guid> <description><![CDATA[If you want the nice slide animation effect with javascript. you can use following javascript. Here I am not using any third party javascript library for creating the slide effect. For In page popup slide effect you can use following JavaScript code. id=&#34;popup-container&#34; style=&#34;height:200px;weight:200px;overflow: hidden; display: block; position: absolute; z-index: 1027;&#34;&#62; &#60;a href=&#34;#&#34; onclick=&#34;movead();&#34; &#62;&#60;span&#62;slide&#60;/span&#62;&#60;/a&#62;.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/slide_effect_javascript.png"><img
class="alignnone size-full wp-image-4053" title="slide_effect_javascript" src="http://wordpressapi.com/files/slide_effect_javascript.png" alt="" width="166" height="98" /></a></p><p>If you want the nice slide animation effect with javascript. you can use following javascript. Here I am not using any third party javascript library for creating the slide effect.</p><p>For In page popup slide effect you can use following JavaScript code.</p><pre class="brush: xml;">

id=&quot;popup-container&quot; style=&quot;height:200px;weight:200px;overflow: hidden; display: block; position: absolute; z-index: 1027;&quot;&gt;

&lt;a href=&quot;#&quot; onclick=&quot;movead();&quot; &gt;&lt;span&gt;slide&lt;/span&gt;&lt;/a&gt;

&lt;/div&gt;
</pre><p>and use the following javscript code in your document.</p><pre class="brush: jscript;">

function movead(){
timerID = setInterval(&quot;mocontainer()&quot;, 50);
}

function mocontainer(){
 var popup_element = document.getElementById('popup-container');
 animate_moveit(popup_element,0,-5);
}

function animate_moveit(obj, x, y){
obj.style.left = parseInt(obj.style.left) + x +&quot;px&quot;
obj.style.top = parseInt(obj.style.top)+ y + &quot;px&quot;
}
</pre><p>For changing the slide direction change the values in following line and put in to the mocontainer function</p><p>animate_moveit(popup-element,-5,0);  &#8211; this is for right to left</p><p>animate_moveit(popup-element,0,-5);  &#8211; bottom to top</p><p>You can change that to as per need.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/07/04/popup-slide-effect-javascript-2/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>minimize, restore, maximize and hide functionality with javascript without using jquery</title><link>http://wordpressapi.com/2010/07/04/minimize-restore-maximize-hide-functionality-javascript-jquery/</link> <comments>http://wordpressapi.com/2010/07/04/minimize-restore-maximize-hide-functionality-javascript-jquery/#comments</comments> <pubDate>Sun, 04 Jul 2010 07:58:31 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[JavaScript]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[javascript tips]]></category> <category><![CDATA[jquery]]></category> <category><![CDATA[minimize]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=4048</guid> <description><![CDATA[Many times we need to minimize and restore functionality for our in page pop-up. In This article I will show how to achieve the minimize and maximize and restore functionality with javascript. I you want the minimize functionality for your in page pop-up use following code for minimize and restore button. Following code you can.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/minimize-maximize-restore.png"><img
class="alignnone size-full wp-image-4049" title="minimize-maximize-restore" src="http://wordpressapi.com/files/minimize-maximize-restore.png" alt="" width="335" height="177" /></a><br
/> Many times we need to minimize and restore functionality for our in page pop-up. In This article I will show how to achieve the minimize and maximize and restore functionality with javascript.</p><p>I you want the minimize functionality for your in page pop-up use following code for minimize and restore button. Following code you can use for showing the minimize button on pop-up.</p><p>Note: Here for this example My in page popup div id name is &#8220;popup-container&#8221;. For using following example you should keep the main popup continer id name is &#8220;popup-container&#8221;.</p><pre class="brush: xml;">

&lt;a id=&quot;dialog-minimize&quot; href=&quot;#&quot; onclick=&quot;minimize();&quot; style=&quot;display: block;&quot;&gt;&lt;span&gt;Min&lt;/span&gt;&lt;/a&gt;

&lt;a id=&quot;dialog-minimize-return&quot; href=&quot;#&quot; onclick=&quot;minimize_restore();&quot; style=&quot;display:none;&quot;&gt;&lt;span&gt;Min&lt;/span&gt;&lt;/a&gt;
</pre><p>Use following javascript function in your document.</p><pre class="brush: jscript;">
function minimize(){

 var main-containter = document.getElementById('popup-container');
 window.divh = main-containter.style.height;
 window.divw = main-containter.style.width;
 window.divtop = main-containter.style.top;
 window.divleft = main-containter.style.left;

 var hideminbutton = document.getElementById('dialog-minimize');
 hideminbutton.style.display = &quot;none&quot;;

 var hideminbutton = document.getElementById('dialog-minimize-return');
 hideminbutton.style.display = &quot;block&quot;;

 main-containter.style.position =&quot;absolute&quot;;
 main-containter.style.left =&quot;10px&quot;;
 main-containter.style.bottom =&quot;0px&quot;;
 main-containter.style.marginBottom =&quot;-100px&quot;;
 main-containter.style.top = &quot;auto&quot;;
 /* css({position:&quot;absolute&quot;, left:&quot;10px&quot;, width: 250, height: 100, bottom:&quot;-60px&quot;});
 top: 389px; left: 381px; bottom: -60px;
 */
}

function minimize_restore(){
 var popup_element = document.getElementById('popup-container');
 popup_element.style.position =&quot;absolute&quot;;
 popup_element.style.height = window.div_height;
 popup_element.style.width = window.div_width;
 popup_element.style.left = window.divleft;
 popup_element.style.top = window.divtop;

 var hideminbutton = document.getElementById('dialog-minimize');
 hideminbutton.style.display = &quot;block&quot;;

 var hideminbutton = document.getElementById('dialog-minimize-return');
 hideminbutton.style.display = &quot;none&quot;;
}
</pre><p>Above function will swap the minimize and restore button through javascript.</p><p>Using following function you can achieve the maximize and maximize restore functionality using the simple javascript. following code you need to use in your html for maximize button.</p><pre class="brush: xml;">

&lt;a id=&quot;dialog-maximize&quot; onclick=&quot;maximize();&quot; href=&quot;#&quot; style=&quot;display: block;&quot;&gt;&lt;span&gt;Max&lt;/span&gt;&lt;/a&gt;

&lt;a id=&quot;dialog-maximize-return&quot; onclick=&quot;maximize_restore();&quot; href=&quot;#&quot; style=&quot;display: none;&quot;&gt;&lt;span&gt;Max&lt;/span&gt;&lt;/a&gt;
</pre><p>following javascript code you need to use in your document.</p><pre class="brush: jscript;">

function maximize_restore(){
 var popup_element = document.getElementById('popup-container');
 popup_element.style.position =&quot;absolute&quot;;
 popup_element.style.left = window.divleft;
 popup_element.style.top = window.divtop;
 popup_element.style.height = window.div_height;
 popup_element.style.width = window.div_width;

 var hideminbutton = document.getElementById('dialog-maximize');
 hideminbutton.style.display = &quot;block&quot;;

 var hideminbutton = document.getElementById('dialog-maximize-return');
 hideminbutton.style.display = &quot;none&quot;;
}

function maximize(){

 var popup_element = document.getElementById('popup-container');
 window.div_height = popup_element.style.height;
 window.div_width = popup_element.style.width;
 window.divtop = popup_element.style.top;
 window.divleft = popup_element.style.left;

 var hideminbutton = document.getElementById('dialog-maximize');
 hideminbutton.style.display = &quot;none&quot;;

 var hideminbutton = document.getElementById('dialog-maximize-return');
 hideminbutton.style.display = &quot;block&quot;;

 var myWidth = 0, myHeight = 0;
 if( typeof( window.innerWidth ) == 'number' ) {
 //Non-IE
 myWidth = window.innerWidth;
 myHeight = window.innerHeight;
 } else if( document.documentElement &amp;&amp;
 ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
 //IE 6+ in 'standards compliant mode'
 myWidth = document.documentElement.clientWidth;
 myHeight = document.documentElement.clientHeight;
 } else if( document.body &amp;&amp; ( document.body.clientWidth || document.body.clientHeight ) ) {
 //IE 4 compatible
 myWidth = document.body.clientWidth;
 myHeight = document.body.clientHeight;
 }
 myWidth = myWidth -25;
 myHeight = myHeight -20;
 var popup_element = document.getElementById('popup-container');
 popup_element.style.position =&quot;absolute&quot;;
 popup_element.style.left =&quot;10px&quot;;
 popup_element.style.height = myHeight +&quot;px&quot;;
 popup_element.style.width = myWidth +&quot;px&quot;;
 popup_element.style.top = &quot;5px&quot;;
}
</pre><p>If you having any issue with this script please get back to me.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/07/04/minimize-restore-maximize-hide-functionality-javascript-jquery/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>how to create sticky footer using css or javascript</title><link>http://wordpressapi.com/2010/04/04/create-sticky-footer-css-javascript/</link> <comments>http://wordpressapi.com/2010/04/04/create-sticky-footer-css-javascript/#comments</comments> <pubDate>Sun, 04 Apr 2010 09:24:17 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[tutotials]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1985</guid> <description><![CDATA[You can achieve the sticky footer using css very perfectly. Use following css code for creating the sticky footer. Many people gave example of google sticky footer. html{ height:100% } body{ height:100% } #footer{ position: relative; bottom: 0px; height: 100px;  //You must need to know your footer height margin-bottom:-100px; //here I am thinking footer will.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/sticky-footer.png"><img
class="alignleft size-thumbnail wp-image-1986" style="margin: 5px" title="sticky-footer" src="http://wordpressapi.com/files/sticky-footer-150x150.png" alt="" width="150" height="150" /></a>You can achieve the sticky footer using css very perfectly. Use following css code for creating the sticky footer. Many people gave example of google sticky footer.</p><p></p><pre class="brush: css;">

html{

height:100%

}

body{

height:100%

}

#footer{

position: relative;

bottom: 0px;

height: 100px;  //You must need to know your footer height

margin-bottom:-100px; //here I am thinking footer will be 100 px

}
</pre><p>You can change the footer height as per your need or footer height.</p><p>Sticky footer you will also achieve using javscript code.</p><pre class="brush: jscript;">

&lt;script&gt;
document.body.onload = function () {
 var myWidth = 0, myHeight = 0;
 if( typeof( window.innerWidth ) == 'number' ) {
 //Non-IE
 myWidth = window.innerWidth;
 myHeight = window.innerHeight;
 } else if( document.documentElement &amp;&amp;
 ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
 //IE 6+ in 'standards compliant mode'
 myWidth = document.documentElement.clientWidth;
 myHeight = document.documentElement.clientHeight;
 } else if( document.body &amp;&amp; ( document.body.clientWidth || document.body.clientHeight ) ) {
 //IE 4 compatible
 myWidth = document.body.clientWidth;
 myHeight = document.body.clientHeight;
 }
 window.alert( 'Width = ' + myWidth );
 window.alert( 'Height = ' + myHeight );

 middle_container = myWidth - 150; // here I am thinking footer and header hight is 150px
 document.getElelmentByID(&quot;main&quot;).style.height = middle_container;
}

&lt;/script&gt;
</pre><p>You just need to minus the header and footer height from middle_container.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/04/04/create-sticky-footer-css-javascript/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How to change the image of on MouseOver Event using JavaScript or CSS</title><link>http://wordpressapi.com/2010/04/04/change-image-mouseover-event-javascript-css/</link> <comments>http://wordpressapi.com/2010/04/04/change-image-mouseover-event-javascript-css/#comments</comments> <pubDate>Sun, 04 Apr 2010 08:13:15 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[tutorials]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1980</guid> <description><![CDATA[If you want to change the image on rollover or mouseover event. This is very old technique. You can achieve this using CSS or javascript. With CSS you can use the following code .yourimage { background-image: url('firstImage.jpeg'); } .yourimage:hover { background-image: url('secondImage.jpeg'); } &#60;div class=&#8221;yourimage&#8221; style=&#8221;height:100px;width:100px;min-height:100px;min-width:100px;&#8221;&#62;&#60;/div&#62; I am using the yourimage class for div element......]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/javascript-event.png"><img
class="alignleft size-thumbnail wp-image-1983" style="margin: 5px" title="javascript-event" src="http://wordpressapi.com/files/javascript-event-150x150.png" alt="" width="150" height="150" /></a>If you want to change the image on rollover or mouseover event. This is very old technique. You can achieve this using CSS or javascript.</p><p>With CSS you can use the following code</p><pre class="brush: css;">

.yourimage { background-image: url('firstImage.jpeg'); }
.yourimage:hover { background-image: url('secondImage.jpeg'); }
</pre><p>&lt;div class=&#8221;yourimage&#8221; style=&#8221;height:100px;width:100px;min-height:100px;min-width:100px;&#8221;&gt;&lt;/div&gt;</p><p>I am using the yourimage class for div element.</p><p>With javascript you can use following code</p><pre class="brush: xml;">
&lt;div&gt;
&lt;img src=&quot;firstimage.jpeg&quot; onmouseover=&quot;this.src='secondimage.jpeg'&quot; onmouseout=&quot;this.src='firstimage.jpeg'&quot;/&gt;
</pre><p>If you are using the Jquery then use following code:</p><pre class="brush: xml;">
&lt;style&gt;
.imagediv{background-image:firstimage.jpg}
&lt;div class=&quot;imagediv&quot;/&gt;

 $(document).ready(function () {
            $('div.imagediv').mouseover(function () {
                $(this).css(background-image&quot;, &quot;url('secondimage.jpg')&quot;);
            });
        });
</pre>]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/04/04/change-image-mouseover-event-javascript-css/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>How to get the website loading time in a browser</title><link>http://wordpressapi.com/2010/03/27/website-loading-time-browser/</link> <comments>http://wordpressapi.com/2010/03/27/website-loading-time-browser/#comments</comments> <pubDate>Sat, 27 Mar 2010 05:39:16 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[JavaScript]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1901</guid> <description><![CDATA[If you want to get the webpage loading time through javascript. This very easily achievable using javascript. You just need to use following code in your head tag var starttime = new Date().getTime(); window.onload=function() { var loading_time = new Date().getTime()-starttime; alert('Webpage loading time in ' + loading_time + 'ms - milisecond'); }]]></description> <content:encoded><![CDATA[<p>If you want to get the webpage loading time through javascript. This very easily achievable using javascript.</p><p>You just need to use following code in your head tag</p><pre class="brush: jscript;">

var starttime = new Date().getTime();
window.onload=function() {
 var loading_time = new Date().getTime()-starttime;

 alert('Webpage loading time in ' + loading_time + 'ms - milisecond');
}
</pre><p><a
href="http://wordpressapi.com/files/loading.gif"><img
class="alignnone size-full wp-image-1924" title="loading" src="http://wordpressapi.com/files/loading.gif" alt="" width="300" height="300" /></a></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/03/27/website-loading-time-browser/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to find the mouse positions or coordinates without any cross browser issue</title><link>http://wordpressapi.com/2010/03/05/find-mouse-positions-coordinates-cross-browser-issue/</link> <comments>http://wordpressapi.com/2010/03/05/find-mouse-positions-coordinates-cross-browser-issue/#comments</comments> <pubDate>Fri, 05 Mar 2010 10:17:58 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[JavaScript]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[event]]></category> <category><![CDATA[mouse]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1676</guid> <description><![CDATA[Many times we worked on this topic. In this tutorial I am going to show you how to get the mouse coordinates. [script] /* * This get_mouse_coordinates function we are using for capturing the Mouse coordinates of on browser */ var isIE = document.all?true:false; if (!isIE) document.captureEvents(Event.MOUSEMOVE); document.load = get_mouse_coordinates; document.onmousemove = get_mouse_coordinates; function get_mouse_coordinates(e).....]]></description> <content:encoded><![CDATA[<p>Many times we worked on this topic. In this tutorial I am going to show you how to get the mouse coordinates.</p><p>[script]<br
/> /*<br
/> * This get_mouse_coordinates function we are using for capturing the Mouse coordinates of on browser<br
/> */<br
/> var isIE = document.all?true:false;<br
/> if (!isIE) document.captureEvents(Event.MOUSEMOVE);<br
/> document.load = get_mouse_coordinates;<br
/> document.onmousemove = get_mouse_coordinates;</p><p>function get_mouse_coordinates(e) { // as per Document body</p><p>var x_pos;<br
/> var y_pos;<br
/> if (!isIE) {<br
/> x_pos = e.pageX;<br
/> y_pos = e.pageY;<br
/> }<br
/> if (isIE) {<br
/> x_pos = event.clientX + document.body.scrollLeft;<br
/> y_pos = event.clientY + document.body.scrollTop;<br
/> }</p><p>alert(x_pos);<br
/> alert(y_pos);<br
/> }</p><p>[/script]</p><p>clientX and clientY will work in only Firefox, safari, chrome and opeara. That will not work in IE browsers.</p><p>So We need to write condition for IE browsers.<br
/> In IE browser use window.event.x and window.event.y methods.</p><p>Given example is cross browser tested&#8230;</p><p><a
href="http://wordpressapi.com/files/sunspider_tests.png"><img
class="alignnone size-medium wp-image-1677" title="sunspider_tests" src="http://wordpressapi.com/files/sunspider_tests-300x220.png" alt="" width="300" height="220" /></a></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/03/05/find-mouse-positions-coordinates-cross-browser-issue/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How to take div height from javascript when div element height is auto</title><link>http://wordpressapi.com/2010/03/04/div-height-javascript-div-element-height-auto/</link> <comments>http://wordpressapi.com/2010/03/04/div-height-javascript-div-element-height-auto/#comments</comments> <pubDate>Thu, 04 Mar 2010 13:11:35 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[JavaScript]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1666</guid> <description><![CDATA[Many times we need to get the div or any DOM elements height and width when these properties not defined. Lets say I kept div height auto and width as 200px fix and data is dynamic for eash user. So how we can get the div height. We can use two javascript functions for fetching.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/javascript_logo.gif"><img
class="alignleft size-full wp-image-1667" title="javascript_logo" src="http://wordpressapi.com/files/javascript_logo.gif" alt="" width="125" height="93" /></a>Many times we need to get the div or any DOM elements height and width when these properties not defined.</p><p>Lets say I kept div height auto and width as 200px fix and data is dynamic for eash user. So how we can get the div height.</p><p>We can use two javascript functions for fetching the div height.<br
/> 1. offsetHeight &#8211; this will return the value which are specified in your CSS</p><p>2. clientHeight &#8211; this function will return real inner height of element that does not matter about CSS.<br
/> I recomend to use this function.</p><p>Exmaple code as follows:</p><pre class="brush: xml;">
&lt;style&gt;
#wordpressapidiv{ width:200px; height:auto;border:#ccc 1px solid}
&lt;/style&gt;
&lt;div id=\&quot;\wordpressapidiv&quot;&gt;
This is dummy content. This is dummy content. This is dummy content. This is dummy content. This is dummy content. This is dummy content.
This is dummy content. This is dummy content. This is dummy content. This is dummy content. This is dummy content. This is dummy content. This is dummy content.

This is dummy content. This is dummy content. This is dummy content. This is dummy content. This is dummy content. This is dummy content.
This is dummy content. This is dummy content.
&lt;/div&gt;

&lt;script&gt;
function getDivHeight(divID){
gd = document.getElementById(divID).clientHeight;
alert(gd);
}

function getDivWidth(divID){
gw = document.getElementById(divID).clientWidth;
alert(gw);
}

&lt;/script&gt;

&lt;input name=&quot;test&quot; type=&quot;button&quot; onclick=&quot;getDivHeight('wordpressapidiv')&quot; &gt;
</pre><p>Function above code you can fetch the div height and width using the javascript.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/03/04/div-height-javascript-div-element-height-auto/feed/</wfw:commentRss> <slash:comments>55</slash:comments> </item> <item><title>Best IDEs for WordPress, Joomla, Drupal Plugin and Theme development with Windows and Linux</title><link>http://wordpressapi.com/2010/02/27/ides-wordpress-joomla-drupal-plugin-theme-development-windows-linux/</link> <comments>http://wordpressapi.com/2010/02/27/ides-wordpress-joomla-drupal-plugin-theme-development-windows-linux/#comments</comments> <pubDate>Sat, 27 Feb 2010 09:21:05 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[XML]]></category> <category><![CDATA[flex]]></category> <category><![CDATA[technology]]></category> <category><![CDATA[web design]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[IDE]]></category> <category><![CDATA[joomla]]></category> <category><![CDATA[wordpress plugin]]></category> <category><![CDATA[wordpress plugins]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1567</guid> <description><![CDATA[Many developer who are experienced in development. But still that comes to another cms or project development. We are always search for good IDE which are free and open source that is first requirement. Our basic need are as follows in any IDE, the IDE need to support following things: CSS XHTML/HTML JavaScript PHP MySQL.....]]></description> <content:encoded><![CDATA[<p>Many developer who are experienced in development. But still that comes to another cms or project development. We are always search for good IDE which are free and open source that is first requirement.</p><p>Our basic need are as follows in any IDE, the IDE need to support following things:</p><ul><li>CSS</li><li>XHTML/HTML</li><li>JavaScript</li><li>PHP</li><li>MySQL</li></ul><p>I created a list of IDE which I used daily  to do a development. Here I need to clarify IDE is language specific. I work in PHP, Ruby on Rails, Adobe Air, Flex, Javascript, CSS.</p><p>I recommend following IDEs which I really found useful for all the developer who are working in wordpress, joomla, drupal development.</p><p>1. <a
href="http://www.eclipse.org" target="_blank">eclipse</a> (Compatible  on Windows and Linux)</p><p><a
href="http://wordpressapi.com/files/phpideeclipsephp.gif"><img
class="alignnone size-medium wp-image-1568" title="phpideeclipsephp" src="http://wordpressapi.com/files/phpideeclipsephp-300x256.gif" alt="" width="300" height="256" /></a></p><p><strong>Description: </strong>Eclipse is best IDE for all language development. Eclipse IdE is basically Java development but still that provides PHP, ROR and other language support. I like this IDE for java development but I did not recommend for PHP or Ruby on Rails.</p><p>2. <a
href="http://netbeans.org/downloads/" target="_blank">NetBeans</a> (Compatible  on Windows and Linux)</p><p><a
href="http://wordpressapi.com/files/Netbeans-ide.png"><img
class="alignnone size-medium wp-image-1569" title="Netbeans-ide" src="http://wordpressapi.com/files/Netbeans-ide-300x204.png" alt="" width="300" height="204" /></a></p><p><strong>Description: </strong>This IDE has also all language support. I specially like this IDE from Ruby on Rails development. I Used this IDE for Ruby on Rails development as well as some times for PHP development. Among the Ruby on Rails developer this IDE is so popular.</p><p>3. <a
href="http://www.activestate.com/komodo_edit/" target="_blank">Komodo</a> (Compatible  on Windows and Linux)</p><p><a
href="http://wordpressapi.com/files/komodo_ide-60294-1.jpeg"><img
class="alignnone size-medium wp-image-1570" title="komodo_ide-60294-1" src="http://wordpressapi.com/files/komodo_ide-60294-1-300x216.jpg" alt="" width="300" height="216" /></a></p><p><strong>Description :</strong> This IDE is also support for all languages. This IDE is really good support for PHP. I really love this IDE for PHP development. Simple and fast and still nice features about PHP. This IDE is really popular among the PHP developers.</p><p>4. <a
href="http://www.aptana.com/" target="_blank">Aptana</a> (Compatible  on Windows and Linux)</p><p><a
href="http://wordpressapi.com/files/aptana-ide.jpg"><img
class="alignnone size-medium wp-image-1571" title="aptana-ide" src="http://wordpressapi.com/files/aptana-ide-300x216.jpg" alt="" width="300" height="216" /></a></p><p><strong>Description : </strong>This IDE is mainly made for Ruby on Rails development. This is also popular among Ruby developers. This IDE has features like eclipse. I like this IDE for Adobe Air and flex development.  This IDE has also PHP support.</p><p>5. <a
href="http://www.editplus.com/" target="_blank">EditPlus</a> (Compatible  on Windows)</p><p><a
href="http://wordpressapi.com/files/editplus_development_source_editors-95.gif"><img
class="alignnone size-full wp-image-1572" title="editplus_development_source_editors-95" src="http://wordpressapi.com/files/editplus_development_source_editors-95.gif" alt="" width="250" height="233" /></a></p><p><strong>Description: </strong>This IDE is plain simple text editor. Shows you simple color highlight features. I specially recommend this IDE for PHP development and new PHP developer always start with this IDE so they will get filmier with PHP functions and methods because this IDE is does not provide any help. I love the use this IDE in daily use for any language development.</p><p>If you want to add any more IDEs. You can comments on this article.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/02/27/ides-wordpress-joomla-drupal-plugin-theme-development-windows-linux/feed/</wfw:commentRss> <slash:comments>13</slash:comments> </item> <item><title>How to do footer stickable to end of the browser window without fixed position</title><link>http://wordpressapi.com/2010/02/26/footer-stickable-browser-window-fixed-position/</link> <comments>http://wordpressapi.com/2010/02/26/footer-stickable-browser-window-fixed-position/#comments</comments> <pubDate>Fri, 26 Feb 2010 07:40:16 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[web design]]></category> <category><![CDATA[footer]]></category> <category><![CDATA[layout]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1552</guid> <description><![CDATA[Many web developer always think about why footer is not sticking to end of browser. This is senorio: If content is less then footer need to go bottom of browser and if content is more then footer will go down as per content. Many people think this is CSS developer&#8217;s But I am not think.....]]></description> <content:encoded><![CDATA[<p>Many web developer always think about why footer is not sticking to end of browser.</p><p>This is senorio:<br
/> If content is less then footer need to go bottom of browser and if content is more then footer will go down as per content.</p><p>Many people think this is CSS developer&#8217;s But I am not think that way. Becasue this is totally different problem.</p><p>Some people suggest to use header, middle container and footer height in percentage. But that is wont be possible for all the time.</p><p>Here I will give you the solution. Use following javascript in document.</p><pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;
 var header_height = 150;
 var footer_height = 100;
var reduce_height = header_height+footer_height;
 browserHeight = 0;
 if( typeof( window.innerHeight ) == 'number' ) {
 //Non-IE
 browserHeight = window.innerHeight;
 } else if( document.documentElement &amp;&amp; (  document.documentElement.clientHeight ) ) {
 //IE 6+ in 'standards compliant mode'
 browserHeight = document.documentElement.clientHeight;
 } else if( document.body &amp;&amp; (  document.body.clientHeight ) ) {
 //IE 4 compatible
 browserHeight = document.body.clientHeight;
 }
 // window.alert( 'Height = ' + browserHeight );
 var min_height = browserHeight-reduce_height+ +&quot;px&quot;
 document.write('&lt;style&gt;#middle_container{min-height:'+ min_height +'}&lt;/style&gt;');
 //document.getElementById(&quot;middle_container&quot;).style.minHeight = browserHeight-146+&quot;px&quot;;
&lt;/script&gt;
</pre><p>Here in this javscript I am assuming middle_container is your main block of content. You can change the variables as per your need.</p><p><a
href="http://wordpressapi.com/files/footer-layout.gif"><img
class="alignleft size-medium wp-image-1553" title="footer-layout" src="http://wordpressapi.com/files/footer-layout-292x300.gif" alt="" width="292" height="300" /></a></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/02/26/footer-stickable-browser-window-fixed-position/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Web designers are saying what to do with IE6</title><link>http://wordpressapi.com/2010/02/24/web-designers-are-saying-what-to-do-with-ie6/</link> <comments>http://wordpressapi.com/2010/02/24/web-designers-are-saying-what-to-do-with-ie6/#comments</comments> <pubDate>Wed, 24 Feb 2010 19:23:09 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[facebook]]></category> <category><![CDATA[google]]></category> <category><![CDATA[news]]></category> <category><![CDATA[social]]></category> <category><![CDATA[technology]]></category> <category><![CDATA[twitter]]></category> <category><![CDATA[IE6]]></category> <category><![CDATA[microsoft]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1519</guid> <description><![CDATA[In 2003,  Microsoft launched the Internet Explorer6 and it had dominated the market with 97 percent share that time. Over the years its market share has declined, and Now as per new.cnet.com in Jan 2010, IE6 has only holding 5 percents of internet users. Still Most of all web designers are fighting all the time.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/IE6-burning.jpg"><img
class="alignleft size-medium wp-image-1520" title="IE6-burning" src="http://wordpressapi.com/files/IE6-burning-300x225.jpg" alt="" width="300" height="225" /></a>In 2003,  Microsoft launched the Internet Explorer6 and it had dominated the market with 97 percent share that time. Over the years its market share has declined, and Now as per new.cnet.com in Jan 2010, <strong>IE6 has only holding 5 percents of internet users</strong>.</p><p>Still Most of all web designers are fighting all the time for IE6 issues and hacks. All web designers and Web development companies are still spend so much to to solve the issue with IE6 browsers.</p><p>There is reason behind that. In all over the world, still some big corporate companies and offices are using IE6. Many big companies and brands announced to ban IE6 in 2009 itself.</p><p>The Google and March 1 references come from that company&#8217;s recent announcement that it would drop IE6 from the list of supported browsers for its Google Docs online applications and its Google Sites hosting services starting on Monday, March 1. Yesterday, Google&#8217;s popular video site YouTube named <a
href="http://www.computerworld.com/s/article/9161058/YouTube_sets_March_13_IE6_kill_date">March 13</a> as the end-of-support date for IE6.</p><p>There is big issue with IE6 browser but still some web developer are not aware of that. IE6 is majorly lacking to provide a web security. I can say, IE6 is kind of hackers browser.</p><p><a
href="http://www.computerworld.com/s/article/9137060/Microsoft_Update_Latest_news_features_reviews_opinions_and_more">Microsoft</a>&#8216;s browser has weathered a &#8220;kill IE6&#8243; campaign since February 2009, when <a
href="http://www.computerworld.com/s/article/9157638/Facebook_Complete_coverage">Facebook</a> prompted IE6 users to upgrade. It accelerated last summer when Digg announced it would curtail IE6 support, and an &#8220;IE6 Must Die&#8221; <a
href="http://www.computerworld.com/s/article/9157658/Twitter_update_News_blogs_opinions_and_more_about_the_microblogging_service">Twitter</a> petition collected thousands of names. Microsoft has endorsed the anti-IE6 efforts, going so far as to say that <a
href="http://www.computerworld.com/s/article/9136739/Microsoft_Friends_don_t_let_friends_use_IE6_">&#8220;Friends don&#8217;t let friends use IE6,&#8221;</a> although it has refrained from forcing users or companies to upgrade to IE7 or IE8, arguing that the old browser is still required by some enterprises.</p><p>There are new technologies are coming like HTML5, CSS3 but still IE8 is also not providing the basics of that. So web deverloper&#8217;s need to struggle for that. The biggest issue I will say here is project estimation. Due to IE6 browser estimation will go always wrong. This is really frustrating.</p><p>There are multiple issues with IE6. I will talk about some here.</p><ul><li>z-index issue &#8211; most bad part in IE6</li><li>inline-block &#8211; display property not work</li><li>min-height and max-height css property</li><li>child selectors in CSS</li><li>PNG transparent images- biggest issue</li><li>Poor Javascript support<strong><br
/> </strong></li></ul><p>Microsoft is planning to launch IE9 but still they are not included the some nice features of HTML5 and advanced javascript methods and CSS3 attributes.</p><p>What I say more.. Web designers are saying what to do with IE6&#8230;..</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/02/24/web-designers-are-saying-what-to-do-with-ie6/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>how to use soap with php</title><link>http://wordpressapi.com/2010/02/23/soap-php/</link> <comments>http://wordpressapi.com/2010/02/23/soap-php/#comments</comments> <pubDate>Tue, 23 Feb 2010 19:43:42 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[SOAP]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[web service]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1484</guid> <description><![CDATA[SOAP is a best technology that can help you in developing web services and amazing applications. Many times we heard about soap but we really dont know about what is soap. What is soap? SOAP, the Simple Object Access Protocol, is the powerhouse of web services. It’s a highly adaptable, object-oriented protocol that exists in.....]]></description> <content:encoded><![CDATA[<p>SOAP is a best technology that can help you in developing web services and amazing applications.</p><p>Many times we heard about soap but we really dont know about what is soap.</p><p>What is soap?</p><p><a
href="http://www.w3.org/TR/soap12-part0/">SOAP</a>, the Simple Object Access Protocol, is the powerhouse of web services. It’s a highly adaptable, object-oriented protocol that exists in over 80 implementations on every popular platform, including <a
href="http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/index.html">AppleScript</a>, JavaScript, and Cocoa. It provides a flexible communication layer between applications, regardless of platform and location. As long as they both speak SOAP, a PHP-based web application can ask a C++ database application on another continent to look up the price of a book and have the answer right away. Another <a
href="http://developer.apple.com/internet/applescript/applescripttoperl.html">Internet Developer article</a> shows how to use SOAP with AppleScript and Perl.</p><p>If you want to use the soap then you need to install <strong>libxml </strong>on your server. In your PHP.ini file</p><p>you need to check following setting are available or not if not then put it.<strong> </strong></p><table><tbody><tr
valign="middle"><td
align="left">soap.wsdl_cache_enabled</td><td
align="left">1</td><td
align="left">PHP_INI_ALL</td><td
align="left"></td></tr><tr
valign="middle"><td
align="left">soap.wsdl_cache_dir</td><td
align="left">/tmp</td><td
align="left">PHP_INI_ALL</td><td
align="left"></td></tr><tr
valign="middle"><td
align="left">soap.wsdl_cache_ttl</td><td
align="left">86400</td><td
align="left">PHP_INI_ALL</td><td
align="left"></td></tr><tr
valign="middle"><td
align="left">soap.wsdl_cache</td><td
align="left">1</td><td
align="left">PHP_INI_ALL</td><td
align="left"></td></tr><tr
valign="middle"><td
align="left">soap.wsdl_cache_limit</td><td
align="left">5</td><td
align="left">PHP_INI_ALL</td></tr></tbody></table><p>SOAP is an XML-based web service protocol. The most common external specifications used by a SOAP-based service is WSDL to describe its available services, and that, in turn, usually relies on XML Schema Data (XSD) to describe its data types. In order to &#8220;know&#8221; SOAP, it would be extremely useful to have some knowledge of WSDL and XSD. This will allow one to figure out how to use the majority of SOAP services.</p><p>Here is the basic WSDL Structure</p><pre class="brush: xml;">

&lt;definitions&gt;
 &lt;types&gt;
 …
 &lt;/types&gt;
 &lt;message&gt;
 …
 &lt;/message&gt;
 &lt;portType&gt;
 …
 &lt;/portType&gt;
 &lt;binding&gt;
 …
 &lt;/binding&gt;
 &lt;/definitions&gt;
</pre><p>Filled example:</p><pre class="brush: xml;">
 &lt;xsd:complexType name=&quot;ResultElement&quot;&gt;
 &lt;xsd:all&gt;
 &lt;xsd:element name=&quot;summary&quot; type=&quot;xsd:string&quot;/&gt;
 &lt;xsd:element name=&quot;URL&quot; type=&quot;xsd:string&quot;/&gt;
 &lt;xsd:element name=&quot;snippet&quot; type=&quot;xsd:string&quot;/&gt;
 &lt;xsd:element name=&quot;title&quot; type=&quot;xsd:string&quot;/&gt;
 &lt;xsd:element name=&quot;cachedSize&quot; type=&quot;xsd:string&quot;/&gt;
 &lt;xsd:element name=
 &quot;relatedInformationPresent&quot; type=&quot;xsd:boolean&quot;/&gt;
 &lt;xsd:element name=&quot;hostName&quot; type=&quot;xsd:string&quot;/&gt;
 &lt;xsd:element name=
 &quot;directoryCategory&quot; type=&quot;typens:DirectoryCategory&quot;/&gt;
 &lt;xsd:element name=&quot;directoryTitle&quot; type=&quot;xsd:string&quot;/&gt;
 &lt;/xsd:all&gt;
 &lt;/xsd:complexType&gt;
</pre><p>Soap is nothing but xml format web service to talk with cross domain servers. There are othere ways also to create web services. XML-RPC is good one and that is not to much hard to learn also. Use can use following code in your PHP file.</p><pre class="brush: php;">

// create a soap object
 $Soap_Object = new SoapClient(&quot;http://anywebsite.com/any.wsdl&quot;, array('trace' =&gt; true));

 // setting params to authenticate to web service
 $params_Authenticate = array('username' =&gt; 'username', 'password' =&gt; 'password');

 // authenticate to web service
 $do_login=  $Soap_Object-&gt;login($params_Authenticate);

 // take sesstion id from anywebsite.com
 $your_session_id= $do_login-&gt;loginReturn-&gt;sessionId;

 // Set the query parameters.

 $soap_query = 'select book_id from Time where book = 52435455';
 paramsQry = array('queryString' =&gt; $soap_query);

 // Make a soap call.
 $objResponse = $Soap_Object-&gt;query(paramsQry);

 header('Content-Type: text/xml; ');
 print($Soap_Object-&gt;__getLastRequest());
</pre><p>Soap is nothing but a web service with xml so use PHP functions to create the Soap service. Following graph will help you to understand more and in detail about SOAP.</p><p><a
href="http://wordpressapi.com/files/soap-webservice.gif"><img
class="alignleft size-medium wp-image-1485" title="soap-webservice" src="http://wordpressapi.com/files/soap-webservice-300x153.gif" alt="" width="300" height="153" /></a></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/02/23/soap-php/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>How to use document.write and innerhtml</title><link>http://wordpressapi.com/2010/02/23/document-write-innerhtml/</link> <comments>http://wordpressapi.com/2010/02/23/document-write-innerhtml/#comments</comments> <pubDate>Tue, 23 Feb 2010 17:14:18 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Ajax]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[javascript hack]]></category> <category><![CDATA[javascript technique]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1472</guid> <description><![CDATA[document.write and innerhtml both the functions are useful to adding the dynamic content in in Document. Both function are many times used by developer in javascript functions, Ajax calls, Web services and many JS libraries. So We need understand the similarities and differences and limitation about document.write and innerhtml. First whenever and where you calls.....]]></description> <content:encoded><![CDATA[<p>document.write and innerhtml both the functions are useful to adding the dynamic content in in Document.</p><p>Both function are many times used by developer in javascript functions, Ajax calls, Web services and many JS libraries.</p><p>So We need understand the similarities and differences and limitation about document.write and innerhtml.</p><p>First whenever and where you calls document.write function that more important.</p><p>Here I am going to show you how to use the document.write first.</p><pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;

var hello_world = function() {
document.write('Wordpressapi is good website'); // print hello world in DOM

var mytext = &quot;Wordpressapi is best website&quot;;
document.write(mytext); // print again through variable.

}
&lt;/script&gt;
</pre><p>Using above code you can print or execute the so much HTML content in DOM.</p><p>Here I am going to show you how to use the innerHTML in DOM.</p><pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;
document.getElementById('sample_Div').innerHTML=&quot;Wordpressapi is good website&quot;; // add simple text
//document.getElementById('sample_Div').innerHTML=&quot;&lt;img src=sample.jpg&gt;&lt;/img&gt;&quot;; // add image
&lt;/script&gt;
</pre><p>Note: In your document &#8220;sample_Div&#8221; id with div need to be present.<br
/> put following code in your document.</p><pre class="brush: xml;">
&lt;div id=\&quot;sample_Div\&quot;&gt;
Sample Text
&lt;/div&gt;
</pre><p>Loading iframe using innerhtml is the best techniqe and solution for web services and cross domain calls.</p><pre>
document.getElementById('sample_Div').innerHTML = "&lt;iframe src='http://wordpressapi.com/'&gt;&lt;/iframe&gt;";
</pre><p>Both the techniques are stand for as per situation and use</p><p><a
href="http://wordpressapi.com/files/ajax.png"><img
class="alignnone size-full wp-image-1475" title="ajax" src="http://wordpressapi.com/files/ajax.png" alt="" width="300" height="300" /></a></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/02/23/document-write-innerhtml/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Execute JavaScript functions in innerHTML</title><link>http://wordpressapi.com/2010/02/23/execute-javascript-functions-innerhtml/</link> <comments>http://wordpressapi.com/2010/02/23/execute-javascript-functions-innerhtml/#comments</comments> <pubDate>Tue, 23 Feb 2010 16:49:41 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Ajax]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[javascript hack]]></category> <category><![CDATA[javascript technique]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1466</guid> <description><![CDATA[There is big issue We found with innerHTML function. If you try to execute javascript in innerHTML content then we will face this problem with various. We need to always care about Cross browser issues with javascript method. For Ajax and adding the dynamically content in DOM we have actually we ways. First is simple.....]]></description> <content:encoded><![CDATA[<p>There is big issue We found with innerHTML function. If you try to execute javascript in innerHTML content then we will face this problem with various.<br
/> We need to always care about Cross browser issues with javascript method.</p><p>For Ajax and adding the dynamically content in DOM we have actually we ways.<br
/> First is simple document.write function and second function is using innerHTML.</p><p>There is some cross browser issues with both the method. First I will talk about document.write.<br
/> If we use document.write in our DOM then there is no control over the content which we are adding through document.write</p><p>Basically when we use document.write then this function will execute or add the HTML content in DOM where we call this function.</p><p>If you want to avoid this this behavior I suggest use the innerHTML. But innerHTML method is also having some issues with nested innerHTML executing with 2 or 3 level with Major browsers.<br
/> Microsoft is now planning to launch the IE9 version. But in that version they are not supporting this kind of functionality.</p><p>So Major JS library developer need to think about new approach which will give some good alternate solution.</p><p>We can achieve the nested innerHTML but we need to do some very complex development in javascript.</p><p>With innerHTML method: The property is read/write for all objects except the following, for which it is read-only:<br
/> COL, COLGROUP, FRAMESET, HTML, STYLE, TABLE, TBODY, TFOOT, THEAD, TITLE, TR. The property has no default value. Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer<br
/> 5.</p><p>In this article I am going to give example about executing the simple javascript function in innerHTML.</p><pre class="brush: jscript;">&lt;br /&gt;function add_cont() {&lt;br /&gt;var html_cont = '&amp;lt;a href=&quot;javascript:alert(\'hello world\')&quot;&amp;gt;click for hello world test&amp;lt;/a&amp;gt;'+&lt;br /&gt; '&amp;lt;script&amp;gt; alert(\'tests\');'+&lt;br /&gt;'var wordpressapi = document.createElement(&quot;div&quot;);'+&lt;br /&gt;'wordpressapi.innerHTML = &quot;some ad&quot;;&amp;lt;\/script&amp;gt;'&lt;br /&gt;;&lt;br /&gt;document.getElementById('test_htm').innerHTML = html_cont;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;div id=&quot;test_htm&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;a href=&quot;javascript:add_cont()&quot;&amp;gt;Insert test div and text with javascript on click event.&amp;lt;/a&amp;gt;&lt;br /&gt;</pre><p>Other best solution is all the tradtional but still trusted.</p><pre class="brush: jscript;">&lt;br /&gt;document.write(&quot;&amp;lt;iframe src='inner_cont.html'&amp;gt;&quot;);&lt;br /&gt;// ... Javascript code will goes here... //&lt;br /&gt;document.write(&quot;&amp;lt;/iframe&amp;gt;&quot;);&lt;br /&gt;</pre><p><a
href="http://wordpressapi.com/files/javascript-hacking.jpg"><img
class="alignnone size-medium wp-image-1467" title="javascript-hacking" src="http://wordpressapi.com/files/javascript-hacking-238x300.jpg" alt="" width="238" height="300" /></a><br
/> I am still working on this issue to for adding nested innerHTML content.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/02/23/execute-javascript-functions-innerhtml/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Complete Javascript form Validation now easy ( Checkbox, Websites, Email, Maxlength)</title><link>http://wordpressapi.com/2010/02/23/complete-javascript-form-validation-easy-checkbox-websites-email-maxlength/</link> <comments>http://wordpressapi.com/2010/02/23/complete-javascript-form-validation-easy-checkbox-websites-email-maxlength/#comments</comments> <pubDate>Tue, 23 Feb 2010 09:00:03 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[form validations]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1460</guid> <description><![CDATA[Many times we come to same problem which we faced so many times. But still when web developer comes in sitution of checking forms with simple javascript. He started looking into some solutions. Some people try to use the some third party JS library like (Mootools, Jquery, lightbox, Prototype and etc&#8230;) I recomend not to.....]]></description> <content:encoded><![CDATA[<p>Many times we come to same problem which we faced so many times. But still when web developer comes in sitution of checking forms with simple javascript.<br
/> He started looking into some solutions. Some people try to use the some third party JS library like (Mootools, Jquery, lightbox, Prototype and etc&#8230;)</p><p>I recomend not to use these JS library because these library will take some brandwidth of your website. Most of the code these JS library is useless or un useful to your website.<br
/> Still you are adding these JS library to your website.</p><p>In this article I will show you very easy technique to the javascript form validations with minium code.</p><p>Just copy paste the following code in to your head section first.</p><pre class="brush: jscript;">

&lt;script type=&quot;text/javascript&quot;&gt;
// Set maxlength value for your required fields
var maxlength = 255;
/*
* You can pass three parameters this function
* Example : ValidateRequiredField(phone,&quot;Telephone must be filled out!&quot;, &quot;number&quot;);
* For string format no need to pass any strFormat.
*/
function ValidateRequiredField(field,alerttxt,strFormat) {
with (field) {
if (value == null|| value == &quot;&quot;) {
field.style.background= &quot;grey&quot;;
alert(alerttxt);return false;
} else if (value.length &gt; maxlength ) {
field.style.background= &quot;grey&quot;;
alert('Maxlenth should be not more than 255 charactor');return false;
} else if (strFormat == 'number' &amp;&amp; isNaN(value) ) {
field.style.background= &quot;grey&quot;;
alert(field.name + ' is not a number, Please put in Numric format');return false;
} else {return true;}
}
}

/*
* Using the function you can validate the email functions
* Example: ValidateEmailAddress(email,&quot;Email is not in Valid format!&quot;)
* Return true or false
*/
function ValidateEmailAddress(field, alerttxt) {
with (field) {
apos=value.indexOf(&quot;@&quot;);
dotpos=value.lastIndexOf(&quot;.&quot;);
if (apos &lt; 1 || dotpos-apos &lt; 2)
{alert(alerttxt);return false;}
else {return true;}
}
}

/*
* Using the function you can validate the checkbox in the form
* Example: ValidateCheckBox(agreement,&quot;Agreement is not checked!&quot;)
* Return true or false
*/
function ValidateCheckBox(field,alerttxt) {
with (field) {
if (!field.checked == 1) {
alert(alerttxt);return false;
} else {return true;}
}
}

/*
* Using the function you can validate the checkbox in the form
* Example: ValidateRequiredField(website,&quot;Website name is required!&quot;)
* Return true or false
*/
function ValidateWebAddress(field,alerttext) {
with(field) {

var companyUrl = value;

var RegExp = /^(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,4}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&amp;?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?$/;

if(RegExp.test(companyUrl)) {
return true;
} else {
alert(alerttext);
return false;
}
}
}

function ValidateCompleteForm(thisform) {
with (thisform) {

if (ValidateRequiredField(full_name,&quot;First name is required!&quot;)== false) {full_name.focus();return false;}

if (ValidateRequiredField(email_address,&quot;Email must be filled out!&quot;)== false) {email_address.focus();return false;}

if (ValidateEmailAddress(email_address,&quot;Email is not in Valid format!&quot;)== false) {email_address.focus();return false;}

if (ValidateRequiredField(website_name,&quot;Website name is required!&quot;)== false) {website_name.focus();return false;}

if (ValidateWebAddress(website,&quot;Website Address is not incorrect format!&quot;)== false) {agreement.focus();return false;}

if (ValidateRequiredField(mobile,&quot;Mobile must be filled out!&quot;, &quot;number&quot;)== false) {phone.focus();return false;}

if (ValidateCheckBox(sex,&quot;sex is not checked!&quot;)== false) {sex.focus();return false;}

}
}
&lt;/script&gt;
</pre><p>And in you body where you are using the form just add the onsubmit=&#8221;return ValidateCompleteForm(this)&#8221; words in Form tag.</p><p>Exmaple:</p><pre class="brush: xml;">
&lt;form action=&quot;submit.php&quot; onsubmit=&quot;return ValidateCompleteForm(this)&quot; method=&quot;post&quot; &gt;
</pre><p><a
href="http://wordpressapi.com/files/javscript-form-validation.jpg"><img
class="alignnone size-medium wp-image-1463" title="javscript-form-validation" src="http://wordpressapi.com/files/javscript-form-validation-300x219.jpg" alt="" width="300" height="219" /></a></p><p>Note: you can change the parameter as per your form fields names. Maxlength I kept 255 you can change this value as per your requirment.</p><p>Still if you have any doubts about this function please ask me.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/02/23/complete-javascript-form-validation-easy-checkbox-websites-email-maxlength/feed/</wfw:commentRss> <slash:comments>110</slash:comments> </item> <item><title>How to add event to all image elements using javascript</title><link>http://wordpressapi.com/2010/02/18/add-event-image-elements-javascript/</link> <comments>http://wordpressapi.com/2010/02/18/add-event-image-elements-javascript/#comments</comments> <pubDate>Thu, 18 Feb 2010 05:26:42 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[web design]]></category> <category><![CDATA[dom]]></category> <category><![CDATA[events]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1213</guid> <description><![CDATA[In this article I will show show to attach event to DOM element. You many times heard about getElementsByTagName javascript method but you did not tried. getElementsByTagName function is very useful when you are working with javascript events. Using this function you can attach the event to any tag which is present in HTML body......]]></description> <content:encoded><![CDATA[<p>In this article I will show show to attach event to DOM element.</p><p>You many times heard about getElementsByTagName javascript method but you did not tried.</p><p>getElementsByTagName function is very useful when you are working with javascript events. Using this function you can attach the event to any tag which is present in HTML body.</p><p>Here I am going to give the image example. Following script will attach the mouseover event to all images which are present in DOM.</p><pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;

var all_images = document.getElementsByTagName('img');

for (var i = 0; i &lt; all_images.length; i++) {

addEvent(all_images[i], 'mouseover', myfunction, false);

}

function myfunction () {

 alert('this is image mouse over alert');

}

/**
 * cross-browser event handling for IE5+, NS6 and Mozilla
 * By Scott Andrew
 */
//This addEvent function we are using for external class use
this.addEvent = function(elm, evType, fn, useCapture) {
 if (elm.addEventListener) { // Mozilla, Netscape, Firefox
 elm.addEventListener(evType, fn, useCapture);
 return true;
 } else if (elm.attachEvent) {  // IE5 +
 var r = elm.attachEvent('on' + evType, fn);
 return r;
 } else {
 elm['on' + evType] = fn;
 }
}

&lt;/script&gt;
</pre><p><a
href="http://wordpressapi.com/files/javascript.png"><img
class="alignnone size-medium wp-image-1214" title="javascript" src="http://wordpressapi.com/files/javascript-300x87.png" alt="" width="300" height="87" /></a></p><p>If you copy paste the following code in your document and If you mouseover on any image then alert with message will come.</p><p>This script will work in any browsers. (IE 6,7,8, FF3,2, Safari3,4)</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/02/18/add-event-image-elements-javascript/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>JSONP for cross domain communication solution using with javascript and PHP</title><link>http://wordpressapi.com/2010/02/17/jsonp-cross-domain-communication-solution-javascript-php/</link> <comments>http://wordpressapi.com/2010/02/17/jsonp-cross-domain-communication-solution-javascript-php/#comments</comments> <pubDate>Wed, 17 Feb 2010 11:48:45 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[JSONP]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[XML]]></category> <category><![CDATA[Ajax]]></category> <category><![CDATA[communication]]></category> <category><![CDATA[cross domain]]></category> <category><![CDATA[xml]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1164</guid> <description><![CDATA[Last year in Feb I heard about JSONP and really liked the JSONP solutions. JSONP allows you to make an HTTP request outside your own domain JSONP consume the Web Services from JavaScript code. Earlier I worked on so on AJAX but there is issue with working or communication issue with cross domain sites. XMLHttpRequest.....]]></description> <content:encoded><![CDATA[<p>Last year in Feb I heard about JSONP and really liked the JSONP solutions. JSONP allows you to make an HTTP request outside your own domain<br
/> JSONP consume the Web Services from JavaScript code. Earlier I worked on so on AJAX but there is issue with working or communication issue with cross domain sites.<br
/> XMLHttpRequest is blocked from making external requests.</p><p>JavaScript code to make a JSONP call will as follows:</p><pre class="brush: jscript;">
function common_jsonpRequest(url, name, query) {

 if (url.indexOf(&quot;?&quot;) &gt; -1)
 url += &quot;&amp;jsonp=&quot;
 else
 url += name + &quot;&amp;&quot;;
 if (query)
 url += encodeURIComponent(query) + &quot;&amp;&quot;;
 url += new Date().getTime().toString(); // prevent caching

 var JSONPscript = document.createElement(&quot;script&quot;);
 JSONPscript.id = 'wordpressapi_jsonpRequest';
 JSONPscript.setAttribute(&quot;src&quot;, url + &quot;&amp;CacheBuster=&quot; + Math.random());
 JSONPscript.setAttribute(&quot;type&quot;,&quot;text/javascript&quot;);

 // write the jsonp script tag
 document.body.appendChild(JSONPscript);
 //script.text = &quot;&quot;;

}

function returncall (data){
 alert(data);
// you can use data as a variable also.
}
</pre><p>In same javascript you should write the returning function as above.</p><p>You can call JSONP this function as follows;</p><pre class="brush: jscript;">&lt;a href=&quot;http://wordpressapi.com/files/JSONP-request.gif&quot;&gt;&lt;img class=&quot;alignnone size-medium wp-image-1167&quot; title=&quot;JSONP-request&quot; src=&quot;http://wordpressapi.com/files/JSONP-request-300x125.gif&quot; alt=&quot;&quot; width=&quot;300&quot; height=&quot;125&quot; /&gt;&lt;/a&gt;
common_jsonpRequest(base_url+'getData.php?jsonp=mycallback&amp;name=for_wordpressapi');
</pre></pre><p>Notel: getData.php file will beahave like externaal javascript file so handle this file carefully.<br
/> getData.php sample file.</p><pre class="brush: php;">
&lt;?php
$data = &quot;this is our dynamic data&quot;;
if($_REQUEST['name']=='for_wordpressapi'){

echo &quot;returncall(&quot;.$data.&quot;)&quot;;

}

?&gt; </pre><p>This will return the "this is our dynamic data" as a alert.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/02/17/jsonp-cross-domain-communication-solution-javascript-php/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Advanced rounded corner with only css and not using images and with border</title><link>http://wordpressapi.com/2010/02/16/advanced-rounded-corner-css-images-border/</link> <comments>http://wordpressapi.com/2010/02/16/advanced-rounded-corner-css-images-border/#comments</comments> <pubDate>Tue, 16 Feb 2010 16:56:57 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[news]]></category> <category><![CDATA[seo]]></category> <category><![CDATA[technology]]></category> <category><![CDATA[web design]]></category> <category><![CDATA[advanced rounded corner]]></category> <category><![CDATA[html]]></category> <category><![CDATA[no image]]></category> <category><![CDATA[rounded corner]]></category> <category><![CDATA[rounded corner with css]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1140</guid> <description><![CDATA[In one of my project I got requirement about half rounded corner in header and footer. I got so many scripts which had solution with javascripts and some are given solutions with images. But I want customize every thing like color of rounded corner header background, footer background and border also. I did so much.....]]></description> <content:encoded><![CDATA[<p>In one of my project I got requirement about half rounded corner in header and footer.<br
/> I got so many scripts which had solution with javascripts and some are given solutions with images.</p><p>But I want customize every thing like color of rounded corner header background, footer background and border also.</p><p>I did so much R&amp;D about same but did not found any solution.</p><p>So I tried to code myself in CSS and I got succeed in that.<br
/> In this article I am going to share the code with you.</p><p>first put my style sheet in your webpage.</p><pre class="brush: css;">
&lt;style type=&quot;text/css&quot;&gt;
body {background-color: #fff;font: normal 10pt ,Arial,sans-serif;}

img{border:none;}

.wordpressapi-main{
 clear:both;
 float:left;
 width:300px;
 /*border:1px solid #f00;*/
}

.wordpressapi_round_header {
 background-color: #ddd;

 -moz-border-radius: 15px 15px 0px 0px;
 -webkit-border-radius: 15px 15px 0px 0px;
 border-radius: 15px 15px 0px 0px;
 /*behavior: url(border-radius.htc);*/
 text-align:center;
 padding:5px 0px 5px 0px;
 clear:both;
 float:left;
}

.wordpressapi_round_footer {
 background-color: #ddd;

 -moz-border-radius: 0px 0px 15px 15px;
 -webkit-border-radius: 0px 0px 15px 15px;
 border-radius: 0px 0px 15px 15px;

 /*behavior: url(border-radius.htc);*/
 text-align:right;

 clear:both;
 float:left;

}
.wordpressapi_round_middle {
 text-align:center;
 color:blue;
 clear:both;
 float:left;
}
.inner_ad {
 padding:10px;
 text-align:left;
 color:black;
 font-size:12px;
 vertical-align: middle;

}
.round_heading{
font-size:16px;
line-height:26px;
font-weight:bold;

}

/* rounded corners */
.wordpressapi-blue-round-container{ /*margin-top:10px;*/}
.wordpressapi-blue-round-container-top, .wordpressapi-blue-round-container-bot, .wordpressapi-acco-top, .wordpressapi-acco-bot {
 display:block;
 background:#fff;
 font-size:1px;
 clear:both;

}
.blue-round-t1, .blue-round-t2, .blue-round-t3, .blue-round-t4 {display:block; overflow:hidden;}
.blue-round-t1, .blue-round-t2, .blue-round-t3 {height:1px;}
.blue-round-t2, .blue-round-t3, .blue-round-t4 {
 background:#0000FF;
 border-left:1px solid #ccc;
 border-right:1px solid #ccc;
}
.blue-round-t1 {
 margin:0 5px;
 background:#0000FF;
 border-top:1px solid #ccc;
 height:0px;
}
.blue-round-t2 {margin:0 3px; border-width:0 2px;}
.blue-round-t3 {margin:0 2px;}
.blue-round-t4 {height:2px; margin:0 1px;}

.white-round-t1, .white-round-t2, .white-round-t3, .white-round-t4 {display:block; overflow:hidden;}
.white-round-t1, .white-round-t2, .white-round-t3 {height:1px;}
.white-round-t2, .white-round-t3, .white-round-t4 {
 background:#FFF;
 border-left:1px solid #ccc;
 border-right:1px solid #ccc;
}
.white-round-t1 {
 margin:0 5px;
 background:#FFF;
 border-top:1px solid #ccc;
 height:0px;
}
.white-round-t2 {margin:0 3px; border-width:0 2px;}
.white-round-t3 {margin:0 2px;}
.white-round-t4 {height:2px; margin:0 1px;}

.wordpressapi-blue-round-contents{
 display:block;
 border:1px solid #000;
 border-width:0 1px;
 padding: 0 15px;
 background:#0000FF;
 color:#000;
 text-align:justify;
 width: 878px;
 clear:both;
 float:left;

}

.hold{
 border-left:1px solid #ccc;
 border-right:1px solid #ccc;
 clear:both;
 float:left;
 width:298px;
}

.inner-adds-bottom{
 padding-top:1px;
 clear:both;
 float:left;
}

/* rounded corners */

.cross-img, .cross-img:link, .cross-img:hover{
 background:url(close_button.gif) no-repeat center;
 width:12px;
 height:12px;
 display:inline-block;
}

.info-img, .info-img:link, .info-img:hover{
 background:url(information_btn.gif) no-repeat center;
 width:12px;
 height:12px;
 display:inline-block;
}
&lt;/style&gt;</pre><p>Then Put following code in your HTML body.</p><p><a
href="http://wordpressapi.com/files/advanced-rounded-corner-html-code.jpg"><img
class="alignnone size-medium wp-image-1141" title="advanced-rounded-corner-html-code" src="http://wordpressapi.com/files/advanced-rounded-corner-html-code-300x209.jpg" alt="" width="300" height="209" /></a></p><p>You will get the following result as follows:<br
/> <a
href="http://wordpressapi.com/files/advanced-rounded-corner-wordpressapi.png"><img
class="alignnone size-full wp-image-1142" title="advanced-rounded-corner-wordpressapi" src="http://wordpressapi.com/files/advanced-rounded-corner-wordpressapi.png" alt="" width="311" height="275" /></a></p><p>Download the main html file from  here: <a
href="http://wordpressapi.com/files/advanced-rounded-corner-wordpressapi.zip" target="_blank">Advanced rounded corner with CSS</a></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/02/16/advanced-rounded-corner-css-images-border/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 160/221 queries in 0.968 seconds using disk

Served from: wordpressapi.com @ 2010-09-09 21:00:42 -->