HELP!!!关于参数传递到弹出页面的问题

SweetOnMe 2004-04-15 02:56:02
我要在网上做一个用户投票调查,比如说我给出三个选项:1、很好;2、一般;3、很差。下面给一个投票按钮,当用户选好后按下投票按钮,我要打开一个弹出窗口显示目前为止所有的票数统计图表。
...全文
44 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
SweetOnMe 2004-04-15
  • 打赏
  • 举报
回复
谢谢各位。忘了说明一点,我这个单选按钮是aspx控件,是在服务器端运行的,不是在客户端运行的
ccterran 2004-04-15
  • 打赏
  • 举报
回复
通过url,比如,poll.php?id=1,?id=2等等,在弹出的页面,根据传过来的id进行判断
SweetOnMe 2004-04-15
  • 打赏
  • 举报
回复
我是想把当前这个人投票的结果传过去。比如说他选择了一般,假设一般的值是2,我要把这个2传到我的弹出窗口里去做处理
SweetOnMe 2004-04-15
  • 打赏
  • 举报
回复
我的投票按钮上会写个事件:onclick="javascript:window.open('投票统计结果.htm','','')"
是这样的,不知道大家是否明白我的意思
joe820302 2004-04-15
  • 打赏
  • 举报
回复
弹出页面是什么?模式对话框还是窗口?
是窗口的话,可以用form提交过去,也可以把参数挂在url后面。
gjd111686 2004-04-15
  • 打赏
  • 举报
回复
或者直接用window.open('url?参数=值','','');
gjd111686 2004-04-15
  • 打赏
  • 举报
回复
showModalDialog

--------------------------------------------------------------------------------

Description

Creates a dialog box and displays in it the HTML document given by URL. The dialog box is a special window that is modal, meaning it retains the input focus until the user closes it.

Syntax
variant = object.showModalDialog(sURL [, vArguments [, sFeatures]])



Parameter Description
sURL String specifying the URL of the document to load and display. While an empty string is accepted (""), it should be noted that this is useless since once a modal dialog has been opened, it cannot be accessed by the page that opened it.
vArguments Optional. Variant specifying the arguments to use when displaying the document. This parameter can be used to pass a value of any type including an array of values. The dialog can extract the values passed by the caller from the dialogArguments property of the window object.
sFeatures Optional. String specifying the window ornaments for the dialog box. It can be a combination of the following values. Syntax Description
dialogWidth:number Sets the width of the dialog window.
dialogHeight:number Sets the height of the dialog window.
dialogTop:number Sets the top position of the dialog window relative to the upper-left corner of the desktop.
dialogLeft:number Sets the left position of the dialog window relative to the upper-left corner of the desktop.
center:{yes | no | 1 | 0 } Specifies whether to center the dialog window within the desktop. Default is yes.


Return Value

Returns a number, string, or other value. This is equal to the value of the returnValue property as set by the document given by URL.

Remarks

The default font settings should be set in the same way CSS attributes are set; for example, "font:3;font-size:4". To define multiple font values, use multiple font attributes.

When dialogLeft and/or dialogTop is specified, the feature center is overridden, even though the default for center is yes.

Applies To

window

SweetOnMe 2004-04-15
  • 打赏
  • 举报
回复
我不知道要怎么样把用户选择的数据传送到弹出页面,请大家帮帮忙,先谢过了!

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧