<?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>TLS Web Solutions &#187; jQuery</title> <atom:link href="http://www.tlswebsolutions.com/category/jquery/feed/" rel="self" type="application/rss+xml" /><link>http://www.tlswebsolutions.com</link> <description></description> <lastBuildDate>Thu, 02 Jun 2011 20:41:14 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.3</generator> <item><title>JomSocial Popup Dialog Ajax Won&#8217;t Finish Loading</title><link>http://www.tlswebsolutions.com/jomsocial-popup-dialog-ajax-wont-finish-loading/</link> <comments>http://www.tlswebsolutions.com/jomsocial-popup-dialog-ajax-wont-finish-loading/#comments</comments> <pubDate>Fri, 26 Mar 2010 04:52:54 +0000</pubDate> <dc:creator>Tim Selaty</dc:creator> <category><![CDATA[Joomla]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[azrul plugin]]></category> <category><![CDATA[azrul.zip]]></category> <category><![CDATA[jomsocial]]></category> <category><![CDATA[jomsocial 404 component]]></category> <category><![CDATA[jomsocial ajax error]]></category> <category><![CDATA[jomsocial dialog]]></category> <category><![CDATA[jomsocial error]]></category> <category><![CDATA[jomsocial plugin]]></category> <category><![CDATA[jomsocial popup]]></category> <category><![CDATA[joomla jomsocial]]></category><guid isPermaLink="false">http://www.tlswebsolutions.com/?p=555</guid> <description><![CDATA[JomSocial is a great extension built for the wonderful Joomla! that comes with many features people desire in [...]]]></description> <content:encoded><![CDATA[<p>JomSocial is a great extension built for the wonderful Joomla! that comes with many features people desire in a social network. One of the best things about JomSocial is the dialog&#8217;s or popups that allow users to interact by uploading videos, changing their profile, and even login without changing the page. The current version of JomSocial I used for this installation is &#8220;1.6.288&#8243;.</p><p>During one of my JomSocial adventures I came across a critical error in JomSocial&#8217;s popups. What would happen is I would click on any link that would launch the dialog and it would just site there loading the window indefinitely. See the screenshot above.<span id="more-555"></span></p><p>I scoured JomSocial&#8217;s support forum for an immediate answer with no luck. I tried everything from uninstalling the plugin and reinstalling the &#8220;azrul.zip&#8221; plugin from &#8220;com_community_pro_1.6.288.zip -&gt; site/azrul.zip&#8221; and still received the error.</p><p>After launching FireBug and trying to see why the AJAX request wasn&#8217;t returning a page, I received an error that said &#8220;404 component not found&#8221;.</p><p>I&#8217;ve also tried following the instructions here:</p><p>http://www.jomsocial.com/forum/index.php?f=7&#038;t=14448&#038;start=0&#038;rb_v=viewtopic</p><p>I managed to find a solution to the error, and it dealt with reinstalling the system. I guess some components didn&#8217;t install successfully during the first installation.</p><h3>The Solution:</h3><ol><li>Reinstall the &#8220;com_community_pro_x.x.xxxx.zip&#8221; component.</li><li>After installation completes, go to &#8220;Extensions -&gt; Plugin Manager&#8221; and find &#8220;Azrul  System Mambot For Joomla&#8221;.</li><li>It should be disabled, you should now enable it.</li><li>Go to &#8220;Extensions -&gt; Extension Manager&#8221; then to &#8220;Plugins&#8221; and find &#8220;<span class="bold">Azrul System Mambot For Joomla&#8221; and assure that its showing up in the list of plugins.</span></li></ol><p><strong>In short, reinstall JomSocial and enable the system plugin.</strong></p><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">http://www.jomsocial.com/forum/index.php?f=7&amp;t=14448&amp;start=0&amp;rb_v=viewtopihttp://www.jomsocial.com/forum/index.php?f=7&amp;t=14448&amp;start=0&amp;rb_v=viewtopic</div> ]]></content:encoded> <wfw:commentRss>http://www.tlswebsolutions.com/jomsocial-popup-dialog-ajax-wont-finish-loading/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>How to include jQuery dynamically, aka, check to see if it exists</title><link>http://www.tlswebsolutions.com/how-to-include-jquery-dynamically-aka-check-to-see-if-it-exists/</link> <comments>http://www.tlswebsolutions.com/how-to-include-jquery-dynamically-aka-check-to-see-if-it-exists/#comments</comments> <pubDate>Thu, 07 Jan 2010 08:30:07 +0000</pubDate> <dc:creator>Tim Selaty</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[Miscellaneous]]></category> <category><![CDATA[!window.jQuery]]></category> <category><![CDATA[check if jquery]]></category> <category><![CDATA[define jquery]]></category> <category><![CDATA[dynamic jquery]]></category> <category><![CDATA[jquery does not exist]]></category> <category><![CDATA[jquery not defined]]></category> <category><![CDATA[lazy load jQuery]]></category><guid isPermaLink="false">http://www.tlswebsolutions.com/?p=386</guid> <description><![CDATA[I cannot tell you how many times I&#8217;ve walked into a project that required the following: Fancy JavaScript [...]]]></description> <content:encoded><![CDATA[<p>I cannot tell you how many times I&#8217;ve walked into a project that required the following:</p><ol><li>Fancy JavaScript alerts, dialogs, and validation.</li><li>JavaScript assets that will distributed to subsites / satellite sites.</li><li>Of these sites, some may or may not already have these assets already defined.</li></ol><p>What I&#8217;m referring to specifically is jQuery. While building a tasty and user-friendly form.. I needed a way to check to see if jQuery didn&#8217;t exist, and if it didn&#8217;t include it dynamically by append it to the HEAD tag. This is commonly referred to &#8216;including jQuery dynamically&#8217;. Often times different phrases such as &#8216;check to see if jQuery is defined&#8217;, &#8216;lazy load jQuery&#8217;, &#8216;!window.jQuery&#8217;</p><p>Here is the JavaScript code to make the magic happen.</p><div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;color: #003d68;"><span style="color: #000066; font-weight: bold;color: #000080;">if</span><span style="color: #009900;color: #000080;">&#40;</span><span style="color: #339933;color: #000080;">!</span><span style="color: #009900;color: #000080;">&#40;</span>window.<span style="color: #660066;">jQuery</span> <span style="color: #339933;color: #000080;">&amp;&amp;</span> window.<span style="color: #660066;">jQuery</span>.<span style="color: #660066;">fn</span>.<span style="color: #660066;">jquery</span> <span style="color: #339933;color: #000080;">==</span> <span style="color: #3366CC;color: #000080;">'1.3.2'</span><span style="color: #009900;color: #000080;">&#41;</span><span style="color: #009900;color: #000080;">&#41;</span> <span style="color: #009900;color: #000080;">&#123;</span><span style="color: #003366; font-weight: bold;color: #000080;">var</span> s <span style="color: #339933;color: #000080;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;color: #000080;">&#40;</span><span style="color: #3366CC;color: #000080;">'script'</span><span style="color: #009900;color: #000080;">&#41;</span><span style="color: #339933;color: #000080;">;</span>s.<span style="color: #660066;">setAttribute</span><span style="color: #009900;color: #000080;">&#40;</span><span style="color: #3366CC;color: #000080;">'src'</span><span style="color: #339933;color: #000080;">,</span> <span style="color: #3366CC;color: #000080;">'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'</span><span style="color: #009900;color: #000080;">&#41;</span><span style="color: #339933;color: #000080;">;</span>s.<span style="color: #660066;">setAttribute</span><span style="color: #009900;color: #000080;">&#40;</span><span style="color: #3366CC;color: #000080;">'type'</span><span style="color: #339933;color: #000080;">,</span> <span style="color: #3366CC;color: #000080;">'text/javascript'</span><span style="color: #009900;color: #000080;">&#41;</span><span style="color: #339933;color: #000080;">;</span>document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;color: #000080;">&#40;</span><span style="color: #3366CC;color: #000080;">'head'</span><span style="color: #009900;color: #000080;">&#41;</span><span style="color: #009900;color: #000080;">&#91;</span><span style="color: #CC0000;color: #000080;">0</span><span style="color: #009900;color: #000080;">&#93;</span>.<span style="color: #660066;">appendChild</span><span style="color: #009900;color: #000080;">&#40;</span>s<span style="color: #009900;color: #000080;">&#41;</span><span style="color: #339933;color: #000080;">;</span><span style="color: #009900;color: #000080;">&#125;</span></pre></div></div><p>As a recap, here is what the snippet above does. &#8220;Check to see if jQuery is defined. If it&#8217;s not, grab jQuery from Google&#8217;s API and include it in the HEAD tag&#8221;.</p> ]]></content:encoded> <wfw:commentRss>http://www.tlswebsolutions.com/how-to-include-jquery-dynamically-aka-check-to-see-if-it-exists/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>XZero Classifieds &#8211; jQuery Expanding Country List</title><link>http://www.tlswebsolutions.com/xzero-classifieds-jquery-expanding-country-list/</link> <comments>http://www.tlswebsolutions.com/xzero-classifieds-jquery-expanding-country-list/#comments</comments> <pubDate>Mon, 28 Dec 2009 03:59:13 +0000</pubDate> <dc:creator>Tim Selaty</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[Miscellaneous]]></category> <category><![CDATA[jquery city list]]></category> <category><![CDATA[jquery drop down]]></category> <category><![CDATA[xzero city list]]></category> <category><![CDATA[xzero classifieds]]></category> <category><![CDATA[xzero classifieds mod]]></category> <category><![CDATA[xzero country list]]></category> <category><![CDATA[xzero mod]]></category> <category><![CDATA[xzero scripts]]></category><guid isPermaLink="false">http://www.tlswebsolutions.com/?p=374</guid> <description><![CDATA[XZero Scripts has released a great tool for developer looking for a classified script &#8211; XZero Community Classifieds. [...]]]></description> <content:encoded><![CDATA[<p><a href="http://www.xzeroscripts.com/"><img class="alignleft size-medium wp-image-384" title="xzero-screen" src="http://www.tlswebsolutions.com/wp-content/uploads/2009/12/xzero-screen-300x141.png" alt="" width="300" height="141" />XZero Scripts</a> has released a great tool for developer looking for a classified script &#8211; <a href="http://www.xzeroscripts.com/products/xzero_classifieds/">XZero Community Classifieds</a>.</p><p>With an strong and eager community helping to further the development of the script, many people have taken the liberty to release their own mods. One modification we thought would be awesome to give back to the community is the expanding drop-down city list in the right side bar. Interested? Great!</p><p>You&#8217;re probably asking yourself &#8220;what&#8217;s the catch&#8221;? Truth be told, just a simple 1 file replacement. Follow these steps:</p><h4><span><a style="color: #333399;" href="http://www.tlswebsolutions.com/downloads/cities-inc-zip"><span style="text-decoration: underline;">&#8211;&gt; Download &#8216;cities.inc.zip&#8217;</span></a></span></h4><h3>Installation</h3><ol><li>Open &#8216;cities.inc.zip&#8217; and extract the file &#8216;cities.inc.php&#8217; to your computer / desktop.</li><li>Open your favorite FTP program and upload &#8216;cities.inc.php&#8217; to the root of your XZero Classifieds installation. This WILL replace the old &#8216;cities.inc.php&#8217; that came packaged with your original installation.</li></ol><p>That&#8217;s it!</p><p>Enjoy!</p><h3>Developer Notes</h3><p>The drop down uses the jQuery framework for its animations. The framework is being remotely downloaded using Google&#8217;s JavaScript API script (jsapi).</p><p><span class="download"><a href="http://www.tlswebsolutions.com/downloads/cities-inc-zip">Download Free jQuery Cities Drop down Mod for XZero Classifieds (1.51kb)</a><br /> Downloaded 857 times.</span></p> ]]></content:encoded> <wfw:commentRss>http://www.tlswebsolutions.com/xzero-classifieds-jquery-expanding-country-list/feed/</wfw:commentRss> <slash:comments>14</slash:comments> </item> <item><title>Google AJAX API and jQuery integration, bandwidth free!</title><link>http://www.tlswebsolutions.com/google-ajax-api-and-jquery-integration-bandwidth-free/</link> <comments>http://www.tlswebsolutions.com/google-ajax-api-and-jquery-integration-bandwidth-free/#comments</comments> <pubDate>Sat, 22 Aug 2009 19:45:29 +0000</pubDate> <dc:creator>Tim Selaty</dc:creator> <category><![CDATA[Google]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[XHTML]]></category> <category><![CDATA[google ajax]]></category> <category><![CDATA[google ajax api]]></category> <category><![CDATA[google and jquery]]></category> <category><![CDATA[google api]]></category> <category><![CDATA[google.load()]]></category> <category><![CDATA[jquery bandwidth]]></category> <category><![CDATA[jquery integration]]></category><guid isPermaLink="false">http://www.tlswebsolutions.com/?p=222</guid> <description><![CDATA[As we all know Google has released some pretty nifty things in the past. Today, we&#8217;re going to [...]]]></description> <content:encoded><![CDATA[<p>As we all know Google has released some pretty nifty things in the past. Today, we&#8217;re going to look at one of its most delightful additions for web developers. Google AJAX API.</p><h3>What is Google AJAX API?</h3><p>Google&#8217;s AJAX APIs let you implement rich, dynamic web sites entirely in JavaScript and HTML. You can add a map to your site, a dynamic search box, or download feeds with just a few lines of JavaScript.<span id="more-222"></span></p><p>In human terms, it loads common JavaScript frameworks such as MooTools, jQuery, Prototype, jQuery UI and of course even Google Maps without having to have the (.js) files on your server.</p><h3>That&#8217;s great, but what does that mean for me?</h3><p>Bandwidth, bandwidth, bandwidth, cache headers, and bandwidth.</p><p>Because jQuery, like images, must be downloaded onto the users computer before it can be used. If you have a slow server this can be a painful process especially if you use multiple JavaScript libraries.</p><p>Google is lightning fast, always. To have one, maybe two less items to download from your server not only saves bandwidth, but it saves you time. You don&#8217;t have to go to jQuery and download the latest version, upload it to your server, and type in the path to the (.js) file. You also don&#8217;t have to worry about having relative or absolute URLs due because of pretty URLs (seo friendly URLs).</p><p>You just add a two lines of code to the head of your template, sometimes even one, and you&#8217;re done. Google automatically sends a request to their server to download all of the JavaScript you&#8217;re requesting, cache the headers, and return it back to you.</p><p>Even better yet, the code is cleaner. You only need one line of code to load in multiple JavaScript libraries instead of your usual 3-5 lines of code.</p><h3>Enough already, just show me how</h3><p>Glad you asked. Below is the example XHTML page used to load in jQuery and execute a test function to ensure that it works.</p><div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">src</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;http://www.google.com/jsapi&quot;</span>&gt;&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;</span>google.load(&quot;jquery&quot;, &quot;1.3.2&quot;);<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;</span>$(document).ready(function(){$(&quot;.expanded&quot;).hide();$(&quot;a&quot;).click(function(){$(&quot;.expanded&quot;).fadeIn(600);});})<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">p</span> <span style="color: #000066;color: #FF0000;">class</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;expanded&quot;</span>&gt;</span>Who uses paragraphs anymore?<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">p</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">a</span> <span style="color: #000066;color: #FF0000;">href</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;#&quot;</span>&gt;</span>Expand!?<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">a</span>&gt;</span></pre></div></div><p>Now, we&#8217;ve loaded in jQuery and are able to get cracking away. However, what if we want to add more than one library? Simple. All we do is add another instance of google.load();. Below is an example with both jQuery and jQuery UI.</p><div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;</span>
google.load(&quot;jquery&quot;, &quot;1.3.2&quot;);
google.load(&quot;jqueryui&quot;, &quot;1.7.2&quot;);
<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span></pre></div></div><p>Want to use the latest version of jQuery so you never have to update the code to match the latest version? No problem use this instead.</p><div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;</span>google.load(&quot;jquery&quot;, &quot;1.3&quot;);<span style="color: #009900;">&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span></pre></div></div><p>What this says is: &#8220;Find the latest stable release that starts with 1.3.x&#8221;. In our case it automatically found v1.3.2.</p><p>Pretty nifty eh? What&#8217;s even better is that jQuery THEMSELVES are using Google&#8217;s server to call their own JavaScript library. If you view the source code of http://www.jquery.com/ you&#8217;ll see on Line 9 the following code.</p><div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;color: #003d68;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;color: #000080;">script</span> <span style="color: #000066;color: #FF0000;">src</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot;</span> <span style="color: #000066;color: #FF0000;">type</span><span style="color: #66cc66;color: #000080;">=</span><span style="color: #ff0000;color: #000080;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;color: #000080;">/</span><span style="color: #000000; font-weight: bold;color: #000080;">script</span>&gt;</span></pre></div></div><p>This is also another way of calling jQuery from Google&#8217;s servers.</p><p>That&#8217;s it! Enjoy one less heavy server request.</p> ]]></content:encoded> <wfw:commentRss>http://www.tlswebsolutions.com/google-ajax-api-and-jquery-integration-bandwidth-free/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic

Served from: www.tlswebsolutions.com @ 2012-02-06 02:47:43 -->
