<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Dynamic Drive Forums - Blogs - ddadmin</title>
		<link>http://www.dynamicdrive.com/forums/blog.php?1-ddadmin</link>
		<description>Dynamic Drive help forum</description>
		<language>en</language>
		<lastBuildDate>Sun, 19 May 2013 02:53:31 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>10</ttl>
		<image>
			<url>http://www.dynamicdrive.com/forums/images/misc/rss.jpg</url>
			<title>Dynamic Drive Forums - Blogs - ddadmin</title>
			<link>http://www.dynamicdrive.com/forums/blog.php?1-ddadmin</link>
		</image>
		<item>
			<title>Updating Menu scripts for iPad/iPhone and Android devices</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?245-Updating-Menu-scripts-for-iPad-iPhone-and-Android-devices</link>
			<pubDate>Wed, 29 Jun 2011 06:34:01 GMT</pubDate>
			<description><![CDATA[Mobile devices such as the iPad, iPhone or Android tablets are pretty on par with modern desktop browsers when it comes to rendering JavaScript, though that's not to say they do so without hiccups. One of the more crippling limitations is mobile devices' lack of support for the onmouseover/out...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Mobile devices such as the iPad, iPhone or Android tablets are pretty on par with modern desktop browsers when it comes to rendering JavaScript, though that's not to say they do so without hiccups. One of the more crippling limitations is mobile devices' lack of support for the onmouseover/out events of JavaScript, which if you think about is more of a fundamental &quot;shortcoming&quot; of <i>touch</i> based devices in general rather than a deliberate act of omission. Regardless, this lack of support means many menu scripts on DD that rely on the onmouseover event to trigger the dropping down of a menu do not work in said devices. One way to overcome this so these menu scripts are at least functional in mobile devices is to modify them so when a mobile device is detected, the onclick event is used instead  to trigger their associated drop down menus instead of the default onmouseover. I'm sure I'll be getting an earful on better ways to target mobile devices, for for now I'm using the following scheme:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:36px;">var ismobile=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i) != null, //boolean check for popular mobile browsers</pre>
</div>I'll be going through relevant menu scripts on DD to add in the necessary modification so they are functional in the major mobile devices. The first two to get the treatment are:<br />
<br />
<b><font size="5">June 28th, 11</font></b><br />
<br />
1) <a href="http://dynamicdrive.com/dynamicindex1/dropmenuindex.htm" target="_blank">Anylink Drop Down Menu</a><br />
2) <a href="http://dynamicdrive.com/dynamicindex1/anylinkcss.htm" target="_blank">Anylink CSS Menu</a><br />
<br />
<b><font size="5">July 1st, 11</font></b><br />
<br />
1) <a href="http://www.dynamicdrive.com/dynamicindex1/popupmenu.htm" target="_blank">Flex Level Popup Menu</a><br />
<br />
<b><font size="5">July 2nd, 11</font></b><br />
<br />
1) <a href="http://www.dynamicdrive.com/dynamicindex1/flexdropdown.htm" target="_blank">Flex Level Drop Down Menu</a><br />
<br />
<b><font size="5">July 17th, 11</font></b><br />
<br />
1) <a href="http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm" target="_blank">All Levels Navigational Menu</a><br />
<br />
I'll update this list each time another menu script is updated. In general only the .js file in each case is affected unless noted otherwise. Feedback, suggestions, fire away!</blockquote>

]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?245-Updating-Menu-scripts-for-iPad-iPhone-and-Android-devices</guid>
		</item>
		<item>
			<title><![CDATA["Drop Up" option for Anylink and Anylink CSS Menu]]></title>
			<link>http://www.dynamicdrive.com/forums/entry.php?46-quot-Drop-Up-quot-option-for-Anylink-and-Anylink-CSS-Menu</link>
			<pubDate>Tue, 01 Jun 2010 08:19:18 GMT</pubDate>
			<description>Quite a few members have asked for the ability to have a menu drop upwards (instead of the default downwards) for either Anylink Menu (http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm) and Anylink CSS Menu (http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm). With that said, use...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Quite a few members have asked for the ability to have a menu drop upwards (instead of the default downwards) for either <a href="http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm" target="_blank">Anylink Menu</a> and <a href="http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm" target="_blank">Anylink CSS Menu</a>. With that said, use the below attached modified versions of the respective .js files for the two scripts to achieve this. Then, inside the HTML markup for the anchor link of a menu, to get the menu to drop up for it, make use of the data-dir attribute:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:36px;">&lt;p&gt;&lt;a href=&quot;http://www.dynamicdrive.com&quot; class=&quot;menuanchorclass&quot; rel=&quot;anylinkmenu1&quot; <font color="Red">data-dir=&quot;up&quot;</font>&gt;Default Example&lt;/a&gt;&lt;/p&gt;</pre>
</div>The presence of the attribute in red in combination with the modified .js file will cause the menu for that anchor to drop upwards.<br />
<br />
Enjoy!</blockquote>


<!-- attachments -->
	<div class="blogattachments">
		
		
		
		
			<fieldset class="blogcontent">
				<legend>Attached Files</legend>
				<ul>
					
				</ul>
			</fieldset>
		

	</div>
<!-- / attachments -->
]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?46-quot-Drop-Up-quot-option-for-Anylink-and-Anylink-CSS-Menu</guid>
		</item>
		<item>
			<title>All Levels Menu- top headers revealed onClick instead of onMouseover</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?33-All-Levels-Menu-top-headers-revealed-onClick-instead-of-onMouseover</link>
			<pubDate>Tue, 28 Jul 2009 16:36:55 GMT</pubDate>
			<description>*Original Script:* All Levels Navigational Menu v2.2 (http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm) 
 
*Changes:* This modified version of ddlevelsmenu.js causes the top level sub menus to be revealed onClick of the primary headers (instead of the default onMouseover). The...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore"><b>Original Script:</b> <a href="http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm" target="_blank">All Levels Navigational Menu v2.2</a><br />
<br />
<b>Changes:</b> This modified version of ddlevelsmenu.js causes the top level sub menus to be revealed onClick of the primary headers (instead of the default onMouseover). The remaining sub levels are still revealed onMouseover like before.<br />
<br />
<b>Usage:</b> Just replace the original .js file with the modified one.</blockquote>


<!-- attachments -->
	<div class="blogattachments">
		
		
		
		
			<fieldset class="blogcontent">
				<legend>Attached Files</legend>
				<ul>
					
				</ul>
			</fieldset>
		

	</div>
<!-- / attachments -->
]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?33-All-Levels-Menu-top-headers-revealed-onClick-instead-of-onMouseover</guid>
		</item>
		<item>
			<title>Dynamically minimizing a DHTML Window</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?31-Dynamically-minimizing-a-DHTML-Window</link>
			<pubDate>Fri, 19 Jun 2009 21:46:29 GMT</pubDate>
			<description><![CDATA[*Original Script:* DHTML Window (http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm) 
 
By default the DHTML Window script can only be minimized by clicking on the "minimize" icon located on the upper right of the opened window. Someone asked on the forums if there's a way to do this...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore"><b>Original Script:</b> <a href="http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm" target="_blank">DHTML Window</a><br />
<br />
By default the DHTML Window script can only be minimized by clicking on the &quot;minimize&quot; icon located on the upper right of the opened window. Someone asked on the forums if there's a way to do this dynamically, such as via a link instead. Well, certainly. Given the below example DHTML Window:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:36px;">var googlewin=dhtmlwindow.open(&quot;googlebox&quot;, &quot;iframe&quot;, &quot;http://images.google.com/&quot;, &quot;#1: Google Web site&quot;, &quot;width=590px,height=350px,resize=1,scrolling=1,center=1&quot;, &quot;recal&quot;)</pre>
</div>To dynamically &quot;minimize&quot; it, you can call the internal function:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:36px;">dhtmlwindow.minimize(googlewin.controls.firstChild, googlewin)</pre>
</div>where &quot;<code style="background-color: #FFFFBB">googlewin</code>&quot; in the above case is the variable assigned to the DHTML window when you opened it. The following creates a link that minimizes this window:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:36px;">&lt;a href=&quot;#&quot; onClick=&quot;dhtmlwindow.minimize(googlewin.controls.firstChild, googlewin)&quot;&gt;Minimize Window&lt;/a&gt;</pre>
</div></blockquote>

]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?31-Dynamically-minimizing-a-DHTML-Window</guid>
		</item>
		<item>
			<title><![CDATA["Operation Aborted" error in IE when inserting new elements into the DOM, and fix]]></title>
			<link>http://www.dynamicdrive.com/forums/entry.php?30-quot-Operation-Aborted-quot-error-in-IE-when-inserting-new-elements-into-the-DOM-and-fix</link>
			<pubDate>Wed, 03 Jun 2009 19:48:28 GMT</pubDate>
			<description><![CDATA[The DOM lets you dynamically create and add elements to the page, such as the following, which creates an image on the fly and adds it to the end of the document: 
 
 
Code: 
--------- 
var img=document.createElement("img") 
img.setAttribute('src', 'dd.gif') 
document.body.appendChild(img)...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">The DOM lets you dynamically create and add elements to the page, such as the following, which creates an image on the fly and adds it to the end of the document:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:60px;">var img=document.createElement(&quot;img&quot;)
img.setAttribute('src', 'dd.gif')
document.body.appendChild(img)</pre>
</div>Ideally such an operation should be done after the document has loaded, though in most browsers, I noticed you can get away with it. In IE6 and IE7, however, things get a lot more unpredictable, and in the worst case scenario, disastrous. The exact curcumstances in which this can occur is described in the article &quot;<a href="http://support.microsoft.com/kb/927917/" target="_blank">Why do I receive an &quot;Operation aborted&quot; error message when I visit a Web page in Internet Explorer?</a>&quot;. I encountered this first hand while trying to debug <a href="http://dynamicdrive.com/dynamicindex1/dropmenuindex.htm" target="_blank">Anylink JS Menu</a>. This script dynamically adds a DIV to the page, with the operation run at the end of the document (instead of after it has fully loaded). I thought such timing would suffice in all the relevant browsers, and in my own testing, it does, including in IE6 and 7. Through bug reports posted on the forums, however, it became clear this wasn't always the case- depending on the page the script is added to, just calling the script- in turn trying to dynamically append an element to the document- at the bottom of the page isn't enough, and IE6/7 will fail, in a big way. Apparently when IE fails in inserting a new element to the document, it doesn't just spit out a JavaScript error, but it actually clears the entire page and shows a blank page with the error:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_quote">
		<div class="quote_container">
			<div class="bbcode_quote_container"></div>
			
				&quot;<font color="Red">Internet Explorer cannot open the Internet site. Operation Aborted</font>&quot;.
			
		</div>
	</div>
</div>It's as if you've just visited a page that failed to load. This is a severe error, and one that an illegal JavaScript operation should never lead to. But then again, we are talking about IE.<br />
<br />
The fix is fairly simple- if you're attempting to dynamically create and insert new elements into the document, always do so either after the document has fully loaded, or its DOM has (<code style="background-color: #FFFFBB">DOMContentLoaded</code>). The later is more desirable since it's fired much sooner than the former, though implementing it across browsers is more tricky. There are numerous tutorials on the web explaining how to check for DOM readiness, such as <a href="http://www.javascriptkit.com/dhtmltutors/domready.shtml" target="_blank">this</a> and <a href="http://javascript.nwbox.com/IEContentLoaded/" target="_blank">this</a> tutorial.<br />
<br />
And yes, Anylink JS Menu has been fixed for the aforementioned bug. It now is initialized on DOM ready. Here's the relevant piece of code it relies on:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:372px;">domready:function(functionref){ //based on code from the jQuery library
	if (dd_domreadycheck){
		functionref()
		return
	}
	// Mozilla, Opera and webkit nightlies currently support this event
	if (document.addEventListener) {
		// Use the handy event callback
		document.addEventListener(&quot;DOMContentLoaded&quot;, function(){
			document.removeEventListener(&quot;DOMContentLoaded&quot;, arguments.callee, false )
			functionref();
			dd_domreadycheck=true
		}, false )
	}
	else if (document.attachEvent){
		// If IE and not an iframe
		// continually check to see if the document is ready
		if ( document.documentElement.doScroll &amp;&amp; window == window.top) (function(){
			if (dd_domreadycheck) return
			try{
				// If IE is used, use the trick by Diego Perini
				// http://javascript.nwbox.com/IEContentLoaded/
				document.documentElement.doScroll(&quot;left&quot;)
			}catch(error){
				setTimeout( arguments.callee, 0)
				return;
			}
			//and execute any waiting functions
			functionref();
			dd_domreadycheck=true
		})();
	}
	// A fallback to window.onload, that will always work
	anylinkmenu.addEvent([window], function(){if (!dd_domreadycheck){functionref(); dd_domreadycheck=true}}, &quot;load&quot;);
},</pre>
</div></blockquote>

]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?30-quot-Operation-Aborted-quot-error-in-IE-when-inserting-new-elements-into-the-DOM-and-fix</guid>
		</item>
		<item>
			<title>Tab Content script- Getting it to stop auto rotating after x cycles</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?27-Tab-Content-script-Getting-it-to-stop-auto-rotating-after-x-cycles</link>
			<pubDate>Fri, 08 May 2009 00:57:09 GMT</pubDate>
			<description>*Original Script:* DD Drop Down Panel v1.01 (http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm) 
 
By default, when the script is set to auto cycle through the tabs, it does this indefinitely until the user clicks on one of the tabs. With the following modified version of the .js file, you...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore"><b>Original Script:</b> <a href="http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm" target="_blank">DD Drop Down Panel v1.01</a><br />
<br />
By default, when the script is set to auto cycle through the tabs, it does this indefinitely until the user clicks on one of the tabs. With the following modified version of the .js file, you can have it automatically stop after x cycles, even if the user doesn't click on a tab during this time. Simply use the following modified .js file. If you wish to change the # of cycles from 2 to something else, change the part in red below inside it:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:36px;">if (this.elapsedcycles &gt;= this.hottabspositions.length*<font color="Red">2</font>)</pre>
</div></blockquote>


<!-- attachments -->
	<div class="blogattachments">
		
		
		
		
			<fieldset class="blogcontent">
				<legend>Attached Files</legend>
				<ul>
					
				</ul>
			</fieldset>
		

	</div>
<!-- / attachments -->
]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?27-Tab-Content-script-Getting-it-to-stop-auto-rotating-after-x-cycles</guid>
		</item>
		<item>
			<title>Updating a JavaScript to be XHTML compliant</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?20-Updating-a-JavaScript-to-be-XHTML-compliant</link>
			<pubDate>Thu, 02 Apr 2009 05:16:06 GMT</pubDate>
			<description><![CDATA[As a webmaster you've undoubtedly noticed the increasing shift in coding practices from HTML to XHTML on the web. If you're a professional web designer, you've probably even heard it first hand from your clients who demand their web pages be XHTML compliant. I get quite a lot of emails on a monthly...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">As a webmaster you've undoubtedly noticed the increasing shift in coding practices from HTML to XHTML on the web. If you're a professional web designer, you've probably even heard it first hand from your clients who demand their web pages be XHTML compliant. I get quite a lot of emails on a monthly basis asking for help in making a webpage that contains a DHTML script to be XHTML compliant. A common misconception is that this is a difficult process, which can be no further from the truth.<br />
<br />
There are two ways to go about making a DHTML or JavaScript XHTML compliant, both should take no more than a few moments of your time.<br />
<br />
<b>Method 1:</b> For inline JavaScript, wrap the code itself in the CDATA tag coupled with some clever use of JavaScript comments to let the validator know the content within the script should not be parsed for XHTML validity:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:108px;">&lt;script type=&quot;text/javascript&quot;&gt;
<font color="Red">/*&lt;![CDATA[*/</font>
//The JavaScript code itself
//The JavaScript code itself
// etc...
<font color="Red">/*]]&gt;*/</font>
&lt;/script&gt;</pre>
</div>As you can see, just wrap any inline JavaScript with the parts in red, and you're done. You may also choose to use an alternate version of the CDATA/ JavaScript comment code:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:108px;">&lt;script type=&quot;text/javascript&quot;&gt;
<font color="Red">//&lt;![CDATA[</font>
//The JavaScript code itself
//The JavaScript code itself
// etc...
<font color="Red">//]]&gt;</font>
&lt;/script&gt;</pre>
</div>Either code wrappers work.<br />
<br />
<b>Method 2:</b> The other method for making your JavaScript XHTML compliant is to remove the entire script from your page, and place its contents inside an external JavaScript file, then reference this file on your page:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:72px;">&lt;script type=&quot;text/javascript&quot; src=&quot;myscript.js&quot;&gt;
//Comment here
//Comment here
&lt;/script&gt;</pre>
</div>Where &quot;myscript.js&quot; contains the script itself minus the surrounding SCRIPT tags. Comments within the script tags are still allowed.<br />
<br />
And there you have it. Now a JavaScript no longer has to trip up the XHTML validity of your pages!</blockquote>

]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?20-Updating-a-JavaScript-to-be-XHTML-compliant</guid>
		</item>
		<item>
			<title>DD Drop Down Panel v1.01- Adding a fade effect</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?15-DD-Drop-Down-Panel-v1-01-Adding-a-fade-effect</link>
			<pubDate>Tue, 24 Mar 2009 06:46:04 GMT</pubDate>
			<description><![CDATA[*Original Script:* DD Drop Down Panel v1.01 (http://www.dynamicdrive.com/dynamicindex17/dddropdownpanel.htm) 
 
*Changes:* This modified version of dddropdownpanel.js adds an optional fade effect to the original slide up/down animation, so both effects are shown simultaneously. If you're looking...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore"><b>Original Script:</b> <a href="http://www.dynamicdrive.com/dynamicindex17/dddropdownpanel.htm" target="_blank">DD Drop Down Panel v1.01</a><br />
<br />
<b>Changes:</b> This modified version of dddropdownpanel.js adds an optional fade effect to the original slide up/down animation, so both effects are shown simultaneously. If you're looking for more flare for the animation, this is it!<br />
<br />
<b>Usage:</b> Just replace the original .js file with the modified one. The fade effect can be toggled at the end of the .js file where you initialize the script:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:108px;">var defaultpanel=new ddpanel({
	ids: [&quot;mypanel&quot;, &quot;mypanelcontent&quot;, &quot;mypaneltab&quot;], // id of main panel DIV, content DIV, and tab DIV
	stateconfig: {initial: &quot;5px&quot;, persiststate: true}, // initial: initial reveal amount in pixels (ie: 5px)
	animate: {enabled: true, <font color="Red">fadeeffect: true</font>, steps: 20}, //steps: number of animation steps. Int between 1-20. Smaller=faster.
	pointerimage: {enabled: true, src: [&quot;arrow-down.gif&quot;, &quot;arrow-up.gif&quot;]},
	closepanelonclick: {enabled: true} // close panel when links or elements with CSS class=&quot;closepanel&quot; within container is clicked on?
})</pre>
</div></blockquote>


<!-- attachments -->
	<div class="blogattachments">
		
		
		
		
			<fieldset class="blogcontent">
				<legend>Attached Files</legend>
				<ul>
					
				</ul>
			</fieldset>
		

	</div>
<!-- / attachments -->
]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?15-DD-Drop-Down-Panel-v1-01-Adding-a-fade-effect</guid>
		</item>
		<item>
			<title>IE8 has arrived- so has the work to ensure DD scripts are compatible in it</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?14-IE8-has-arrived-so-has-the-work-to-ensure-DD-scripts-are-compatible-in-it</link>
			<pubDate>Fri, 20 Mar 2009 03:07:03 GMT</pubDate>
			<description><![CDATA[Well, IE8 was officially released today (http://www.microsoft.com/windows/internet-explorer/default.aspx), and most reviews I've come across on the web seems to be more or less positive, some even saying it puts IE back on top of FF...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Well, IE8 was officially <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx" target="_blank">released today</a>, and most reviews I've come across on the web seems to be more or less positive, some even saying it <a href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;articleId=9129906" target="_blank">puts IE back on top of FF</a>. I've been using IE8 since the beta releases, and to me it's no FF killer. But personal feelings aside, the fact of the matter is, IE8 has arrived, it will eventually become the top browser market share wise in time as it's fed to Windows users, and unfortunately, this means it's also time to go through all scripts on DD to ensure they are compatible in IE8.<br />
<br />
I'll be using this entry to update folks on scripts that have just been modified for the sake of IE8 moving forward. These updates may not show up on the <a href="http://www.dynamicdrive.com/revised.htm" target="_blank">DD Revised Scripts Page</a> if they are minor in nature, so you should check in here instead. Feel free to let me know of a particular DD script that doesn't work in IE8 as well (by replying here).<br />
<br />
For those do-it-yourself kind of people, there are resources on the web on getting JavaScript to properly work in IE8, from the <a href="http://www.dynamicdrive.com/forums/blog.php?b=4" target="_blank">simpliest but least graceful</a> to <a href="http://blogs.msdn.com/ie/archive/2009/03/12/site-compatibility-and-ie8.aspx" target="_blank">getting to the possible root of the issue</a>.<br />
<br />
IE8, for better or for worse, welcome.</blockquote>

]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?14-IE8-has-arrived-so-has-the-work-to-ensure-DD-scripts-are-compatible-in-it</guid>
		</item>
		<item>
			<title>Simple Controls Gallery- Adding left/right arrow keys navigation</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?12-Simple-Controls-Gallery-Adding-left-right-arrow-keys-navigation</link>
			<pubDate>Fri, 06 Mar 2009 20:30:10 GMT</pubDate>
			<description>*Original Script:* Simple Controls Gallery v1.3 (http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm) 
 
*Changes:* This modified version of simplegallery.js hooks up the left and right arrow keys on the keyboard so pressing them moves the gallery back and forth, respectively, in addition...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore"><b>Original Script:</b> <a href="http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm" target="_blank">Simple Controls Gallery v1.3</a><br />
<br />
<b>Changes:</b> This modified version of simplegallery.js hooks up the left and right arrow keys on the keyboard so pressing them moves the gallery back and forth, respectively, in addition to the default navigation methods of course.<br />
<br />
<b>Usage:</b> Just replace the original .js file with the modified one.</blockquote>


<!-- attachments -->
	<div class="blogattachments">
		
		
		
		
			<fieldset class="blogcontent">
				<legend>Attached Files</legend>
				<ul>
					
				</ul>
			</fieldset>
		

	</div>
<!-- / attachments -->
]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?12-Simple-Controls-Gallery-Adding-left-right-arrow-keys-navigation</guid>
		</item>
		<item>
			<title>Using Google to host your jQuery (or other) JavaScript libraries</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?11-Using-Google-to-host-your-jQuery-(or-other)-JavaScript-libraries</link>
			<pubDate>Thu, 05 Mar 2009 21:28:41 GMT</pubDate>
			<description><![CDATA[A growing number of scripts here on DD utilize the popular jQuery JavaScript library (http://docs.jquery.com/Downloading_jQuery) as its backbone, which means at the top of these scripts you'll see a reference such as: 
 
 
Code: 
--------- 
<script type="text/javascript"...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">A growing number of scripts here on DD utilize the popular <a href="http://docs.jquery.com/Downloading_jQuery" target="_blank">jQuery JavaScript library</a> as its backbone, which means at the top of these scripts you'll see a reference such as:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:36px;">&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.2.6.pack.js&quot;&gt;&lt;/script&gt;</pre>
</div>which obviously requires you to download and host &quot;jquery-1.2.6.pack.js&quot; locally on your server. For those of you who likes to minimize hosting your own files for whatever reason, Google does provide the service of remote hosting of all of the popular JavaScript libraries- including jQuery- in which all you have to do is point your script to access that library on Google's server instead.<br />
<br />
There are two ways to access jQuery on Google's server.<br />
<br />
<b>1) A direct, static reference to the desired jQuery file/ version:</b><br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:36px;">&lt;script type=&quot;text/javascript&quot; src=&quot;<font color="Red">http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js</font>&quot;&gt;&lt;/script&gt;</pre>
</div>As of writing version 1.3.2 is the latest version of jQuery, so I've chosen to access that particular file. Google hosts previous versions of the library as well unless <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery" target="_blank">otherwise noted</a>, such as &quot;1.2.6/jquery.min.js&quot;, if you wish to access that instead.<br />
<br />
In general method 1) is the simplest way to take advantage of Google hosted libraries, and is the approach we will be slowly implementing for future jQuery related scripts here on DD. An example would be the updated <a href="http://dynamicdrive.com/dynamicindex17/animatedcollapse.htm" target="_blank">Animated Collapsible DIV script</a>.<br />
<br />
<b>2) A dynamic reference to the desired jQuery file using Google Ajax API:</b><br />
<br />
This approach lets you reference a version of jQuery more generically, so instead of being locked into a specific version of jQuery (that will become outdated in time), you can, for example, reference the latest build of version 1.3.x (with x always reflecting the latest minor release at the time). Lets start with just referencing version 1.3.2 of jQuery, however:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:180px;">&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.google.com/jsapi&quot;&gt;&lt;/script&gt;

&lt;script type=&quot;text/javascript&quot;&gt;

google.load(&quot;jquery&quot;, &quot;1.3.2&quot;); //load version 1.3.2 of jQuery

google.setOnLoadCallback(function() {
  jQuery(function($) {
    // run your jQuery code in here after DOM has loaded
  });
});

&lt;/script&gt;</pre>
</div>When accessing jQuery dynamically using Google's Ajax API, you must use <code style="background-color: #FFFFBB">google.setOnLoadCallback()</code> instead of the venerable <code style="background-color: #FFFFBB">jQuery(document).ready()</code> function to execute any code once the document's DOM has become available. That's because jQuery is now being dynamically loaded, and only by using <code style="background-color: #FFFFBB">google.setOnLoadCallback()</code> can you reliably know when jQuery has fully loaded (including access to <code style="background-color: #FFFFBB">jQuery(document).ready()</code>).<br />
<br />
Using the Google Ajax API syntax, if you wish to load the latest version of jQuery 1.3.x, you'd just do:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:36px;">google.load(&quot;jquery&quot;, &quot;1.3&quot;); //load latest version 1.3.x of jQuery</pre>
</div>Personally I'm not a fan of this second approach of accessing jQuery on Google. It requires loading Google's Ajax API first (which slows things down a bit), use of the &quot;awkward&quot; <code style="background-color: #FFFFBB">google.setOnLoadCallback()</code>, plus the automatic versioning feature which if used may actually break a jQuery script that's not tested in the latest version.</blockquote>

]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?11-Using-Google-to-host-your-jQuery-(or-other)-JavaScript-libraries</guid>
		</item>
		<item>
			<title>Featured Content Glider- Fade instead of Glide</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?7-Featured-Content-Glider-Fade-instead-of-Glide</link>
			<pubDate>Tue, 03 Mar 2009 00:45:02 GMT</pubDate>
			<description>*Original Script:* Featured Content Glider (http://www.dynamicdrive.com/dynamicindex17/featuredcontentglider.htm) 
 
*Changes:* By default this script glides the contents into view. With this mod, it fades them into view instead. 
 
*Usage:* Just replace the original .js file with the modified one.</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore"><b>Original Script:</b> <a href="http://www.dynamicdrive.com/dynamicindex17/featuredcontentglider.htm" target="_blank">Featured Content Glider</a><br />
<br />
<b>Changes:</b> By default this script glides the contents into view. With this mod, it fades them into view instead.<br />
<br />
<b>Usage:</b> Just replace the original .js file with the modified one.</blockquote>


<!-- attachments -->
	<div class="blogattachments">
		
		
		
		
			<fieldset class="blogcontent">
				<legend>Attached Files</legend>
				<ul>
					
				</ul>
			</fieldset>
		

	</div>
<!-- / attachments -->
]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?7-Featured-Content-Glider-Fade-instead-of-Glide</guid>
		</item>
		<item>
			<title>Featured Content Slider v2.4- Pause content rotation onMouseover</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?6-Featured-Content-Slider-v2-4-Pause-content-rotation-onMouseover</link>
			<pubDate>Mon, 02 Mar 2009 06:13:02 GMT</pubDate>
			<description>*Original Script:* Featured Content Slider v2.4 (http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm) 
 
*Changes:* The following modified .js file causes the script to pause the rotating of each slide (in auto mode) whenever the user rolls the mouse over the Slider or the...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore"><b>Original Script:</b> <a href="http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm" target="_blank">Featured Content Slider v2.4</a><br />
<br />
<b>Changes:</b> The following modified .js file causes the script to pause the rotating of each slide (in auto mode) whenever the user rolls the mouse over the Slider or the pagination links, and resume playing onMouseout.<br />
<br />
<b>Usage:</b> Just replace the original .js file with the modified one.</blockquote>


<!-- attachments -->
	<div class="blogattachments">
		
		
		
		
			<fieldset class="blogcontent">
				<legend>Attached Files</legend>
				<ul>
					
				</ul>
			</fieldset>
		

	</div>
<!-- / attachments -->
]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?6-Featured-Content-Slider-v2-4-Pause-content-rotation-onMouseover</guid>
		</item>
		<item>
			<title>Welcome to the new DD Blog</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?5-Welcome-to-the-new-DD-Blog</link>
			<pubDate>Mon, 02 Mar 2009 05:35:25 GMT</pubDate>
			<description><![CDATA[Just a quick welcome to the new DD Blog! Currently the following usergroups have permission to post in the Blog: 
 
- Senior Members 
- Elite Members 
- Mods and Admin 
 
All other members have permission to read the blog and post comments to an entry. Personally I'll be using the Blog mainly to...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Just a quick welcome to the new DD Blog! Currently the following usergroups have permission to post in the Blog:<br />
<br />
- Senior Members<br />
- Elite Members<br />
- Mods and Admin<br />
<br />
All other members have permission to read the blog and post comments to an entry. Personally I'll be using the Blog mainly to post modifications to <a href="http://www.dynamicdrive.com" target="_blank">DD related Scripts</a> asked by members on the forums and that could benefit the general audience as well.<br />
<br />
For the above 3 usergroups with permission to post in the Blog, please observe the following guidelines when doing so:<br />
<br />
1) The Blog should not be used just to make short passing remarks or the chance to lead the user to another site. It is a way to share your knowledge with other members without having to be asked first a question, which is the case on the forums. Use it to post your favorite snippet of code, tip, or other info you think is worthy of an audience. Each entry should contain enough info to be useful in its own right, and not just a sentence or two that then leads people off to another URL.<br />
<br />
2) There is an &quot;off topic&quot; category where you can post misc related entries. You can use that to share something about your daily lives deemed interesting, for example, but again, avoid the short passing remarks that's devoid of any substance or just a chance to spread a link.<br />
<br />
3) Please categorize your entry based on the available categories.<br />
<br />
4) You can transfer the contents of a post (should be your own) to become a Blog Entry instead. For example, alot of you have posted in the <a href="http://www.dynamicdrive.com/forums/forumdisplay.php?f=25" target="_blank">Coding Tips and Tutorials forum</a>. A lot of these posts probably are better served as a blog entry instead. Just click on the little <img src="http://www.dynamicdrive.com/forums/images/misc/blog/blogpost.gif" border="0" alt="" /> icon to the lower right of the post to get started.<br />
<br />
In summary, The Blog should only not be used just to post any random thought that comes into your head. The idea is to create an archive of helpful and interesting information that can't be done so easily using the forums alone.<br />
<br />
That's all for now!</blockquote>

]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?5-Welcome-to-the-new-DD-Blog</guid>
		</item>
		<item>
			<title>IE8 beta and CSS/ JavaScript compatibility quick fix</title>
			<link>http://www.dynamicdrive.com/forums/entry.php?4-IE8-beta-and-CSS-JavaScript-compatibility-quick-fix</link>
			<pubDate>Fri, 27 Feb 2009 06:33:47 GMT</pubDate>
			<description>IE8 has yet to formally launch, though the Beta and RC releases (http://www.microsoft.com/windows/internet-explorer/beta/) have been available for download for developers and those curious already. The advent of a new browser always brings up new issues with compatibility, and IE8 beta is no...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">IE8 has yet to formally launch, though the <a href="http://www.microsoft.com/windows/internet-explorer/beta/" target="_blank">Beta and RC releases</a> have been available for download for developers and those curious already. The advent of a new browser always brings up new issues with compatibility, and IE8 beta is no different. I've gotten quite a few emails lately regarding a DHTML script or CSS code not quite working properly in the new browser. A handful of scripts on DD fall into this group. I plan on eventually checking all scripts on DD for IE8 once it's officially released, when all the dust has settled in terms of changes to the browser's rendering engine. In the meantime, however, a quick way to fix pages on your site that don't quite function properly in IE8 beta is just to add the IE7 mode meta tag to the HEAD of your page:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:60px;">&lt;head&gt;
&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=EmulateIE7&quot; /&gt;
&lt;/head&gt;</pre>
</div>This META tag causes IE8 to utilize IE7's rendering behavior while still maintaining all IE8 features. This approach is in fact recommended by Microsoft as a way to easily resolve any current IE8 rendering issues.</blockquote>

]]></content:encoded>
			<dc:creator>ddadmin</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/entry.php?4-IE8-beta-and-CSS-JavaScript-compatibility-quick-fix</guid>
		</item>
	</channel>
</rss>
