javascript父页面传值

  
  //文本框
  请选择产品
  
  元
  
  //图片按钮
  
  //获取单选行
  function weiyi(id) //选择唯一
  {
  var obj = document.getElementById(id);
  if(obj.checked)
  {
  obj.checked = true;
  var gr = document.getElementById('GridView1');
  for(i=0;i
  
  var k = window.dialogArguments; //获取父类所有信息
  var type = k.document.getElementById("type_HiddenField").valu e; //获取父类的type_HinddenFieid值
  var type1=k.document.getElementById("type1_HiddenField ").value;
  var t = k.document.getElementById(type);
  var t1 = k.document.getElementById(type1);
  var kjian = k.document.getElementById(type+'_HiddenField'); //产品名称
  var kjian1 = k.document.getElementById(type1+'_HiddenField');//产品价格
  function huoqu()
  {
  var datalist = document.getElementById("GridView1");
  var pinpai="";
  var name = "";
  var price="";
  for( i=0;i
  //提交
  
  
  //js脚本类
  //窗口产品选择
  function OpenPWin(name,scj)
  {
  var hf = document.getElementById('type_HiddenField');
  hf.value = name;
  var hf1= document.getElementById('type1_HiddenField');
  hf1.value = scj;
  var str=window.showModelessDialog('bargain_class.aspx' ,window,'dialogWidth=530px;dialogHeight=555px;statu s=no;help=no;scrollbars=no;')
  return false;
  }

你可能感兴趣的:(技术杂绘)