Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Dialog is not a function

Dialog is not a function

Scheduled Pinned Locked Moved Web Development
helpcsharpjavascriptasp-net
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Syed Rehman
    wrote on last edited by
    #1

    Hi. I am working on displaying dialog using jquery on button click in asp.net. When i click on button. model popup is not displaying.. Is is saying dialog is not a fuinction. Can anyone please help me out Error is showing on this line

    $("#Planmaster-Add").dialog({

    Thank you

    A 1 Reply Last reply
    0
    • S Syed Rehman

      Hi. I am working on displaying dialog using jquery on button click in asp.net. When i click on button. model popup is not displaying.. Is is saying dialog is not a fuinction. Can anyone please help me out Error is showing on this line

      $("#Planmaster-Add").dialog({

      Thank you

      A Offline
      A Offline
      Anil Vaghasiya
      wrote on last edited by
      #2

      Hello, First of all add required JS and CSS of JQuery after that do the Following code.

      <script src="js/jquery-1.10.2.js"></script>
      <script src="js/jquery-ui-1.10.4.custom.min.js"></script>

      function OpenDialog() {
      $("#dialog-open").dialog({
      modal: true,
      buttons: {
      Ok: function () {
      $(this).dialog("close");
      }
      }
      });
      }

            Hello Mr....I am working on displaying dialog using jquery on button click in asp.net. 
          
      
          
      
              Currently using **36% of your storage space**.
          
      
      
      
      <input type="button" id="btnDialog" onclick="OpenDialog();"/>
      
      S 1 Reply Last reply
      0
      • A Anil Vaghasiya

        Hello, First of all add required JS and CSS of JQuery after that do the Following code.

        <script src="js/jquery-1.10.2.js"></script>
        <script src="js/jquery-ui-1.10.4.custom.min.js"></script>

        function OpenDialog() {
        $("#dialog-open").dialog({
        modal: true,
        buttons: {
        Ok: function () {
        $(this).dialog("close");
        }
        }
        });
        }

              Hello Mr....I am working on displaying dialog using jquery on button click in asp.net. 
            
        
            
        
                Currently using **36% of your storage space**.
            
        
        
        
        <input type="button" id="btnDialog" onclick="OpenDialog();"/>
        
        S Offline
        S Offline
        Syed Rehman
        wrote on last edited by
        #3

        Thanks .. I got it :)

        S A 2 Replies Last reply
        0
        • S Syed Rehman

          Thanks .. I got it :)

          S Offline
          S Offline
          Syed Rehman
          wrote on last edited by
          #4

          Now, My requirement is load another aspx page into a jquery modal popup. Actually I have a dash board. In that , I have a ADD new button for employee. Which is click on that button another employee aspx form should load into a modal popup. Where I can add the employee details in that modal pop up. Could you please help me in this. I will be very thank full. Thanks

          A 1 Reply Last reply
          0
          • S Syed Rehman

            Thanks .. I got it :)

            A Offline
            A Offline
            Anil Vaghasiya
            wrote on last edited by
            #5

            Hello, Its Working then Please give vote as Upvote. Thank You.

            1 Reply Last reply
            0
            • S Syed Rehman

              Now, My requirement is load another aspx page into a jquery modal popup. Actually I have a dash board. In that , I have a ADD new button for employee. Which is click on that button another employee aspx form should load into a modal popup. Where I can add the employee details in that modal pop up. Could you please help me in this. I will be very thank full. Thanks

              A Offline
              A Offline
              Anil Vaghasiya
              wrote on last edited by
              #6

              Hello Syed Rehman, You can't do this because of Jquery Modal Popup is working on same Page and You can't Load the other Page inside Jquery Modal Popup I would like to suggest to use windows Size for Other Page that Look Like Popup Just check the Example.

              // set this on OtherPage inside script.
              <script type="text/javascript">
              var size = [400, 300];

                  $(window).resize(function () {
                      window.resizeTo(size\[0\], size\[1\]);
               });
              

              </script>

              //Now Set the Link on first page.
              Open Other Page

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups