function styleBarChange(cookieType, comboBox) { var cookieData = { tool : 'setCookie', value : comboBox.options[comboBox.selectedIndex].value, type: cookieType }; var tmpArray = new Array(); for(var i in cookieData) { tmpArray.push(i+"="+cookieData[i]); } var postData = tmpArray.join('&'); var broken = function() { // the call broke, reload? }; var reloadPage = function() { location.reload(); }; var callback = { success: reloadPage, failure: broken, scope: this }; // update the display how many we have sent var cookieRequest = YAHOO.util.Connect.asyncRequest('POST','/rpc/settings.mg', callback, postData); }
Randy Jay Braun > Grand Canyon October 2007 photo
Grand Canyon October 2007 photo
See photo in gallery

Comments

|

New comment:

Name:
To foil spammers, enter this code: copy this text in this box: Code unreadable?
Click here to enjoy my Maui Art Gallery