<?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>Albertech.net &#187; AJAX</title>
	<atom:link href="http://albertech.net/category/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://albertech.net</link>
	<description>Tips, Tricks, and Reviews in Linux, Apache, MySQL, PHP</description>
	<lastBuildDate>Wed, 28 Jul 2010 16:09:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using jQuery for setting focus on an input box</title>
		<link>http://albertech.net/2010/06/using-jquery-for-setting-focus-on-an-input-box/</link>
		<comments>http://albertech.net/2010/06/using-jquery-for-setting-focus-on-an-input-box/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 17:26:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[focus]]></category>
		<category><![CDATA[input box]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=419</guid>
		<description><![CDATA[Setting a focus on an input box is a hassle with so many different browsers out there. Each browser has their own unique tag to set the focus. Rather than using the browser-specific tags for the focus, one can utilize Javascript to provide the functionality for multiple browsers. 

jQuery is a great alternative to adding the focus since its simply a matter of adding a few lines of code to your page. It will work on multiple browsers, whether it be Internet Explorer, Firefox, Chrome, or Safari.]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2010%252F06%252Fusing-jquery-for-setting-focus-on-an-input-box%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2FagA691%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Using%20jQuery%20for%20setting%20focus%20on%20an%20input%20box%22%20%7D);"></div>
<p>Setting a focus on an input box is a hassle with so many different browsers out there. Each browser has their own unique tag to set the focus. Rather than using the browser-specific tags for the focus, one can utilize Javascript to provide the functionality for multiple browsers.</p>
<p>jQuery is a great alternative to adding the focus since its simply a matter of adding a few lines of code to your page. It will work on multiple browsers, whether it be Internet Explorer, Firefox, Chrome, or Safari.</p>
<p><strong>If you want the first visible element of the page to be focused:</strong></p>
<p><code>&#60;script type="text/javascript" &#62;<br />
$(function() {<br />
$("input:text:visible:first").focus();<br />
});<br />
 &#60;/script&#62; </code></p>
<p><strong>If you want a specific element to be focused, such as a search box:</strong></p>
<p>For instance,<code>&#60;script type="text/javascript" &#62;<br />
$(function() {<br />
  $("input[name=\'MY_INPUT_NAME\']").focus();<br />
});<br />
&#60;/script&#62;</code></p>
<p>will set the focus for your input element with the name &#8220;MY_INPUT_NAME&#8221;.</p>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2010/06/using-jquery-for-setting-focus-on-an-input-box/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Developing pages within a Cisco WebVPN environment</title>
		<link>http://albertech.net/2009/09/webvpn-jquery/</link>
		<comments>http://albertech.net/2009/09/webvpn-jquery/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 17:42:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[webvpn]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=267</guid>
		<description><![CDATA[When coding your pages with Javascript/AJAX/CSS, one thing to look out for is the compatibility with your organization's remote access device. One of the devices I have to consider is the Cisco WebVPN product. It has compatibility issues with things such as the @charset "UTF-8"; and @import command in CSS files. By default jQuery doesn't work with WebVPN. In this post, I have a fix for making jQuery work with WebVPN.]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2009%252F09%252Fwebvpn-jquery%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Developing%20pages%20within%20a%20Cisco%20WebVPN%20environment%22%20%7D);"></div>
<p>When coding your pages with Javascript/AJAX/CSS, one thing to look out for is the compatibility with your organization&#8217;s remote access device. One of the devices I have to consider is the Cisco WebVPN product. It has compatibility issues with things such as the @charset &#8220;UTF-8&#8243;; and @import command in CSS files.</p>
<p><strong>Compatibility Issues:</strong></p>
<ul>
<li><strong>jQuery does NOT work in WebVPN by default</strong>. This is a HUGE problem. I have tried rolling back the jQuery version to no avail. I&#8217;m guessing the Cisco ASA WebVPN appliance doesn&#8217;t work with rewriting included files (such as a js points to another internally)<span style="color: #339966;"><span style="color: #ff0000;"><strong><br />
UPDATE 9/29/2009</strong>:<br />
<span style="color: #000000;">However, thanks to a helpful tip from <strong>kenjin </strong>there is a fix!</span><br />
<span style="color: #000000;"><br />
Go to your jQuery file (jquery.js, jquery-1.3.2.min.js, etc.) and do a search and replace with the following tag.</span><br />
</span></span><span style="color: #000000;"><strong>Locate:<br />
</strong><code>&lt;param /&gt; </code><br />
</span><span style="color: #000000;"><strong>Replace it with:<br />
</strong> <code>&lt;param name=""/&gt;</code></span><strong><span style="color: #339966;">This should resolve the WebVPN compatibility issues with jQuery.</span></strong>  </li>
<li><strong>CSS Files:</strong> any @ command in CSS files such as @import and @charset. To workaround it, remove the charset and move all linking of css files to the webpage instead.</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/09/webvpn-jquery/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Internet Explorer cache and AJAX</title>
		<link>http://albertech.net/2009/02/internet-explorer-cache-and-ajax/</link>
		<comments>http://albertech.net/2009/02/internet-explorer-cache-and-ajax/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 01:38:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=85</guid>
		<description><![CDATA[<strong>The cache in Internet Explorer is not very AJAX friendly for GET/POST commands</strong>. You must put in a constantly changing variable in the URL such as date with seconds in Internet Explorer. I noticed this when the refresh of my GET command would only work once in my <strong>window.setInterval</strong>(.. , .. ) function.  However, in Mozilla and Safari, my function was working perfect.

The solution to this is to append the current date and time into the URL of your GET/POST request. <a href="http://weblogs.asp.net/pleloup/archive/2006/06/08/451583.aspx">Special thanks to this post</a>.

<code>...

var requeststring = "http://........."+"&#38;requesttime=" + new Date().getTime();
myHttpObject.open("GET",requeststring,true);

...</code>

 

I previously tried setting the cache to expire on the PHP header ... ]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2009%252F02%252Finternet-explorer-cache-and-ajax%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Internet%20Explorer%20cache%20and%20AJAX%22%20%7D);"></div>
<p><strong>The cache in Internet Explorer is not very AJAX friendly for GET/POST commands</strong>. You must put in a constantly changing variable in the URL such as date with seconds in Internet Explorer. I noticed this when the refresh of my GET command would only work once in my <strong>window.setInterval</strong>(.. , .. ) function.  However, in Mozilla and Safari, my function was working perfect.</p>
<p>The solution to this is to append the current date and time into the URL of your GET/POST request. <a href="http://weblogs.asp.net/pleloup/archive/2006/06/08/451583.aspx">Special thanks to this post</a>.</p>
<p><code>...</p>
<p>var requeststring = "http://........."+"&amp;requesttime=" + new Date().getTime();<br />
myHttpObject.open("GET",requeststring,true);</p>
<p>...</code></p>
<p> </p>
<p>I previously tried setting the cache to expire on the PHP header files, but it has no effect. However, this date/time trick works.</p>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/02/internet-explorer-cache-and-ajax/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Review: jQuery dropdown menu</title>
		<link>http://albertech.net/2009/02/review-jquery-dropdown-menu/</link>
		<comments>http://albertech.net/2009/02/review-jquery-dropdown-menu/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 01:00:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[dropdown menu]]></category>
		<category><![CDATA[jdmenu]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=81</guid>
		<description><![CDATA[Over the weekend, I ran across a dropdown script called <a href="http://jdsharp.us/jQuery/plugins/jdMenu/">jdMenu</a> that runs off the <a href="http://jquery.com/">jQuery </a>library. It turned out to work great for me, as long as the level of menus is maxed at 2. I prefer using scripts that use the jQuery library in order to simplify the maintenance of scripts and to speed up development of Ajax scripts.

From my experience, modern dropdown menus should only use &#60;ul&#62;&#60;li&#62; hierarchy tags to make it easy to maintain. As long as the coder knows HTML, they should be able to modify the dropdown menu. I've used dropdown menu ... ]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Falbertech.net%252F2009%252F02%252Freview-jquery-dropdown-menu%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Review%3A%20jQuery%20dropdown%20menu%22%20%7D);"></div>
<p>Over the weekend, I ran across a dropdown script called <a href="http://jdsharp.us/jQuery/plugins/jdMenu/">jdMenu</a> that runs off the <a href="http://jquery.com/">jQuery </a>library. It turned out to work great for me, as long as the level of menus is maxed at 2. I prefer using scripts that use the jQuery library in order to simplify the maintenance of scripts and to speed up development of Ajax scripts.</p>
<p>From my experience, modern dropdown menus should only use &lt;ul&gt;&lt;li&gt; hierarchy tags to make it easy to maintain. As long as the coder knows HTML, they should be able to modify the dropdown menu. I&#8217;ve used dropdown menu scripts in the past that had javascript arrays, which are a huge hassle to maintain. Not to mention accessibility issues. jdMenu uses the list HTML structure, and does an efficient job at it. The script loads fast.</p>
<p>The only downside to the script is the development documentation and support, but I figured out how to modify the script to meet my needs.  For instance, I&#8217;ve converted the top level navigation links to images and used CSS to display the rollover of the images. If you want clickable top level links, make sure you DO NOT use the class=&#8221;accessibility&#8221; option.  The jdMenu script is definitely one to consider if you want to use dropdown scripts with CSS. Very fast and easy to rewrite to meet your specific needs.</p>
<p><strong>Pros:<br />
</strong><br />
<strong>Very fast</strong> &#8211;actual script is only 3Kb<br />
<strong>Works with search engines</strong> &#8212; plain unordered lists UL/LI HTML<br />
<strong>Very easy to customize</strong> &#8212; jQuery code is easy to update<br />
<strong>Works with IE6 and IE7 </strong>&#8211; There is a known issue where IE6/IE7 places select boxes on top of EVERY element in the page. This script takes care of that. I know many other scripts do not have this fix built-in.</p>
<p><strong>Cons:<br />
</strong><br />
<strong>Limited documentation</strong>, but the code is easy to understand. Just need to have a handle of HTML and some JS in order to get started.<br />
<strong>3rd level+ menu order isn&#8217;t fully supported</strong>. I suggest not having menus written with that many levels anyway, too confusing for the user.</p>

]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/02/review-jquery-dropdown-menu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
