<?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>Vladimir Cvetic &#187; JavaScript</title>
	<atom:link href="http://www.hazaah.com/cat/programming/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hazaah.com</link>
	<description>buffle the world</description>
	<lastBuildDate>Thu, 12 Nov 2009 14:30:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Aptana (eclipse) YUI compressor</title>
		<link>http://www.hazaah.com/programming/javascript/aptana-eclipse-yui-compressor/</link>
		<comments>http://www.hazaah.com/programming/javascript/aptana-eclipse-yui-compressor/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 10:24:01 +0000</pubDate>
		<dc:creator>Vladimir Cvetic</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.hazaah.com/?p=157</guid>
		<description><![CDATA[This post is mostly note to self&#8230; but some may find it useful.
For javascript compression, merging etc on Aptana (&#8230;eclipse&#8230;) use:
http://www.rockstarapps.com/joomla-1.5.8/products/downloads.html
]]></description>
			<content:encoded><![CDATA[<p>This post is mostly note to self&#8230; but some may find it useful.</p>
<p>For javascript compression, merging etc on Aptana (&#8230;eclipse&#8230;) use:<br />
<a href="http://www.rockstarapps.com/joomla-1.5.8/products/downloads.html">http://www.rockstarapps.com/joomla-1.5.8/products/downloads.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hazaah.com/programming/javascript/aptana-eclipse-yui-compressor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ferdinand.PhotoTag &#8211; Facebook like photo tagging</title>
		<link>http://www.hazaah.com/programming/php/ferdinandphototag-facebook-like-photo-tagging/</link>
		<comments>http://www.hazaah.com/programming/php/ferdinandphototag-facebook-like-photo-tagging/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 14:21:57 +0000</pubDate>
		<dc:creator>Vladimir Cvetic</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.hazaah.com/?p=147</guid>
		<description><![CDATA[I have just released very simple photo tagging solution. It works much like Facebook tagging and requires Prototype and optionally PHP5/MySQL (you can always make backend from scratch in any lang/db you wish&#8230; it requires novice skills).
Tested in Firefox, IE6+, Safari and Chrome.
Here is the link: http://ferdinand.rs/javascript/ferdinandphototag
]]></description>
			<content:encoded><![CDATA[<p>I have just released very simple photo tagging solution. It works much like Facebook tagging and requires Prototype and optionally PHP5/MySQL (you can always make backend from scratch in any lang/db you wish&#8230; it requires novice skills).</p>
<p>Tested in Firefox, IE6+, Safari and Chrome.</p>
<p>Here is the link: <a href="http://ferdinand.rs/javascript/ferdinandphototag">http://ferdinand.rs/javascript/ferdinandphototag</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hazaah.com/programming/php/ferdinandphototag-facebook-like-photo-tagging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ferdinand.Slider &#8211; Javascript news slider</title>
		<link>http://www.hazaah.com/programming/ferdinand-slider/</link>
		<comments>http://www.hazaah.com/programming/ferdinand-slider/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 14:59:37 +0000</pubDate>
		<dc:creator>Vladimir Cvetic</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>

		<guid isPermaLink="false">http://www.hazaah.com/?p=121</guid>
		<description><![CDATA[Moved
Go to new addres >>

location.href="http://ferdinand.rs/javascript/ferdinandslider";

]]></description>
			<content:encoded><![CDATA[<h1>Moved</h1>
<p><a href="http://ferdinand.rs/javascript/ferdinandslider">Go to new addres >></a><br />
<script>
location.href="http://ferdinand.rs/javascript/ferdinandslider";
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hazaah.com/programming/ferdinand-slider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JLoader PHP Class</title>
		<link>http://www.hazaah.com/programming/php/jloader-php-class/</link>
		<comments>http://www.hazaah.com/programming/php/jloader-php-class/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 11:49:07 +0000</pubDate>
		<dc:creator>Vladimir Cvetic</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.hazaah.com/?p=98</guid>
		<description><![CDATA[So here is one very simple php class. In past it has proven to be very useful in cases where you need to load multiple javascript files or on large project with a lot of modules (especially if those modules are developed by different persons).
It will help you to avoid double js file loads, it [...]]]></description>
			<content:encoded><![CDATA[<p>So here is one very simple php class. In past it has proven to be very useful in cases where you need to load multiple javascript files or on large project with a lot of modules (especially if those modules are developed by different persons).<br />
It will help you to avoid double js file loads, it will also help you keep only one copy of each js file on server.</p>
<p>Enjoy:</p>
<pre>
/**
 * @author Vladimir Cvetic @ Ferdinand Development
 * @email vladimir@ferdinand.rs
 * @phone +381 60 5000240
 *
 * @version 1.0.0
 *
 * Example 1:
 * $jloader = new JLoader();
 * $jloader->load('prototype', '1.6.0.2');
 * $jloader->printjs();
 * Output:
 * <script type="text/javascript" src="/common/jloader/prototype/prototype.js?ver=1.6.0.2"></script>
 *
 * Example 2:
 * $jloader = new JLoader();
 * $jloader->load('prototype', '1.6.0.2');
 * $jloader->load('prototype', false, '/javascript/my_prototype.js');
 * $jloader->printjs();
 * Output:
 * <script type="text/javascript" src="/javascript/my_prototype.js"></script>
 *
 * Example 3:
 * $jloader = new JLoader();
 * $jloader->repository = "/javascript/";
 * $jloader->load('prototype', '1.6.0.2');
 * $jloader->printjs();
 * Output:
 * <script type="text/javascript" src="/javascript/prototype/prototype.js?ver=1.6.0.2"></script>
 *
 * Example 4:
 * $jloader = new JLoader();
 * $jloader->repository = "/javascript/";
 * $jloader->load('prototype', '1.6.0.2');
 * $jloader->load('mootools', '1.2');
 * $jloader->load('custom_script', '1.0', '/scripts/custom_script.js', array('scriptaculous','jquery'));
 * $jloader->printjs();
 * Output:
 * <script type="text/javascript" src="/javascript/prototype/prototype.js?ver=1.6.0.2"></script>
 * <script type="text/javascript" src="/javascript/mootools/mootools.js?ver=1.2"></script>
 * <script type="text/javascript" src="/javascript/scriptaculous/scriptaculous.js"></script>
 * <script type="text/javascript" src="/javascript/jquery/jquery.js"></script>
 * <script type="text/javascript" src="/scripts/custom_script.js?ver=1.0"></script>
 */
class JLoader{

	public $loaded = array();
	public $repository = "/common/jloader";
	public $home_path = "/www/mysite";

	function JLoader()
	{
		return true;
	}

	/**
	 *
	 * @since 1.0.0
	 *
	 * @param string $handler Valid external file handler name.
	 * @param int|bool $ver Optional. Script version number. Default is false.
	 * @param array|bool $depends Array of valid handler dependencies.
	 * @return bool
	 */
	function load($handler, $ver = false, $src = false, $depends=false)
	{
		global $conf;

		if ($src!=false)
		{
			$src = $src;
		}
		elseif ($ver!=false)
		{
			$src = $this->repository."/$handler/$handler.js?ver=$ver";
		}
		else
		{
			$src = $this->repository."/$handler/$handler.js";
		}

		if ($src!=false)
		{
			if (!file_exists($src))
			{
				trigger_error("ExtLoader::load($handler, $ver, $src) sad file ".$src." doesn't exist.");
				return false;
			}
		}
		else
		{
			if (!file_exists($this->home_path.$src))
			{
				trigger_error("ExtLoader::load($handler, $ver, $src) sad file ".$this->home_path.$src." doesn't exist.");
				return false;
			}
		}
		if ($depends!=false)
		{
			foreach($depends as $script)
			{
				$this->load($script);
			}
		}
		$this->loaded[$handler] = '<script type="text/javascript" src="'.$src.'"></script>';

		return true;
	}

	/**
	 * Print loaded Javascript files.
	 *
	 * @since 1.0.0
	 *
	 * @return unknown
	 */
	function printjs()
	{

		foreach($this->loaded as $script)
		{
			echo $script."\n";
		}
	}

}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hazaah.com/programming/php/jloader-php-class/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Mozilla: &#8220;event is not defined&#8221;</title>
		<link>http://www.hazaah.com/programming/javascript/mozilla-event-is-not-defined/</link>
		<comments>http://www.hazaah.com/programming/javascript/mozilla-event-is-not-defined/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 11:28:42 +0000</pubDate>
		<dc:creator>Vladimir Cvetic</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.hazaah.com/programming/javascript/mozilla-event-is-not-defined/</guid>
		<description><![CDATA[One of most common event related questions I got is about error in Mozilla browsers &#8220;event is not defined&#8221;.
IE and Mozilla treat event variable differently, while in IE it is a global variable (accessible without passing it to the function) in Mozilla you need to pass it every time (which btw is by w3c standards).

Example [...]]]></description>
			<content:encoded><![CDATA[<p>One of most common event related questions I got is about error in Mozilla browsers &#8220;event is not defined&#8221;.<br />
IE and Mozilla treat event variable differently, while in IE it is a global variable (accessible without passing it to the function) in Mozilla you need to pass it every time (which btw is by w3c standards).</p>
<p>
Example 1:<br />
<small>this would work in IE, but <strong style="color:red">NOT</strong> in Mozilla</small></p>
<pre>
element.onkeypress = function() {
return isNumberInput(this, event);
};
</pre>
</p>
<p>
Example 2:<br />
<small>this works in IE <strong style="color:green">AND</strong> Mozilla</small><br />
<small><strong>notice that event variable is passed to the function</strong></small></p>
<pre>
element.onkeypress = function(event) {
return isNumberInput(this, event);
};
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hazaah.com/programming/javascript/mozilla-event-is-not-defined/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cross-Site XMLHttpRequest</title>
		<link>http://www.hazaah.com/programming/javascript/cross-site-xmlhttprequest/</link>
		<comments>http://www.hazaah.com/programming/javascript/cross-site-xmlhttprequest/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 15:04:39 +0000</pubDate>
		<dc:creator>Vladimir Cvetic</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.hazaah.com/programming/javascript/cross-site-xmlhttprequest/</guid>
		<description><![CDATA[I&#8217;ve just finished writing up some docs on the new Cross-Site XMLHttpRequest feature in Firefox 3. I was a little worried at first, but it definitely appears to be both easy-to-implement and easy-to-use. Specifically, it&#8217;s an implementation of the W3C Access Control working draft (which is respected by Firefox&#8217;s XMLHttpRequest).

If you&#8217;re interested in giving it [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>I&#8217;ve just finished writing up some docs on the new Cross-Site XMLHttpRequest feature in Firefox 3. I was a little worried at first, but it definitely appears to be both easy-to-implement and easy-to-use. Specifically, it&#8217;s an implementation of the W3C Access Control working draft (which is respected by Firefox&#8217;s XMLHttpRequest).<br />
<br />
If you&#8217;re interested in giving it a try you should fire up your copy of Firefox 3 and get ready to take it for a spin.<br />
<br />
In a nutshell, there are two techniques that you can use to achieve your desired cross-site-request result: Specifying a special Access-Control header for your content or including an access-control processing instruction in your XML.</p></blockquote>
<p>Read original on: http://ejohn.org/blog/cross-site-xmlhttprequest/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hazaah.com/programming/javascript/cross-site-xmlhttprequest/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Experiment: JS News Sticker</title>
		<link>http://www.hazaah.com/programming/javascript/experiment-js-news-sticker/</link>
		<comments>http://www.hazaah.com/programming/javascript/experiment-js-news-sticker/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 13:55:26 +0000</pubDate>
		<dc:creator>Vladimir Cvetic</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.knowbies.com/programming/javascript/experiment-js-news-sticker/</guid>
		<description><![CDATA[Yesturday I saw this neat news sticker in Flash and decided to try and do it in JS.
Actualy it was very easy&#8230;
Create list with title, description and background image and it will display like so: News Sticker Demo
Bah, nuf talk look at it and I hope someone finds it usefull
]]></description>
			<content:encoded><![CDATA[<p>Yesturday I saw this neat news sticker in Flash and decided to try and do it in JS.<br />
Actualy it was very easy&#8230;</p>
<p>Create list with title, description and background image and it will display like so: <a href="http://www.knowbies.com/etc/news_sticker/">News Sticker Demo</a></p>
<p>Bah, nuf talk look at it and I hope someone finds it usefull</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hazaah.com/programming/javascript/experiment-js-news-sticker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript: PopupGUI 0.1</title>
		<link>http://www.hazaah.com/programming/javascript/javascript-popupgui-01/</link>
		<comments>http://www.hazaah.com/programming/javascript/javascript-popupgui-01/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 15:06:33 +0000</pubDate>
		<dc:creator>Vladimir Cvetic</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.knowbies.com/vladimir-cvetic/programming/javascript/javascript-popupgui-01/</guid>
		<description><![CDATA[Few days ago I have created very simple JS class for creating popup html forms.
Task was pritty specific, create dynamic form interface with ajax form submission. Apon completition of the task I noticed that the class was pritty much plug&#038;play so I decided to publish it here.
It has simple controls, you can show, hide and [...]]]></description>
			<content:encoded><![CDATA[<p>Few days ago I have created very simple JS class for creating popup html forms.<br />
Task was pritty specific, create dynamic form interface with ajax form submission. Apon completition of the task I noticed that the class was pritty much plug&#038;play so I decided to publish it here.</p>
<p>It has simple controls, you can show, hide and &#8220;save&#8221; the form. Show and hide will display layer and hide it (duh), and save will do a callback on some function which will do&#8230; what ever you want. Also there is a simple ajax apstraction that will help you do ajax callbacks.</p>
<p>When you call &#8220;#show_ElementID&#8221; element with &#8220;ElementID&#8221; will pop and behind it you will see full <em>visible screen</em> transparent shadow. This shadow provides some protection since it will stop user from doing some more actions which would flood his screen, also it looks <em>cool</em> :).</p>
<p>Well, here you go test it out in a <a href="http://www.knowbies.com/etc/popupgui_demo/">demo</a>&#8230; hope you can find some use for it.</p>
<p><strong>REQUIREMENTS:</strong> script.aculo.us 1.7.0 (<a href="http://script.aculo.us/">script.aculo.us</a>)<br />
<strong>DEMO:</strong> <a href="http://www.knowbies.com/etc/popupgui_demo/">View Simple Demonstration</a><br />
<strong>DOWNLOAD:</strong> <a href="http://knowbies.com/download/PopupGUI.js">PopupGUI 0.1</a></p>
<p>This work is licensed under a<br />
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-Share Alike 3.0 License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hazaah.com/programming/javascript/javascript-popupgui-01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>aDsense avenue &#8211; AdSense Profit search engine</title>
		<link>http://www.hazaah.com/programming/adsense-avenue-adsense-profit-search-engine/</link>
		<comments>http://www.hazaah.com/programming/adsense-avenue-adsense-profit-search-engine/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 12:33:04 +0000</pubDate>
		<dc:creator>Vladimir Cvetic</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Search Engines]]></category>

		<guid isPermaLink="false">http://www.knowbies.com/vladimir-cvetic/programming/adsense-avenue-adsense-profit-search-engine/</guid>
		<description><![CDATA[I have just released aDsense avenue software.
Basicly it is search engine created from various sources (msn, yahoo!, google, blog feeds etc) which incorporates most modern SEO tehniques to generate organic search engine visits. Content scraped from these sources and user defined RSS feeds is automatically rated by software so only the best possible content has [...]]]></description>
			<content:encoded><![CDATA[<p>I have just released <a target="_blank" href="http://www.adsenseavenue.com/">aDsense avenue</a> software.</p>
<p>Basicly it is search engine created from various sources (msn, yahoo!, google, blog feeds etc) which incorporates most modern SEO tehniques to generate organic search engine visits. Content scraped from these sources and user defined RSS feeds is automatically rated by software so only the best possible content has a chance to get published (again automatically).<br />
One of it&#8217;s best sides is that it has Google AdSense ads already placed. Lots of work has gone into deciding which is the best AdSense position. On last tree tests click through rate was amazing 24%!</p>
<p>Extensive and smart use of javascript will make search engine spiders miss all visual aspects and external links because those are generated on client side with&#8230; javascript. This tehnique is big innovation on market so aDsense avenue websites will get full benefit from it.<br />
I am very proud on this piece of software, if you would like to find out more simply go to: <a target="_blank" href="http://www.adsenseavenue.com/">www.adsenseavenue.com</a></p>
<p>Hope you like it too!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hazaah.com/programming/adsense-avenue-adsense-profit-search-engine/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Firebug, short update</title>
		<link>http://www.hazaah.com/programming/javascript/firebug-short-update/</link>
		<comments>http://www.hazaah.com/programming/javascript/firebug-short-update/#comments</comments>
		<pubDate>Fri, 30 Mar 2007 08:02:19 +0000</pubDate>
		<dc:creator>Vladimir Cvetic</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.knowbies.com/vladimir-cvetic/something-else/firebug-short-update/</guid>
		<description><![CDATA[As I wrote few days back Firebug is indeed the guilty for double page execution. Today I tested it a bit more and found out what is cosing problems. Net option (tracks load times for items on page) executes page for it&#8217;s tracking, so we get one exec from browser and second one from firebug.
At [...]]]></description>
			<content:encoded><![CDATA[<p><img width="109" height="96" align="left" id="image46" alt="firebug net option" src="http://www.knowbies.com/wp-content/uploads/2007/03/screenhome-net.thumbnail.gif" />As I <a href="http://www.knowbies.com/vladimir-cvetic/programming/firebug-god-damn-it/">wrote</a> few days back Firebug is indeed the guilty for double page execution. Today I tested it a bit more and found out what is cosing problems. <strong>Net </strong>option (tracks load times for items on page) executes page for it&#8217;s tracking, so we get one exec from browser and second one from firebug.</p>
<p>At the moment I am using Firebug, but older version that did not have this option.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hazaah.com/programming/javascript/firebug-short-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
