logo
Ask your Javascript questions! Pay money and get answers fast! (more info)

This member is one of the top experts of all time, the true elite. Ross Wilson

Answers Given: 9 (see them all)
Contests Won: 5
Prize Money Earned: $49
Questions asked: 0
Questions refunded: 0 (see all?)
Is a top asker (has the power to vote on anything):
Subscribes to all the discourse posted to the site?: Yes
Country: USA
City: Boulder, CO
Netvotes this month (upvotes minus downvotes): 0
Netvotes of all time (upvotes minus downvotes): 0
Joined the site: January 27, 2012





Ross Wilson's upvoted answers:






This member has no downvoted answers






Answers given to these questions:

See more?






Ross Wilson has not voted on any questions






Ross Wilson has not asked any questions






This member has not made any recommendations. If you are one of the top experts, please offer one now!






Ross Wilson's discourse:

Written in response to jQuery.ajax() never fires, no matter what I do:

This is working for me in FF and Chrome. I have found that not specifying the dataType can cause issues in parsing the response sometimes. Also, if you are using firebug or chrome console.log is much more helpful for debugging, just be careful and don't leave it in your code, because it isn't supported in IE. There are shims out there to create support though...


function rateThisAdWithStars(howManyStars, userId, adId) {
$.ajax({
url: "/echo/json/",
dataType: 'json',
data: { user_id: userId,ad_id: adId,rating: howManyStars},
success: function(data) {
console.log(data);
},
error: function(xqr, code, text){
alert(['fail ',code,': ',text].join(''));
}
});
}

link

See more?






Ross Wilson has not had any questions refunded






Ross Wilson has not posted any suggestions for appropriate prize amounts for questions.