Hey guys and gals,
I am using the Dom creation plugin and when I pass the json information I
get nothing in return. Below is the function I use:
buildScenarioTableList = function(list){
$.tpl(list, function(){
return [
'tr', { 'class':"MyTableRow" }, [
'td', { 'class':"MyTableCol2" }, [ ' ' ],
'td', { 'class':"MyTableCol1" }, [ this.active ],
'td', { 'class':"MyTableCol2" }, [ this.name ],
'td', { 'class':"MyTableCol2" }, [ this.desc ],
'td', { 'class':"MyTableCol2" }, [ this.id ],
'td', { 'class':"MyTableCol2" }, [ this.id ],
'td', { 'class':"MyTableCol2" }, [ this.id ]]
];
}).appendTo($('#fill-table > tbody'));
}
This is the info being passed:
{[id: 2, active: 'yes', name: 'Simple', desc: 'This is the
description'],[id: 3, active: 'yes', name: 'Simple', desc: 'This is the
description']}
The url in question: http://ov.informationexperts.com/index.htm (you will
need to login, just put anything in those two fields and hit submit) or
execute this function in firebug: buildECS(); You will see a table with
"active, name....".
Thanks,
--
Benjamin Sterling
http://KenzoMedia.com
http://KenzoHosting.com
--
View this message in context:
http://www.nabble.com/Easy-DOM-Creation-plugin-not-working-as-expected.-tf3115987.html#a8631065
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/