-1) {
// tell the user
alert(“You’ve already voted on this question. Thank you for your help!”);
// doesn’t count as a choice
ChoiceMade_gb = false;
// otherwise if they haven’t made a choice yet
} else if (ChoiceMade_gb == false)
// remind them; perhaps they’re new to live polls
alert(“Please select your choice first.”);
else {
// bake a cookie, put it in the cookie jar for next time and mark it with a freshness date
document.cookie = document.cookie + “Should I buy the new MacBook Pro? I can’t make up my mind, and I need your help; path=/; expires=Tue, 31-Dec-2030 00:00:01 GMT;”;
}
}
function ViwRes() {
// for each element in the form
for (var X = 0; X
|
|
{"source":"https:\/\/gigaom.com\/2006\/02\/03\/should-i-buy-a-mac-book-pro\/wijax\/49e8740702c6da9341d50357217fb629","varname":"wijax_b4251c7d69ca8333f058c16f51157095","title_element":"header","title_class":"widget-title","title_before":"%3Cheader%20class%3D%22widget-title%22%3E","title_after":"%3C%2Fheader%3E"}