jQuery PopWindow with content and buttons
script :
- <script type="text/javascript">
- function dynamic_popup() {
- var dynamicitem = document.getElementById("dynamicitem").value;
- $.ajax({
- type: "GET",
- url: "./attributeXXXMaintain.dd?action=checkValidItems&dynamicitem="+dynamicitem,
- data: "dynamicitem=" + dynamicitem,
- dataType: "text/html",
- error: function(){
- alert('Error validating ITEMS');
- },
- success: function(xml){
-
- //TO DO
- I need to open the pop window here with response.
- // $("#txtResult").html(xml);
- }
-
- });
- }
- </script>
html :
On button click i am calling above script.
What I need here is i want to display All the data in model popup window as i mentioned in above script.
Pop up should contain some buttons which i can use for some other purpose.
Please provide me the code.I have tried in may sites and came to know that jQuery has many options.
Please let me know.Thanks in advance.