Below I have a "button" (just a span with an icon) that creates a pop-up view of a div in my application to allow users to compare information in seperate windows.
However, I get and Asp.Net Error as follows:
**Server Error in '/' Application.
The resource cannot be found.
Requested URL: /Home/[object Object]**
Does anyone have an Idea of why this is happending? Below is my code:
<div class="module_actions">
<div class="actions">
<span class="icon-expand2 pop-out"></span>
</div>
</div>
<script>
$(document).ajaxSuccess(function () {
var Clone =
$(".pop-out").click(function () {
$(this).parents(".module").clone().appendTo("#NewWindow");
});
$(".pop-out").click(function popitup(url) {
LeftPosition = (screen.width) ? (screen.width - 400) / 1 : 0;
TopPosition = (screen.height) ? (screen.height - 700) / 1 : 0;
var sheight = (screen.height) * 0.5;
var swidth = (screen.width) * 0.5;
settings = 'height=' + sheight + ',width=' + swidth + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,resizable=yes,toolbar=no,status=no,menu=no, directories=no,titlebar=no,location=no,addressbar=no'
newwindow = window.open(url, '/Index', settings);
if (window.focus) { newwindow.focus() }
return false;
});
});