Help,dhtmlx4.0 when i use xml always report the http 405 err

when i use dhtmlxtoolbar
i use the partten “xml source”

// toolbar
function attachToolbar() {
	if (portalToolbar != null) return;
	if (portalRibbon != null) detachRibbon();
	portalToolbar = portalLayout.attachToolbar({
		parent: "toolbarObjXML",
		icons_path: "<%=path%>/js/dhtmlx/extra/dhtmlxToolbar/images/",
		xml: "<%=path%>/js/dhtmlx/extra/dhtmlxToolbar/portalTopBar.xml"
	});
	checkHeight();
}

like this

when i start my server,and visit the adress always report the error 405!
what should i do?


i think maybe the troulbe is here
when i set xml in this method.
maybe dhtmlx do ajax method read the xml content,
but this method return the type is text/html type

but i remeber dhtmlx3.6 never appear this situation


Hi

make sure version is 4.0.2+ and add the following before loading:

dhx4.ajax.method = "get";

also please check viewtopic.php?f=4&t=36872

could you tell me add where of the code?

yes?like this code?

will you fixed this problem at next version ?
i think xml is loading faster than jscode or json.
so i hope it will upgrade this problem quickly…

and dhtmlx4.0 is very beautiful.

i find i am use the version is 4.0.3
is also 4.0.4 need to add the “dh4.ajax.method=get”???

i used dhtmlx3.6 pro how can i upgrade 4.0 pro.

Hi

>> will you fixed this problem at next version ?

actually this is not a bug or problem. just other request type. ability to change request type was added in 4.0.2 and exist in 4.0.3 and will also present in 4.0.4 which is not yet released.

>> could you tell me add where of the code?

code is correct. add dhx4.ajax.method = “get” once after dhtmlx.js loaded and then perform request. I not sure to 100% your issue the same but it too similar to link I provided above.

>> i used dhtmlx3.6 pro how can i upgrade 4.0 pro

please contact our sales department sales@dhtmlx.com

okay,thx,i solved the problem.

// toolbar
function attachToolbar() {
	dhx4.ajax.method = "get";
	if (portalToolbar != null) return;
	if (portalRibbon != null) detachRibbon();
	portalToolbar = portalLayout.attachToolbar({
		parent: "toolbarObjXML",
		icons_path: "<%=path%>/js/dhtmlx/extra/dhtmlxToolbar/images/",
		xml: "<%=path%>/js/dhtmlx/extra/dhtmlxToolbar/portalTopBar.xml"
	});
	checkHeight();
}

if dt4’s ajax defalut sumbit method is POST,if i write dh4.ajax.method=‘get’,it’s make sure this method attachToolbar is get ,the other methods is post?

All componets which use load/loadStruct use the same logic, dhx4.ajax.method = “get” will affect on all of them.

Pertho Engineers is a growing LTO Tape Drive repair and backup service provider company in UAE. We at Pertho Engineers also provide you LTO-3, LTO-4, LTO-5, LTO-6, LTO-7 Tape Drive repair and backup services in UAE. Pertho Engineers provides all company LTO Tape Drive repair and backup services in UAE. The leading companies whom repair and backup services are HP, IBM, Certance LTO, Quantum LTO, Tandberg LTO, Quantum DLT, Quantum VS80 VS160, Quantum SDLT, HP DAT DDS, Sony DAT DDS. Price Starting from 100 USD For details click here
Contact us - +919871495530


Pertho Engineers