<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>SZ Quadri - css tag</title>
  <link>http://blogs.zaidsoft.com/sz_quadri/tags/css/</link>
  <description>The Architect, the Mentor and cEo of Zaidsoft</description>
  <language>en</language>
  <copyright>SZ Quadri</copyright>
  <lastBuildDate>Mon, 01 Aug 2011 06:01:00 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>IP address to Geo-location web tool </title>
    <link>http://blogs.zaidsoft.com/sz_quadri/2008/10/23/ip_address_to_geo_location_web_tool.html</link>
    
      
        <description>
          &lt;a href=&#034;http://ipgeoinfo.com&#034;&gt;http://ipgeoinfo.com&lt;/a&gt; is simple to use, FREE web site for fast IP address to geo location information such as City, Region, Country etc. Other information available includes Time Zone etc. It also points the location on the Google map.  &lt;br /&gt;
&lt;br /&gt;
Want to learn the geographical location of the sender of the e-mail? Or want to check from where a particular order has been placed in your shopping cart? Geo-Location is the answer. &lt;br /&gt;
&lt;br /&gt;
This technology analyzes network traffic as well as IP allocation data to determine the approx location of the machine having a particular IP address.&lt;br /&gt;
&lt;br /&gt;
You can create link to this web site with parameter named ip to dynamically provide the visitor with option to check the location. &lt;br /&gt;
&lt;br /&gt;
The tool can be used to prevent credit card fraud or for law enforcement purposes as well.&lt;br /&gt;
&lt;br /&gt;
Check out &lt;a href=&#034;http://ipgeoinfo.com&#034;&gt;http://ipgeoinfo.com&lt;/a&gt;
        </description>
      
      
    
    
    
    <category>Web Technology</category>
    
    <category>Technology</category>
    
    <comments>http://blogs.zaidsoft.com/sz_quadri/2008/10/23/ip_address_to_geo_location_web_tool.html#comments</comments>
    <guid isPermaLink="true">http://blogs.zaidsoft.com/sz_quadri/2008/10/23/ip_address_to_geo_location_web_tool.html</guid>
    <pubDate>Thu, 23 Oct 2008 18:10:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Conditionally including javascript and css files</title>
    <link>http://blogs.zaidsoft.com/sz_quadri/2007/08/20/conditionally_including_javascript_and_css_files.html</link>
    
      
        <description>
          Normally external javascript and css files are supposed to be included in the header of a web page. But, at times we come across situations when we need to include some javascript or css file when we are into the body of the page (that is head portion has already been written).&lt;br /&gt;
&lt;br /&gt;
To include the javascript and css resources you can use the following two methods. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function injectJS (fileName, jsbase){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var src = jsbase + &#039;/&#039; + fileName + &#039;.js&#039;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var ipts = document.getElementsByTagName(&amp;quot;script&amp;quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var found = false;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i=0; i &amp;lt; ipts.length; i++){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var type = ipts[i].src;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (type.indexOf(fileName) != -1){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; found = true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!found){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var headID = document.getElementsByTagName(&amp;quot;head&amp;quot;)[0];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var newScript = document.createElement(&#039;script&#039;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; newScript.type = &#039;text/javascript&#039;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; newScript.src = src;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; headID.appendChild(newScript);&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;function injectCSS (fileName, cssbase){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var ipts = document.getElementsByTagName(&amp;quot;link&amp;quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var found = false;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i=0; i &amp;lt; ipts.length; i++){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if ( ipts[i].rel != &#039;stylesheet&#039;) continue;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var type = ipts[i].href;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (type.indexOf(fileName) != -1){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; found = true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!found){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var headID = document.getElementsByTagName(&amp;quot;head&amp;quot;)[0];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var c = document.createElement(&#039;link&#039;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c.type = &#039;text/css&#039;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c.rel = &#039;stylesheet&#039;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c.href = cssbase + &#039;/&#039; + fileName + &#039;.css&#039;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; headID.appendChild(c);&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the fileName should not contain the .js or .css extension.&lt;br /&gt;
The methods can be called from anywhere in the body of the html page (from inside standard script tags/block).&lt;br /&gt;
&lt;br /&gt;
Above methods make sure that the resource being injected is not included more than once. Feel free to use the code and modify it to suit your heart&#039;s content. No strings attached!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;  &lt;/pre&gt;
        </description>
      
      
    
    
    
    <category>Web Technology</category>
    
    <comments>http://blogs.zaidsoft.com/sz_quadri/2007/08/20/conditionally_including_javascript_and_css_files.html#comments</comments>
    <guid isPermaLink="true">http://blogs.zaidsoft.com/sz_quadri/2007/08/20/conditionally_including_javascript_and_css_files.html</guid>
    <pubDate>Mon, 20 Aug 2007 13:50:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Falling in love with jQuery</title>
    <link>http://blogs.zaidsoft.com/sz_quadri/2007/06/26/falling_in_love_with_jquery.html</link>
    
      
        <description>
          A while back I was looking for a JavaScript library that can make writing javascript easy for our web applications. One of my goals was to find something that does its job unobtrusively. It was important since I believe that even if the browser can not support javascript, our application should be able to provide basic functionality to the user using plain vanilla HTML interface. All our requirements were fulfilled in jQuery. It&#039;s small, fast and let&#039;s you do things in less lines of codes. jQuery is all about finding stuff and doing things. For example it let&#039;s you find all the &amp;lt;a&amp;gt; tags that have class attribute value of popup. Then you can attach events to show them in popup!&amp;nbsp; The good thing is that in case the browser does not support javascript your link tag will show up as plain vanilla link tag. So users will be able to at least browse to the page pointed by the link.&lt;br /&gt;
&lt;br /&gt;
So if you are looking for a great javascript library, go for jQuery. It&#039;s at &lt;a target=&#034;_blank&#034; href=&#034;http://jquery.com&#034;&gt;jQuery.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
For me, I confess I have fallen i love with jQuery.
        </description>
      
      
    
    
    
    <category>Web Technology</category>
    
    <comments>http://blogs.zaidsoft.com/sz_quadri/2007/06/26/falling_in_love_with_jquery.html#comments</comments>
    <guid isPermaLink="true">http://blogs.zaidsoft.com/sz_quadri/2007/06/26/falling_in_love_with_jquery.html</guid>
    <pubDate>Tue, 26 Jun 2007 10:15:00 GMT</pubDate>
  </item>
  
  </channel>
</rss>

