Combo trigger Obj.setAttribute("value", data) assign data in Textarea not work in Google Chrome?
I'm using AW 2.5.6 , and I got the problems. Please Help
I'm use the combo box, when a user selected a options, will display some wording in Textarea box. i can run in IE 8.0 and can't run on Google chrome, Anyone can help me. Thx!
Another question sometime i use the same method use combo trigger the data Obj.setAttribute("value", data) assign to Textarea but the word will disappear in IE and chrome have same problems.
<%@ Language=VBScript %>
<!-- #Include file = "adovbs.inc" -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><TEMP></title>
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-hk" />
<script src="../../runtime/lib/aw.js"></script>
<link href="../../runtime/styles/xp/aw.css" rel="stylesheet"></link>
</head>
<body topmargin="0" leftmargin="0" style="font-family: Arial; ">
<style>
#USRequirementObj {width: 350px; height:60px;}
}
</style>
<p></p>
<table style="width: 991px; background-color: #9CF9F9;">
<tr>
<td style="width: 181px; height: 18px;"><font color=purple size=2 >Company Name : </font></td>
<td style="width: 433px; height: 18px;">
<script>
var itemTextArray = ["123","456","789"];
var combo = new AW.UI.Combo;
combo.setId("combo1");
combo.setControlText("Customer Name");
combo.setItemText(itemTextArray);
combo.setItemCount(3);
combo.refresh();
document.write(combo);
combo.onControlValidated = function(text){
Cust_NameObj = escape(text);
var D = new Date();
var E = new AW.HTTP.Request;
E.setURL("GenOCCustomerInfo.asp");
E.setRequestMethod("POST");
E.setParameter("cust_name", Cust_NameObj);
E.setParameter("D", D);
E.request();
E.response = function(data) {
data = "1234567"
USRequirementObj.setAttribute("value", data);
}
}
</script>
</td>
<td><font color=purple size=2 >REQUIREMENTS/REMARK :</font>
<script>
var USRequirementObj = new AW.HTML.TEXTAREA;
USRequirementObj.setSize(300,100);
USRequirementObj.setAttribute('readonly',true);
document.write(USRequirementObj);
</script>
</td>
</tr>
</table>
</body>
</html>
I'm use the combo box, when a user selected a options, will display some wording in Textarea box. i can run in IE 8.0 and can't run on Google chrome, Anyone can help me. Thx!
Another question sometime i use the same method use combo trigger the data Obj.setAttribute("value", data) assign to Textarea but the word will disappear in IE and chrome have same problems.
<%@ Language=VBScript %>
<!-- #Include file = "adovbs.inc" -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><TEMP></title>
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-hk" />
<script src="../../runtime/lib/aw.js"></script>
<link href="../../runtime/styles/xp/aw.css" rel="stylesheet"></link>
</head>
<body topmargin="0" leftmargin="0" style="font-family: Arial; ">
<style>
#USRequirementObj {width: 350px; height:60px;}
}
</style>
<p></p>
<table style="width: 991px; background-color: #9CF9F9;">
<tr>
<td style="width: 181px; height: 18px;"><font color=purple size=2 >Company Name : </font></td>
<td style="width: 433px; height: 18px;">
<script>
var itemTextArray = ["123","456","789"];
var combo = new AW.UI.Combo;
combo.setId("combo1");
combo.setControlText("Customer Name");
combo.setItemText(itemTextArray);
combo.setItemCount(3);
combo.refresh();
document.write(combo);
combo.onControlValidated = function(text){
Cust_NameObj = escape(text);
var D = new Date();
var E = new AW.HTTP.Request;
E.setURL("GenOCCustomerInfo.asp");
E.setRequestMethod("POST");
E.setParameter("cust_name", Cust_NameObj);
E.setParameter("D", D);
E.request();
E.response = function(data) {
data = "1234567"
USRequirementObj.setAttribute("value", data);
}
}
</script>
</td>
<td><font color=purple size=2 >REQUIREMENTS/REMARK :</font>
<script>
var USRequirementObj = new AW.HTML.TEXTAREA;
USRequirementObj.setSize(300,100);
USRequirementObj.setAttribute('readonly',true);
document.write(USRequirementObj);
</script>
</td>
</tr>
</table>
</body>
</html>
Steven
March 21,