Changed console.log() calls to YAHOO.log()

This commit is contained in:
Patrick Donelan 2008-10-16 02:52:22 +00:00
parent 8a06612c82
commit a4afde5786
4 changed files with 16 additions and 16 deletions

View file

@ -211,7 +211,7 @@ Survey.Form = new function() {
} }
} }
if(submit == 1){ if(submit == 1){
console.log("Submitting"); YAHOO.log("Submitting");
Survey.Comm.callServer('','submitQuestions','surveyForm',hasFile); Survey.Comm.callServer('','submitQuestions','surveyForm',hasFile);
} }
} }
@ -238,7 +238,7 @@ console.log("Submitting");
a1id+"slider-min-thumb", a2id+"slider-max-thumb", a1id+"slider-min-thumb", a2id+"slider-max-thumb",
sliderWidth, 1*scale, [1,sliderWidth]); sliderWidth, 1*scale, [1,sliderWidth]);
sliders[id] = s; sliders[id] = s;
//console.log(1); //YAHOO.log(1);
s.minRange = 4; s.minRange = 4;
var updateUI = function () { var updateUI = function () {

View file

@ -12,18 +12,18 @@ Survey.Comm= new function(){
if(form != undefined){ if(form != undefined){
if(hasFile){ if(hasFile){
YAHOO.util.Connect.setForm(form,true); YAHOO.util.Connect.setForm(form,true);
//console.log('set file was true'); //YAHOO.log('set file was true');
}else{ }else{
//console.log('set file was false'); //YAHOO.log('set file was false');
YAHOO.util.Connect.setForm(form); YAHOO.util.Connect.setForm(form);
} }
//console.log('setForm was true'); //YAHOO.log('setForm was true');
} }
if(callMade == 1){ if(callMade == 1){
alert("Waiting on previous request"); alert("Waiting on previous request");
}else{ }else{
callMade = 1; callMade = 1;
console.log(sUrl); YAHOO.log(sUrl);
YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData); YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
} }
} }
@ -42,7 +42,7 @@ console.log(sUrl);
if(response.type == 'displayquestions'){ if(response.type == 'displayquestions'){
Survey.Form.displayQuestions(response); Survey.Form.displayQuestions(response);
}else if(response.type == 'forward'){ }else if(response.type == 'forward'){
//console.log("going to "+response.url); //YAHOO.log("going to "+response.url);
location.href=response.url; location.href=response.url;
}else{ }else{
alert("bad response"); alert("bad response");
@ -62,7 +62,7 @@ console.log(sUrl);
var postData; var postData;
if(form == undefined){ if(form == undefined){
postData = "data="+YAHOO.lang.JSON.stringify(data,data); postData = "data="+YAHOO.lang.JSON.stringify(data,data);
//console.log(postData); //YAHOO.log(postData);
} }
var sUrl = this.url + "?func="+functionName; var sUrl = this.url + "?func="+functionName;
request(sUrl,this.callback,postData,form,hasFile); request(sUrl,this.callback,postData,form,hasFile);

View file

@ -9,7 +9,7 @@ Survey.Data = new function(){
this.dragDrop = function(did){ this.dragDrop = function(did){
var type; var type;
console.log('In drag drop'); YAHOO.log('In drag drop');
if(did.className.match("section")){type = 'section';} if(did.className.match("section")){type = 'section';}
else if(did.className.match("question")){type = 'question';} else if(did.className.match("question")){type = 'question';}
else{ type = 'answer';} else{ type = 'answer';}
@ -32,7 +32,7 @@ console.log('In drag drop');
else{ type = 'answer';} else{ type = 'answer';}
data = {id:before.id,type:type}; data = {id:before.id,type:type};
} }
console.log(first.id+' '+data.id); YAHOO.log(first.id+' '+data.id);
Survey.Comm.dragDrop(first,data); Survey.Comm.dragDrop(first,data);
} }
@ -50,7 +50,7 @@ console.log(first.id+' '+data.id);
//add event handlers for if a tag is clicked //add event handlers for if a tag is clicked
for(var x in d.ids){ for(var x in d.ids){
console.log('adding handler for '+ d.ids[x]); YAHOO.log('adding handler for '+ d.ids[x]);
YAHOO.util.Event.addListener(d.ids[x], "click", this.clicked); YAHOO.util.Event.addListener(d.ids[x], "click", this.clicked);
new Survey.DDList(d.ids[x],"sections"); new Survey.DDList(d.ids[x],"sections");
} }

View file

@ -12,12 +12,12 @@ Survey.Comm= new function(){
if(form != undefined){ if(form != undefined){
if(hasFile){ if(hasFile){
YAHOO.util.Connect.setForm(form,true); YAHOO.util.Connect.setForm(form,true);
//console.log('set file was true'); //YAHOO.log('set file was true');
}else{ }else{
//console.log('set file was false'); //YAHOO.log('set file was false');
YAHOO.util.Connect.setForm(form); YAHOO.util.Connect.setForm(form);
} }
//console.log('setForm was true'); //YAHOO.log('setForm was true');
} }
YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData); YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
} }
@ -33,7 +33,7 @@ Survey.Comm= new function(){
if(response.type == 'displayquestions'){ if(response.type == 'displayquestions'){
Survey.Form.displayQuestions(response); Survey.Form.displayQuestions(response);
}else if(response.type == 'forward'){ }else if(response.type == 'forward'){
//console.log("going to "+response.url); //YAHOO.log("going to "+response.url);
location.href=response.url; location.href=response.url;
}else{ }else{
alert("bad response"); alert("bad response");
@ -53,7 +53,7 @@ Survey.Comm= new function(){
var postData; var postData;
if(form == undefined){ if(form == undefined){
postData = "data="+YAHOO.lang.JSON.stringify(data,data); postData = "data="+YAHOO.lang.JSON.stringify(data,data);
//console.log(postData); //YAHOO.log(postData);
} }
var sUrl = this.url + "?func="+functionName; var sUrl = this.url + "?func="+functionName;
request(sUrl,this.callback,postData,form,hasFile); request(sUrl,this.callback,postData,form,hasFile);