Click here to Skip to main content
15,902,276 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi Friends,

Please help me to code that shows modal pop up using Jquery as in ajax.

which version of Jquery will be compatible to do this?


I have got many code in jQuery to create modal dialog box.
Eventhough I have included the
jquery-1.7.1.js ,jquery-ui-1.8.17.custom.min.js,jquery-ui-1.8.17.custom/development-bundle/ui/jquery.ui.dialog.js
these as script
i could not get any intellisense for dialog/modal methods and events.
Please tell me which file am missing to include.


Thanks in advance.
Posted
Updated 23-Feb-12 18:58pm
v3

See This Demo:

Demo[^]

Tutorial For This Demo:

Simple jQuery Modal Window Tutorial[^]
 
Share this answer
 
Comments
abey e mathews 24-Feb-12 1:07am    
thanku
refer and Download http://jquery.com
 
Share this answer
 
hello,
I have used the same files in the following way it worked for me
HTML
<script src="../Scripts/Dialog/jquery.bgiframe-2.1.2.js" type="text/javascript"></script>
    <script src="../Scripts/Dialog/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Scripts/Dialog/jquery.ui.dialog.js" type="text/javascript"></script>
    <script src="../Scripts/Dialog/jquery.ui.draggable.js" type="text/javascript"></script>
    <script src="../Scripts/Dialog/jquery.ui.mouse.js" type="text/javascript"></script>
    <script src="../Scripts/Dialog/jquery.ui.position.js" type="text/javascript"></script>
    <script src="../Scripts/Dialog/jquery.ui.resizable.js" type="text/javascript"></script>
    <link href="../Scripts/Dialog/demos.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(function () {


               $('#dialog-modal').html('<p class="SubHeading">There Is No Data For This Vehicle</p>')
               $("#dialog:ui-dialog").dialog("destroy");

               $("#dialog-modal").dialog({
                   height: 100,
                   modal: true
               });
</script>
<div id="dialog-modal" title="MESSAGE WINDOW">
	
</div>

make sure id "dialog-modal" is must be html control (div)
Happy coding else if asp control use <%=...%>
 
Share this answer
 
v2

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