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

2012-10-15 Thread Negin Nickparsa
Thanks Tedd, ajax works fine now,when submiting a button it will show the number and it doesn't have any problem $(function() { $(.button).click(function(){ var id=$(this).attr('id'); var dataString = 'id='+ id ; $.ajax({ type: POST, url: download_number.php, data: dataString,

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

2012-10-15 Thread Negin Nickparsa
oh my bad:)! there is a cool solution,I forgot the blank page!:) yep! solved:) window.open('download.php', '_blank' ); now I can count up,and download:) $(.button).click(function(){ var id=$(this).attr('id'); var dataString = 'id='+ id ; $.ajax({ type: POST, url: download_number.php,

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

2012-10-14 Thread Tedd Sperling
On Oct 14, 2012, at 7:41 AM, Negin Nickparsa nickpa...@gmail.com 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: