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. Loading aspx page in jquery modal popup

Loading aspx page in jquery modal popup

Scheduled Pinned Locked Moved Web Development
javascripthelp
5 Posts 4 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 able to load a Jquery modal pop up. My requirement is . I would like to load another aspx page in a jquery modal popup.. Can any one help me out in this. I tried a lot.. Thanks

    F B E 3 Replies Last reply
    0
    • S Syed Rehman

      Hi. I am able to load a Jquery modal pop up. My requirement is . I would like to load another aspx page in a jquery modal popup.. Can any one help me out in this. I tried a lot.. Thanks

      F Offline
      F Offline
      F ES Sitecore
      wrote on last edited by
      #2

      You need to put an iframe in the modal box and the target page goes in the iframe. Google "show iframe query modal" for examples http://stackoverflow.com/questions/5660263/how-to-display-an-iframe-inside-a-jquery-ui-dialog[^]

      S 1 Reply Last reply
      0
      • S Syed Rehman

        Hi. I am able to load a Jquery modal pop up. My requirement is . I would like to load another aspx page in a jquery modal popup.. Can any one help me out in this. I tried a lot.. Thanks

        B Offline
        B Offline
        Blikkies
        wrote on last edited by
        #3

        You can use jQuery.ajax to load server side pages. Example:

            $.ajax({
                url: 'default.aspx',
                cache: false,
                success: function (data) {
                    $('#page-content').html(data);
                   
                }
            });
        

        If you are loading these pages from another aspx page, you might need to remove runat="server" from your <form id="form1"> tags in your pages that you want to load. I had issues regarding duplicate form tags.

        1 Reply Last reply
        0
        • F F ES Sitecore

          You need to put an iframe in the modal box and the target page goes in the iframe. Google "show iframe query modal" for examples http://stackoverflow.com/questions/5660263/how-to-display-an-iframe-inside-a-jquery-ui-dialog[^]

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

          Thanks . It is working... But, I am facing some difficulty to adjust the width.

          1 Reply Last reply
          0
          • S Syed Rehman

            Hi. I am able to load a Jquery modal pop up. My requirement is . I would like to load another aspx page in a jquery modal popup.. Can any one help me out in this. I tried a lot.. Thanks

            E Offline
            E Offline
            Erick Shawn
            wrote on last edited by
            #5

            Use this code to add aspx page in jquery. http://stackoverflow.com/questions/4629899/loading-aspx-page-in-jquery-ui-dialog[^]

            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