Re: Is it possible to click download button,and run 2 tasks downloading a file and show number of downloads(ajax)simultaneously?

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

 



On Oct 14, 2012, at 7:41 AM, Negin Nickparsa <nickparsa@xxxxxxxxx> wrote:
> I wanted to refresh the download count when clicking the button first is it
> possible?

Yes, it is possible.

The following is an example of a server-side php script refreshing a Web page via a javascript client-side action:

http://php1.net/a/zipcode-states/

The action is triggered by simply using the selection control, which in turn activates an onchange javascript routine that causes a slave php script to run retrieving data from a database returning the data thereby causing an ajax script to update the selection control.

All the code (html, javascript) is there except for the php script, which should be trivial to write.

Cheers,

tedd
_____________________
tedd@xxxxxxxxxxxx
http://sperling.com





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