Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vincrnt on Apr 23, 2008 02:42
open dhtmlx forum
Why Combo send to paramiter?

From MY Code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
    <script>
        window.dhx_globalImgPath="runtime/imgs/";
    </script>
    <link rel="STYLESHEET" type="text/css" href="runtime/dhtmlxcombo.css">
    
    <script src="runtime/dhtmlxcommon.js"></script>
    <script src="runtime/dhtmlxcombo.js"></script>
</head>

<body>
<form id="form1" name="form1" method="GET" action="">
<div id="combo_zone2" style="width:200px; height:30px;"></div>
<input type="submit" value="Submit" />
</form>
<script>
var z=new dhtmlXCombo("combo_zone2","alfa3",200);
z.addOption([[1,1111],[2,2222],[3,3333],[4,4444],[5,5555]]);
        z.setComboText("[ Please Select ]");
</script>
</body>
</html>

It Sent "http://localhost/DHTMLX/Combo/Combo_Arr.php?alfa3=3&alfa3_new_value=false" to me but i don't know "alfa3_new_value" come from where and i don't want it too.
So How i can do for Remove it.
Answer posted by Support on Apr 23, 2008 05:15
The combo sends two parameter
- selected value
- flag which shows is value was selected from list or it is a new one, typed by user

If you want omit flag sending, you can locate and comment next line

dhtmlxcombo.js , line 1168

   z.name = name+"_new_value";
   z.value="true";
//   self.DOMelem.appendChild(z);