弹出窗口直接 opener.arrobj(arrobj是定义的数组)就可以了

解决方案 »

  1.   

    gzh_seagull(不可) :
    你可以不可以说详细点,写点代码,好吗???多谢了!!!!!
    多个复选框checkbox的分页保留 选中 问题, 没人碰到过吗??不会吧!!!!
      

  2.   

    多个复选框checkbox的分页保留 选中 问题:假设需要分页的数据具有某一唯一字段:id
    将checkbox的值设为该id
    将选中提交的checkbox值存到session里面即可
      

  3.   

    a.html<script>
    var ar = new Array();
    ar[0]="Hello ";
    ar[1]="Js !";
    window.open("b.html","");
    </script>b.html<script>
    var tmp=opener.ar;
    alert(tmp[0]+tmp[1]);
    </script>
      

  4.   

    showModalDialog, and showModelessDialog.
    用它们你可以传任意类型的对象参数给打开窗口..
    Creates a modeless dialog box that displays the specified HTML document.
    Syntax
    vReturnValue = window.showModelessDialog(sURL [, vArguments] [, sFeatures])
    ParameterssURL Required. String that specifies the URL of the document to load and display. 
    vArguments Optional. Variant that specifies the arguments to use when displaying the document. Use this parameter to pass a value of any type, including an array of values. The dialog box can extract the values passed by the caller from the dialogArguments property of the window object. 
    sFeatures Optional. Variant of type String that specifies the window ornaments for the dialog box, using one or more of the following semicolon-delimited values: dialogHeight:sHeight Sets the height of the dialog window (see Res for default unit of measure). 
    dialogLeft:sXPos Sets the left position of the dialog window relative to the upper-left corner of the desktop. 
    dialogTop:sYPos Sets the top position of the dialog window relative to the upper-left corner of the desktop. 
    dialogWidth:sWidth Sets the width of the dialog window (see Res for default unit of measure). 
    center:{ yes | no | 1 | 0 | on | off } Specifies whether to center the dialog window within the desktop. The default is yes. 
    dialogHide:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window is hidden when printing or using print preview. This feature is only available when a dialog box is opened from a trusted application. The default is no. 
    edge:{ sunken | raised } Specifies the edge style of the dialog window. The default is raised. 
    help:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays the context-sensitive Help icon. The default is yes. 
    resizable:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window has fixed dimensions. The default is no. 
    scroll:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays scrollbars. The default is yes. 
    status:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays a status bar. The default is yes for untrusted dialog windows and no for trusted dialog windows. 
    unadorned:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window displays the border window chrome. This feature is only available when a dialog box is opened from a trusted application. The default is no. 
     Return ValueVariant that returns a reference to the new window object. Use this reference to script properties and methods on the new window.ResThe modeless dialog box displays even when the user switches input focus to the window.The showModelessDialog method is useful for menus and Help systems. When you invoke this method, a dialog box appears, layered in front of the browser window or HTML Application (HTA).Because a modeless dialog box can include a URL to a resource in a different domain, do not pass information through the vArguments parameter that the user might consider private. The vArguments parameter can be referenced within the modeless dialog box using the dialogArguments property of the window object. If the vArguments parameter is defined as a string, the maximum string length that can be passed to the modeless dialog box is 4096 characters; longer strings are truncated.By convention, modeless dialog boxes can differ from an application window in that they do not have scroll bar, status bar, or resize capabilities. To create this type of dialog box, implement the following steps: Turn off the scroll bar. Use the SCROLL attribute by including the scroll="no" value in the body tag for the dialog window. 
    Turn off the status bar. Set the value of status to no in the sFeatures parameter of the showModelessDialog call. A second option is to call the dialog window from a trusted application, such as Microsoft&reg; Visual Basic&reg; or an HTA, or from a trusted window, such as a trusted dialog box. These are considered trusted because they use Microsoft&reg; Internet Explorer interfaces instead of the browser. The status bar of any dialog box generated from a trusted source is set to off by default. 
    Do not allow resizing. Resizing is set to off by default. To create a return value for showModelessDialog, set the vArguments parameter to a callback function or an object in the showModelessDialog call. In the modeless dialog box, you can reference this function or object through the dialogArguments property of the window object. The same arguments are valid for the showModelessDialog and showModalDialog methods. You can set the default font settings the same way you set Cascading Style Sheets (CSS) attributes (for example, "font:3; font-size:4"). To define multiple font values, use multiple font attributes.To override center, even though the default for center is yes, you can specify either dialogLeft and/or dialogTop.The default unit of measure for dialogHeight and dialogWidth in Internet Explorer 4.0 is the em; in Internet Explorer 5 it is the pixel. The value can be an integer or floating-point number, followed by an absolute units designator (cm, mm, in, pt, pc, or px) or a relative units designator (em or ex). For consistent results, specify the dialogHeight and dialogWidth in pixels when designing modal dialog boxes.Although a user can manually adjust the height of a dialog box to a smaller value —provided the dialog box is resizable —the minimum dialogHeight you can specify is 100 pixels.
      

  5.   

    yonghengdizhen(风儿她轻轻的吹):
    拜托,你可不可以 整几句中文的,多谢了!!!!!!!数组参数怎么传的???
      

  6.   

    bncharm(人间兵器):
      多谢你的思路,可不可以给出点代码,JSP的!!!
    是不是把它放到一个SESSION数组里面去,用HASTABLE来保存??????????