Click here to Skip to main content
15,903,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
C#
function ModalPopupsPrompt() {
    ModalPopups.Prompt("idPrompt1","Enter Your Name",
        "Please enter Your Name", {
            width: 300,
            height: 100,
            onOk: "ModalPopupsPromptOk()",
            onCancel: "ModalPopupsPromptCancel()"
        });
    }

function ModalPopupsPromptOk() {
    if (ModalPopups.GetPromptInput("idPrompt1").value != "") {
        insertUser();
    }
    ModalPopups.Close("idPrompt1");
}
function ModalPopupsPromptCancel() {
    alert("You Have Cancelled The Process");
    ModalPopups.Cancel("idPrompt1");
}



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

Thanks
Posted

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

Edit: links
fancybox.net[^]
http://jquery.org/[^]
 
Share this answer
 
v2
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900