Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Lennart on Jan 10, 2008 16:19
open dhtmlx forum
Bug in dhtmlxdataprocessor.js line 460?

Hi,
when I insert a new tree node with
tree.insertNewChild( parentId, itemId, itemText );

the dataprocessor is called and sends the event to the server. Which is good. But the URL it calls is
http://127.0.0.1/pl2test/update.php?tr_id=59&tr_pid=horror&tr_order=4&tr_text=hgdfhgdf&%21nativeeditor_status=inserted

and the problem is the %21, which is the URL-encoded version of an "!". The problem is line 460 of dhtmlxdataprocessor.js, I had to change it from
self.obj.setUserData(rowId,"!nativeeditor_status","inserted");

to
self.obj.setUserData(rowId,"nativeeditor_status","inserted");

to make the described case work. But on the other hand there are a lot more "!nativeeditor_status"s in that file, and they seem to work!?
Answer posted by Support on Jan 11, 2008 01:51
So far there were no reports about such problem, the ! char may be escaped as %21 , but server software must understood such encoding, and must convert it back to normal automatically.
Basically - if it cause problem in your case - you can change all "!nativeeditor_status" with "nativeeditor_status" in dhtmlxdataprocessor.js ( and update related name of var in server side code )