Ajax Image Uploading (With Less Suck)

 

 

http://css-tricks.com/ajax-image-uploading/

 

http://www.zurb.com/playground/ajax_upload

 

jquery using jason response ajax

 

function addJob(jobId, appliId)
{   
    params = ‘form=add&’ + ‘jobId=’ + jobId + ‘&’ + ‘appliId=’ + appliId;
    $.ajax({
        url: ‘/action/appli/applicart/’,
        type: ‘GET’,
        data: params,
        success: function(json){
            var result = $.parseJSON(json);
            if (result.result === true )
            {
                $(‘#fav_’+jobId).replaceWith(‘<a href="#" onclick="deleteJob(‘+jobId+’, ‘+appliId+’);return false;" id="fav_’+jobId+’">Ne plus sauvegarder cette offre</a>’);
            }
            else if( result.result === false )
            {
                alert(‘Already saved’);
            }
        }
    });
}

fancy upload

http://digitarald.de/project/fancyupload/

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s