Categories | Question details Back To List | ||||||||
Problem with the function getUrlSymbol on dhtmlxcommon.js Hi, I have a tree and a toolbar in an html page; when the page is loading, on IE 6.5 I found this error "Object doesn't support this property or method", whereas on Firefox 5.0 I found this error "str.indexOf is not a function". The tree and the toolbar don't work correctly. Do you have any hint for me about this problem? Thanks a lot in advance. Samuele Answer posted by Support on Feb 06, 2008 03:57 >>The tree and the toolbar don't work correctly. This function not used in toolbar at all, and used only to generate correct urls while dynamical loading in dhtmlxtree. Function is pretty simple, it just check is url already contains "?" char and returns "?" or "&" based on it. Please provide more details - which problems it causes in your case ? Answer posted on Feb 06, 2008 06:08 In attachment there is a script that I use to insert the tree into my page. Just the page is loaded, I find the errors mentioned. Thanks Attachments (1)
Answer posted by Support on Feb 06, 2008 06:39 a) Please be sure that dhtmlxcommon.js included in your page ( the getUrlSymbol located in it ) b) I'm not sure about reason of usage of refreshItem() exactly after loadXML , but in any case this command may be used only after xml auto loading path set tree.setXMLAutoLoading("users_xml.php"); tree.refreshItem(); Answer posted on Feb 06, 2008 07:04 Hi, with the correction suggested all seams to work fine... Thanks a lot Samuele |