hi i am studying dojo based node.js When i perform a ajax created a table to
a string.
and I have one row in the table that insert a link.In order to call a
function.
But when I click on a link does not work function.
error message->Uncaught ReferenceError: func is not defined.
plz help me..
my board.html
on(dom.byId('form'),'click',function(evt){
var resultDiv = dom.byId('output');
var xhrArgs = {
url: '/getData',
handleAs: "json",
load: function(data){
arrayUtil.forEach(data,function(item,i){
output+='
';
output+=' '+item.seq+'';
output+=' '+item.name+'';
output+=' '+item.form+' <#> ';
output+=' '+item.desc+'';
output+=' '+item.writer+'';
output+='';
});//end for
output+='';
output+='
';
resultDiv.innerHTML = output;
},
error: function(error){
resultDiv.innerHTML = "An unexpected error occurred: " + error;
}//end error
}//end xhrArgs
var deferred = dojo.xhrGet(xhrArgs);
});//end ajax call
function func(no){
alert(no);
Dojo-interest [ at ] mail.dojotoolkit.org
a string.
and I have one row in the table that insert a link.In order to call a
function.
But when I click on a link does not work function.
error message->Uncaught ReferenceError: func is not defined.
plz help me..
my board.html
on(dom.byId('form'),'click',function(evt){
var resultDiv = dom.byId('output');
var xhrArgs = {
url: '/getData',
handleAs: "json",
load: function(data){
arrayUtil.forEach(data,function(item,i){
output+='
';
output+=' '+item.seq+'';
output+=' '+item.name+'';
output+=' '+item.form+' <#> ';
output+=' '+item.desc+'';
output+=' '+item.writer+'';
output+='';
});//end for
output+='';
output+='
';
resultDiv.innerHTML = output;
},
error: function(error){
resultDiv.innerHTML = "An unexpected error occurred: " + error;
}//end error
}//end xhrArgs
var deferred = dojo.xhrGet(xhrArgs);
});//end ajax call
function func(no){
alert(no);
Dojo-interest [ at ] mail.dojotoolkit.org