Ajax Image Uploading (With Less Suck)







jquery using jason response ajax


function addJob(jobId, appliId)
    params = ‘form=add&’ + ‘jobId=’ + jobId + ‘&’ + ‘appliId=’ + appliId;
        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




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