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,
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,
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:
3 matches
Mail list logo