|
From: Thyamad c. <th...@us...> - 2006-01-15 21:54:30
|
Update of /cvsroot/thyapi/thyapi/thyfunctions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32368/thyfunctions Modified Files: thyajaxcontent.js Log Message: Commiting file additions and modification from SVN revision 2627 to 2628... Changes made by vinicius on 2006-01-15 23:56:24 +0100 (Sun, 15 Jan 2006) corresponding to SVN revision 2628 with message: change to allow execution of js function prior thyajaxcontent puts an content Index: thyajaxcontent.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thyfunctions/thyajaxcontent.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** thyajaxcontent.js 4 Dec 2005 19:52:16 -0000 1.2 --- thyajaxcontent.js 15 Jan 2006 21:54:22 -0000 1.3 *************** *** 78,90 **** { var data = self.protocol.decode(response); ! ! if (self.append) { ! self.DOMElement.innerHTML += data; } else { ! self.DOMElement.innerHTML = data; } if (self.CSSClass) --- 78,108 ---- { var data = self.protocol.decode(response); ! ! if (data.status == 'ok') { ! if (data.beforeload) ! { ! eval(data.beforeload); ! } ! ! if (self.append) ! { ! self.DOMElement.innerHTML += data.data; ! } ! else ! { ! self.DOMElement.innerHTML = data.data; ! } ! ! if (data.afterload) ! { ! eval(data.afterload); ! } } else { ! alert ('thyAjaxContent: error with received ajax data. '+data.msg); } + if (self.CSSClass) |