<?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"
	>

<channel>
	<title>te-edu.com</title>
	<atom:link href="http://te-edu.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://te-edu.com</link>
	<description>te-edu.info blog</description>
	<pubDate>Fri, 07 Nov 2008 15:53:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Ajax multifile upload-mine copied way-part two&#8230;</title>
		<link>http://te-edu.com/ajax-code/ajax-multifile-upload-mine-copied-way-part-two/</link>
		<comments>http://te-edu.com/ajax-code/ajax-multifile-upload-mine-copied-way-part-two/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 15:24:46 +0000</pubDate>
		<dc:creator>bogyvet</dc:creator>
		
		<category><![CDATA[Ajax code]]></category>

		<category><![CDATA[Ajax forms]]></category>

		<category><![CDATA[Ajax multifile upload]]></category>

		<guid isPermaLink="false">http://te-edu.com/?p=4</guid>
		<description><![CDATA[OK we continue now staring explain JavaScript file.
1. max number of files-you can modify this number but look for server timeout if you can change timeout value in php.ini file that ok
var max = 5;
2, delete button image-relative path to image depending of where is multifile.js located.
var delete_btn = &#8216;images/dcirc.gif&#8217;;

If you have multifile.js in same [...]]]></description>
			<content:encoded><![CDATA[<p>OK we continue now staring explain JavaScript file.</p>
<p>1. <span style="color: #800000;"><strong>max number of files</strong></span>-you can modify this number but look for server timeout if you can change timeout value in <span style="color: #0000ff;"><strong>php.ini file </strong></span>that ok</p>
<p><span style="color: #ff0000;"><strong>var max = 5;</strong></span></p>
<p>2, <span style="color: #800000;"><strong>delete button image-</strong><span style="color: #000000;">relative path to image depending of where is multifile.js located.</span></span></p>
<p><span style="color: #ff0000;"><strong>var delete_btn = &#8216;images/dcirc.gif&#8217;;<br />
</strong></span><span style="color: #800000;"><span style="color: #000000;"><br />
If you have </span></span><span style="color: #800000;"><span style="color: #000000;">multifile.js in same folder with file where you have form you have path:<br />
</span></span><span style="color: #ff0000;"><strong> var delete_btn = &#8216;your-file.gif&#8217;</strong></span></p>
<p>if this file is in some folder inside folder where is file with your form located <strong>eg.folder img</strong>:<br />
<span style="color: #ff0000;"><strong>var delete_btn = &#8216;</strong></span><strong>img/</strong><span style="color: #ff0000;"><strong>your-file.gif&#8217;</strong></span></p>
<p>if this file is in some folder up level folder from where is file with your form located<br />
<strong>eg.every level up is one   &#8211;&gt; </strong><strong>../  &lt;&#8211;</strong></p>
<p><span style="text-decoration: underline;">means file with your form is 3 levels up you have ../../../your-file.gif </span><br />
<span style="color: #ff0000;"><strong>var delete_btn = &#8216;</strong></span><strong>../</strong><span style="color: #ff0000;"><strong>your-file.gif&#8217;</strong></span><span style="color: #ff0000;"><strong></strong></span></p>
<p>3. start files at zero, n o need to modify anything.</p>
<p><span style="color: #ff0000;"><strong>v</strong><strong>ar upload_number = 0;</strong></span></p>
<p>4. Now you can play with design if you do not like mine (look for Ajax doom CSS reference on net):</p>
<p><span style="color: #ff0000;"><strong>var container = document.createElement( &#8216;div&#8217; );          <span style="color: #000000;">-create div</span><br />
container.style.border = &#8220;1px solid #000000&#8243;; </strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;">-CSS div border</span></strong></span><br />
<span style="color: #ff0000;"><strong> container.style.float = &#8220;left&#8221;; </strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;">-</span></strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;">CSS div float left</span></strong></span><br />
<span style="color: #ff0000;"><strong> container.style.overflow  = &#8220;hidden&#8221;; </strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;">-</span></strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;">CSS div </span></strong></span><span style="color: #000000;"><strong>overflow for long filenames<br />
you can use wordwarp but command<br />
is not supported for some browsers </strong></span><br />
<span style="color: #ff0000;"><strong> container.style.backgroundColor  = &#8220;#ffffff&#8221;; </strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;">-</span></strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;">CSS div background color</span></strong></span><br />
<span style="color: #ff0000;"><strong> container.style.padding  = &#8220;3px&#8221;; </strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;">-</span></strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;">CSS div input filename padding</span></strong></span><br />
<span style="color: #ff0000;"><strong> container.style.paddingLeft  = &#8220;10px&#8221;; </strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;">-</span></strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;">CSS div input filename padding</span></strong></span><br />
<span style="color: #ff0000;"><strong> container.style.width  = &#8220;350px&#8221;; </strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;">-</span></strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;">CSS div container width</span></strong></span></p>
<p><span style="color: #ff0000;"><strong> container.appendChild(document.createTextNode(&#8217;    upload image&#8217;));<br />
<span style="color: #000000;">-</span></strong></span><span style="color: #000000;"><strong>upload image</strong></span> <strong>you can change this</strong><br />
<span style="color: #ff0000;"><strong> container.appendChild(document.createElement(&#8217;br&#8217;));<br />
container.appendChild(document.createTextNode(filename)); </strong></span><span style="color: #ff0000;"><strong> <span style="color: #000000;">-</span></strong></span><span style="color: #000000;"><strong>filename output</strong></span><br />
<span style="color: #ff0000;"><strong> container.appendChild(document.createElement(&#8217;br&#8217;));</strong></span></p>
<p><strong>DELETE IMAGE CONTAINER:</strong></p>
<p><span style="color: #ff0000;"><strong>var new_img_container = document.createElement( &#8216;div&#8217; ); </strong></span><span style="color: #ff0000;"><strong> <span style="color: #000000;">-create container</span></strong></span><br />
<span style="color: #ff0000;"><strong> new_img_container.style.position  = &#8220;relative&#8221;; </strong></span><span style="color: #ff0000;"><strong> <span style="color: #000000;">-container</span></strong></span> <strong>possition</strong><br />
<span style="color: #ff0000;"><strong> new_img_container.style.left  = &#8220;270px&#8221;; </strong></span><span style="color: #ff0000;"><strong> <span style="color: #000000;">-container</span></strong></span> <strong>possition</strong> <strong>LEFT</strong><br />
<span style="color: #ff0000;"><strong> new_img_container.style.top  = &#8220;-1px&#8221;;</strong></span> <span style="color: #ff0000;"><strong><span style="color: #000000;"> </span></strong></span></p>
<p><span style="color: #ff0000;"><strong>var new_row_button = document.createElement( &#8216;img&#8217; );<br />
new_row_button.src = delete_btn; </strong></span><span style="color: #000000;"><strong>-variable defined </strong></span><span style="color: #000000;"><strong> </strong></span><span style="color: #000000;"><strong>var delete_btn = &#8216;</strong></span><span style="color: #000000;"><strong></strong></span><span style="color: #000000;"><strong>yourfile.gif&#8217;</strong></span><span style="color: #ff0000;"><strong><span style="color: #000000;"> </span><br />
new_row_button.style.verticalAlign = &#8220;middle&#8221;; </strong></span><span style="color: #000000;"><strong>-align of delete image</strong></span><br />
<span style="color: #ff0000;"><strong> new_row_button.alt = &#8216;remove &#8216;+filename+&#8217; from list&#8217;;</strong></span></p>
<p>You can play with this code and change look and position. I copy this code from mine work so it can be that do not fit to your needs so test a little you will get what you need.</p>
<p>Download working source code: <strong><a href="http://te-edu.com/wp-content/uploads/2008/11/multi-upload.rar">multi-upload.</a></strong></p>
<p>In next post I will add progres bar and explain and add all complete code for uploading and image processing.</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=te-edu.com&amp;siteurl=http%3A%2F%2Fte-edu.com%2F&amp;linkname=Ajax%20multifile%20upload-mine%20copied%20way-part%20two%26%238230%3B&amp;linkurl=http%3A%2F%2Fte-edu.com%2Fajax-code%2Fajax-multifile-upload-mine-copied-way-part-two%2F"><img src="http://te-edu.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://te-edu.com/ajax-code/ajax-multifile-upload-mine-copied-way-part-two/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ajax multifile upload-mine copied way-part one&#8230;</title>
		<link>http://te-edu.com/ajax-code/ajax-multifile-upload-mine-copied-way-part-one/</link>
		<comments>http://te-edu.com/ajax-code/ajax-multifile-upload-mine-copied-way-part-one/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 20:59:47 +0000</pubDate>
		<dc:creator>bogyvet</dc:creator>
		
		<category><![CDATA[Ajax code]]></category>

		<category><![CDATA[Ajax multifile upload]]></category>

		<category><![CDATA[ajax upload]]></category>

		<category><![CDATA[multifile]]></category>

		<category><![CDATA[multifile upload form]]></category>

		<guid isPermaLink="false">http://te-edu.com/?p=3</guid>
		<description><![CDATA[Well I am not expert in Javascript but can modify a little so I will give you mine code for Ajax multifile upload. Orginal file made by Michael Estigoy.
I modify some code so it looks like this:
STEP 1. Add path to javascript file in your page header.
&#60;script type=&#8217;text/javascript&#8217; language=&#8217;javascript&#8217; src=&#8217;js/multifile.js&#8217;&#62;&#60;/script&#62;
You can download file in zip [...]]]></description>
			<content:encoded><![CDATA[<p>Well I am not expert in Javascript but can modify a little so I will give you mine code for Ajax multifile upload. Orginal file made by Michael Estigoy.</p>
<p>I modify some code so it looks like this:</p>
<h2><span style="color: #ff0000;">STEP 1. Add path to javascript file in your page header.</span></h2>
<p>&lt;script type=&#8217;text/javascript&#8217; language=&#8217;javascript&#8217; src=&#8217;js/multifile.js&#8217;&gt;&lt;/script&gt;</p>
<p>You can download file in zip file  included on end of this instructions.</p>
<h2><span><span style="color: #ff0000;">STEP 2. Make upload form.</span></span></h2>
<p>&lt;form enctype=&#8217;multipart/form-data&#8217; action=&#8217;<span style="color: #339966;">page where you submit form</span>&#8216; id=&#8217;form&#8217; method=&#8217;post&#8217; &gt;</p>
<h2><span><span><span><span style="color: #ff0000;">STEP 3. Make input field.</span></span></span></span></h2>
<p>&lt;input type=&#8217;file&#8217; id=&#8217;file&#8217; onChange=&#8217;addFileInput(this);&#8217; /&gt;</p>
<h2><span><span><span><span><span style="color: #ff0000;">STEP 4. Multifile field.</span></span></span></span></span></h2>
<p>&lt;div id=&#8217;file_div&#8217;  style=&#8217; font-weight: bold; visibility: hidden;overflow:hidden&#8217;&gt;<br />
&lt;div id=&#8217;file_list&#8217; style=&#8217;float:left; width:60%;&#8217; &gt;&lt;/div&gt;</p>
<p>you can change CSS code depending of your needs, but do not change all others.</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=te-edu.com&amp;siteurl=http%3A%2F%2Fte-edu.com%2F&amp;linkname=Ajax%20multifile%20upload-mine%20copied%20way-part%20one%26%238230%3B&amp;linkurl=http%3A%2F%2Fte-edu.com%2Fajax-code%2Fajax-multifile-upload-mine-copied-way-part-one%2F"><img src="http://te-edu.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://te-edu.com/ajax-code/ajax-multifile-upload-mine-copied-way-part-one/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Welcome to te-edu.info blog</title>
		<link>http://te-edu.com/blog-info/welcome/</link>
		<comments>http://te-edu.com/blog-info/welcome/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 14:58:12 +0000</pubDate>
		<dc:creator>bogyvet</dc:creator>
		
		<category><![CDATA[Blog info]]></category>

		<category><![CDATA[blog]]></category>

		<category><![CDATA[HTML code]]></category>

		<category><![CDATA[opening]]></category>

		<category><![CDATA[te-edu.info]]></category>

		<guid isPermaLink="false">http://te-edu.com/?p=1</guid>
		<description><![CDATA[I try to wite some stuff here but can not be sute 100%. I heve no time. There is no way to code and administer site or blog. But what I say I try&#8230;.
Thanks for visiting us &#8230;.

    

	]]></description>
			<content:encoded><![CDATA[<p>I try to wite some stuff here but can not be sute 100%. I heve no time. There is no way to code and administer site or blog. But what I say I try&#8230;.</p>
<p>Thanks for visiting us &#8230;.</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=te-edu.com&amp;siteurl=http%3A%2F%2Fte-edu.com%2F&amp;linkname=Welcome%20to%20te-edu.info%20blog&amp;linkurl=http%3A%2F%2Fte-edu.com%2Fblog-info%2Fwelcome%2F"><img src="http://te-edu.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>

	</p>]]></content:encoded>
			<wfw:commentRss>http://te-edu.com/blog-info/welcome/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
