<?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>Gudubeth &#187; javascript</title>
	<atom:link href="http://www.gudubeth.net/en/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gudubeth.net/en</link>
	<description>A blog about web design and programming - php, actionscript, javascript, java, css</description>
	<lastBuildDate>Tue, 27 Apr 2010 19:08:26 +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>Mini Ajax Library</title>
		<link>http://www.gudubeth.net/en/articles/mini-ajax-library</link>
		<comments>http://www.gudubeth.net/en/articles/mini-ajax-library#comments</comments>
		<pubDate>Sat, 26 Dec 2009 11:32:59 +0000</pubDate>
		<dc:creator>Gudubeth</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[lightweight]]></category>

		<guid isPermaLink="false">http://www.gudubeth.net/en/?p=50</guid>
		<description><![CDATA[You need basic ajax functions and you need a simple, small library not like those big, complex libraries like prototype. Well, open source community hears you. MiniAjax is a lightweight ajax library which is only 1.4 kb without compression. MiniAjax can do simple form serializing, send request to a url, get its response by both [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>You need basic ajax functions and you need a simple, small library not like those big, complex libraries like prototype. Well, open source community hears you. MiniAjax is a lightweight ajax library which is only 1.4 kb without compression. MiniAjax can do simple form serializing, send request to a url, get its response by both GET or POST methods and insert the result in a html element if needed, submit a form. </p>
<p>Here is the Google Code page of this library: <a href="http://code.google.com/p/miniajax/" target="_blank">http://code.google.com/p/miniajax/</a> (Everything in one page). You can find discussions and some extra functions at <a href="http://snippets.dzone.com/posts/show/2025" target="_blank">DZone Snippets</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.gudubeth.net/en/articles/mini-ajax-library/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Flash Size with Javascript</title>
		<link>http://www.gudubeth.net/en/articles/change-flash-size-with-javascript</link>
		<comments>http://www.gudubeth.net/en/articles/change-flash-size-with-javascript#comments</comments>
		<pubDate>Wed, 11 Nov 2009 17:55:13 +0000</pubDate>
		<dc:creator>Gudubeth</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.gudubeth.net/en/?p=24</guid>
		<description><![CDATA[Here is the crossbrowser javascript code for changing flash object&#8217;s size. Works fine in IE5.5, IE6, IE7, IE8,  Firefox 3, Opera 10, Safari 4, Chrome 3.
Usage
Resizing Flash:
flashResizer.resize(width, height, flash_object_id);
Zoom In:
flashResizer.zoomin(flash_object_id);
Zoom Out:
flashResizer.zoomout(flash_object_id);
Javascript Code:
var flashResizer = {
    ZOOM_IN:1,ZOOM_OUT:-1,
    fo:null,ZOOM_FACTOR:0.1,
    findObj:function(_foid){if(_foid==undefined &#124;&#124; _foid==null){return this.fo;}
     [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Here is the crossbrowser javascript code for changing flash object&#8217;s size. Works fine in IE5.5, IE6, IE7, IE8,  Firefox 3, Opera 10, Safari 4, Chrome 3.</p>
<p>Usage<br />
<strong>Resizing Flash:</strong><br />
flashResizer.resize(width, height, flash_object_id);</p>
<p><strong>Zoom In:</strong><br />
flashResizer.zoomin(flash_object_id);</p>
<p><strong>Zoom Out:</strong><br />
flashResizer.zoomout(flash_object_id);</p>
<p><strong>Javascript Code:</strong></p>
<pre lang="javascipt">var flashResizer = {
    ZOOM_IN:1,ZOOM_OUT:-1,
    fo:null,ZOOM_FACTOR:0.1,
    findObj:function(_foid){if(_foid==undefined || _foid==null){return this.fo;}
        this.fo=null;if (window.document[_foid]) this.fo=window.document[_foid];
        else if (navigator.appName.indexOf("Microsoft Internet")==-1){
            if (document.embeds &amp;&amp; document.embeds[_foid]) this.fo = document.embeds[_foid];}
        else this.fo = document.getElementById(_foid);return this.fo;},
    resize:function(_w,_h,_foid){if(this.findObj(_foid)){
            this.fo.width=_w;this.fo.height=_h;}return this;},
    zoom:function(_d,_f){if(this.findObj(_f)){var zf=1+_d*this.ZOOM_FACTOR;
            this.resize(this.fo.width*zf,this.fo.height*zf);}return this;},
    zoomin:function(_f){this.zoom(this.ZOOM_IN,_f);},
    zoomout:function(_f){this.zoom(this.ZOOM_OUT, _f);}
}</pre>
<p><strong>Same Javascript Code With Comments (Longer Code):</strong></p>
<pre lang="javascript">var flashResizer = {
    fo:null, //flash object
    ZOOM_FACTOR:0.1, // how much resizing will happen. used in zoom

    ZOOM_IN:1,
    ZOOM_OUT:-1,

    /**
     * find flash object - cross browser
     * look at http://blog.codefidelity.com/?p=14
     * @param _foid  DOM id of flash object. if no _foid is given,
     *               uses previously found flash object
     * @return       flash object. null if no object is found
     */
    findObj:function(_foid){
        if(_foid==undefined || _foid==null){
           return this.fo;
        }
        this.fo=null;
        if (window.document[_foid]) this.fo=window.document[_foid];
        else if (navigator.appName.indexOf("Microsoft Internet")==-1){
            if (document.embeds &amp;&amp; document.embeds[_foid]) this.fo = document.embeds[_foid];
        }
        else this.fo = document.getElementById(_foid);

        return this.fo;
    },

    /**
     * resize flash to specified size
     * @param _w: new width
     * @param _h: new height
     * @param _foid: flash object id. if no _foid is given,
     *               uses previously found flash object.
     * @return this object
     */
    resize:function(_w, _h, _foid){
        if(this.findObj(_foid)){
            this.fo.width = _w;
            this.fo.height = _h;
        }
        return this;
    },

    /**
    * @param _d: zoom direction. flashResize.ZOOM_IN or 1 to zoom in,
    *            flashResize.ZOOM_OUT or-1 to zoom out.
    *            factor size also changes the zoom factor
    * @param _foid: flash object id. if no _foid is given,
    *               uses previously found flash object.
    * @return  this object
    */
    zoom:function(_d, _foid){
        if(this.findObj(_foid)){
            var zf = 1 + _d * this.ZOOM_FACTOR;
            this.resize(this.fo.width*zf, this.fo.height*zf);
        }
        return this;
    },

    /**
     * @param _foid: flash id. if no _foid is given, uses previously found flash object.
     */
    zoomin:function(_foid){
        return this.zoom(this.ZOOM_IN, _foid);
    },

    /**
     * @param _foid: flash id. if no _foid is given, uses previously found flash object.
     */
    zoomout:function(_foid){
        return this.zoom(this.ZOOM_OUT, _foid);
    }
}</pre>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.gudubeth.net/en/articles/change-flash-size-with-javascript/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
