Subscribe:

Ads 468x60px

Labels

Sunday, April 15, 2012

Drilling Superintendent - West Africa

Drilling Superintendent - West Africa$(document).ready(function() { //if bookmarkjobs exit then this should be disabled. $('#imgBookmark2').css('opacity', '0.5'); $('#BookMarkJob').click(function() { $('#BookMarkSuccess').hide(); //$('#BookMarkError').hide(); //got rid of the error message, using pop up instead. var request = $.ajax({ url: '/jobs/ajax/job_posting_bookmark.asp', data: 'action=A&p_id=' + 309245, cache: false, dataType: 'text', success: function(data) { if (data == 1) { $('#BookMarkSuccess').show(); $('#imgBookmark').css('opacity', '0.5'); //$('#BookMarkJob').removeClass('jobpostEnabled'); //$('#BookMarkJob').addClass('jobpostDisabled'); } if (data == -1) { //$('#BookMarkError').show(); alert('This Job has already been bookmarked.'); } }, error: function() { alert('There was a error bookmarking the job.'); } }); }); //end click $('#BookMarkSuccess').click(function() { $('#BookMarkSuccess').slideUp(); }); //end click //$('#BookMarkError').click(function() { // $('#BookMarkError').slideUp(); //}); //end click}); //end document ready functionSorry, I could not read the content fromt this page.

View the original article here

0 comments:

Post a Comment