Re: php with ajax - uploading pictures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Sun, April 9, 2006 3:21 pm, Merlin wrote:
> I am searching for a good upload framework that works with PHP and
> AJAX
> to provide an upload interface that uploads one picture instantly,

Yes, try this forms class that comes with plug-in named AJAX form
submit. It can submit any form using without reloading the whole page.
On the server side you can make the class respond to an AJAX form
submission with several types of actions like updating parts of the page
to give the user some feedback. Take a look at the test_ajax_form.php
example script.

http://www.phpclasses.org/formgeneration



> shows
> the thumbnail and displays another upload formfield to select the next
> picture for upload.
>
> Is there something like this, or similar around?

That is not exactly AJAX, but rather DHTML (HTML page elements generated
dynamically with Javascript.

It can be something as simple as:

<form>
<a onclick="div=document.getElementById('upload_fields');
div.innerHTML+='&lt;input type=&quot;file&quot;
name=&quot;upload&quot;&gt;&lt;br /&gt;'; return false" href="#">More</a>
<div id="upload_fields">
</div>
</form>



-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux