Topic: Dealing with Dom attributes by Js_script
Hi everyone !
I ave recently tested your Api v0.5 for an internship project and i have notice some problems with the way the xajax.dom.assign act.
Indeed most of js interpreter don't permit to set all(some may work) attribute this way.(about line 1800)
Code: PHP
if (xajax.tools.willChange(element, property, data))
eval('element.' + property + ' = data;');
break;
but by this way :
Code: PHP
element.setAttribute(property,data);
I have personnaly change this code and expect newer version will fix it.
Thank you all for your attention and this great piece of work!!!!
Ps: For the class attributes IE use className instead of class.
Last edited by Ido (2009-06-03 9:45:24 AM)