Am having several boxes(more than 100) that will create dynamically with
Now on each clicking of the box i should slide in one pop up box without page refresh.I downloaded jquery UI(http://jqueryui.com/demos/dialog/#option-position) and used in my project.Now I want to pass the company id on each click of the box to get the details from database.if I click window 5 the company id 5 should pass the get all the other details of the company inside the dialog.
jquery code:
<script type="text/javascript">
// increase the default animation speed to exaggerate the effect
$.fx.speeds._default = 1000;
$(function () {
$("#dialog").dialog({
autoOpen: false,
show: "slide",
hide: "explode"
});
$("div[id *= 'window']").live('click', function (e) {
$("#dialog").dialog("open");
return false;
});
});
</script>
Asp.net code
<div id="dialog" title="Basic dialog">
<div><%#Eval("comp_name")%> </div>
<div><%#Eval("comp_city")%> </div>
</div>
your using asp.net mvc 3?
fro live demo see this link: http://jsfiddle.net/nanoquantumtech/865Su/
for replace method see refer this link: http://www.w3schools.com/jsref/jsref_replace.asp