弹出模式包括使用JavaScript的dropdownlist [英] popup modal includes dropdownlist using javascript

查看:83
本文介绍了弹出模式包括使用JavaScript的dropdownlist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部,

我想使用javascript制作弹出式广告模式,但其中包含dreopdownlist.
我已经找到一个代码,但是我无法在其中包含dreopdown列表

hiii all,

i want to make apopup modal using javascript but includes dreopdownlist in it.
i have found a code , but i can''t include dreopdown list in it

<br />
<pre lang="cs">function ModalPopupsPrompt() {<br />
    ModalPopups.Prompt("idPrompt1","Enter Your Name",<br />
        "Please enter Your Name", {<br />
            width: 300,<br />
            height: 100,<br />
            onOk: "ModalPopupsPromptOk()",<br />
            onCancel: "ModalPopupsPromptCancel()"<br />
        });<br />
    }<br />
<br />
function ModalPopupsPromptOk() {<br />
    if (ModalPopups.GetPromptInput("idPrompt1").value != "") {<br />
        insertUser();<br />
    }<br />
    ModalPopups.Close("idPrompt1");<br />
}<br />
function ModalPopupsPromptCancel() {<br />
    alert("You Have Cancelled The Process");<br />
    ModalPopups.Cancel("idPrompt1");<br />
}</pre><br />
<br />




所以,有谁能告诉我如何在此弹出窗口中包含下拉列表(或在HTMl中选择),请?????????

谢谢




So, Can any body tell me how can i include dropdownlist (or select in HTMl) in this popup,Please?????????

Thanks

推荐答案



如果您想要一个带有下拉框的纯JavaScript模式窗口,我建议您看一下fancybox(一个jQuery插件).您可以将此弹出框置于模式"模式,从而允许您将任何类型的html代码显示为模式框(+看起来不错;))

-大安

链接
fancybox.net [ ^ ]
http://jquery.org/ [
Hi,

If you want a pure javascript modal window with a dropdown box, I would suggest looking into fancybox, a jquery plugin. You can put this popup box in "modal" mode, allowing you to present any kind of html code as a modal box (+ it looks fancy ;))

-- Daan

links
fancybox.net[^]
http://jquery.org/[^]


您还没有包含JavaScript模态弹出窗口的源代码,此处发布的只是用于演示如何使用弹出窗口的代码.检查弹出窗口的源代码,并查看其如何呈现其html.根据控件的编码方式,您应该能够在代码中包含标记.
You haven''t included the source code for your JavaScript modal popup, all you posted here is code that shows how to use the popup. Inspect the source of the popup and find out how it renders its html. Depending on the how the control is coded, you should be able to include your markup in the code.


这篇关于弹出模式包括使用JavaScript的dropdownlist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆