Hi ,
I am use the v4.5. I have a problem of ajax. It can not pass the values to other page.
Please Help with me. thank you very much.
main page:
userSecurityFormDataB.attachEvent("onChange", function(name,value,is_checked){
myLayout.cells("c").expand();
myTree = myLayout.cells("c").attachTree();
myTree.setImagePath("dht/skins/web/imgs/dhxtree_web/");
myTree.enableCheckBoxes(1);
myTree.enableThreeStateCheckboxes(true);
if(name=="customerRelationshipManagement"){
myTree.load("php/menuTree.php?itemName=customerRelationshipManagement");
getSubString();
}
function getSubString(){
myTree.attachEvent("onCheck", function(id, state){
dhtmxAjax.get("php/menuTreeConnector.php?username=test&itemId=competitor");
});
}
menuTreeConnector.php
<?php
//include db connection settings
require_once("config/config.php");
$res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
mysql_select_db($mysql_db);
$itemId=$_GET['itemId'];
$userName=$_GET['username'];
?>