Jump to content

filling the jquery dialog on jquery ajax call


sagngh8

Recommended Posts

Hi Everyone.I have a requirement where i need to show the list of data in a jquery dialog once a some link is clicked .I can easily collect the data that has to be shown in the dialog on page load and display the data in the dialog.I will place those data in a hidden div and simply pop it up when the user clicks on the link.But my requirement is that there has to be jquery ajax get when the users clicks on the link and that content should be displayed in the jquery dialog.How can i achieve that.Thanks In Advance,Tech Used:Asp.net mvc,Jquery

Link to comment
Share on other sites

Your question is a bit confusing but this is how I would do it.html

<a href="java script: popsicle;">Get Information</a><div id="popup"></div>

#popup{position: absolute;top: 0px;left: 0px;width: 500px;height: 350px;background-color: #000;visibility: hidden;}

function popsicle(){$("#popup").load('ajax/information.php');$("#popup").css('visibility', 'visible');}

That's the basic idea.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...