js问题。高分求救!
<script id=Get_ShopId></script>
<SCRIPT LANGUAGE=javascript>
<!--
function GetShopId(){
var kind_code=document.all("kind_code").value
if (kind_code!=0){
var url="/webadmin/mall/product/Get_ShopId.asp?kind_code="+kind_code+"&shop_id=-1";
Get_ShopId.src=url; //关键是出错!!!
alert(url); //这个可以打出来
}
//-->
</script>
上面的url文件内容:
<html>
<head>
<title>无标题文档</title>
<script language="JavaScript">
document.all("shop_id1").options[0]=new Option("--请选择专卖店--","0"); document.all("shop_id1").options[1]=new Option("法拉利专卖店","7"); document.all("shop_id1").options[2]=new Option("老斯莱斯专卖店","8"); document.all("shop_id1").options[3]=new Option("浙江众诚汽车贸易有限公司","11");
</script>
</head>
<body>
</body>
</html>