Solved

asp.net mvc

Posted on 2016-08-01
4
39 Views
Last Modified: 2016-08-10
Hi Guys,

I have implemented popup box in my mvc application and I'm using jquery.
I got the idea how to implement it through github - https://github.com/ROMB/jquery-dialogextend.
The link above shows project with popup examples, the popup dialog I would like to have is with minimize and maximize options:
Capture.JPG
Here is what I'm doing in my code:
//html:
<link href="http://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
<div id="popdialog">

</div>

Open in new window


javascript:
 @section scripts{
    <script src="http://code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
    <script src="~/myScripts/jquery.dialogextend.js"></script>
    <script>
        $(document).ready(function () {
            $("#popdialog").dialog({
                title: "Dialog",
                autoOpen: false,
                width: 400,
                height: 400,
                resizable: true,
                draggable: true,
                minimize: "ui-icon-extlink",
            });
        });


        function Opendialog() {
            $("#popdialog").dialog('open');
        }
    </script>

Open in new window


I can popup the window and get just the x close tag. I wrote this   minimize: "ui-icon-extlink", as explained in the link and still I'm getting nothing.


Please can someone give me example to how I can put this properties in place.

Thanks,
0
Comment
Question by:Moti Mashiah
  • 3
4 Comments
 
LVL 14

Expert Comment

by:Lokesh B R
ID: 41737517
Hi,

You can hide/show the buttons based on the below properties.

  minimize: true, // it will show
maximize : false // it will hide
0
 
LVL 1

Author Comment

by:Moti Mashiah
ID: 41737525
I have done this one as well.

The problem is where do I insert the symble - like in need this class "ui-icon ui-icon-minus" to function with the minimize option.

Thanks,
0
 
LVL 1

Accepted Solution

by:
Moti Mashiah earned 0 total points
ID: 41744633
I found the solution.
The jquery framework wasn't initiate.
0
 
LVL 1

Author Closing Comment

by:Moti Mashiah
ID: 41750094
No reason
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now