135
rated 0 times
[
141]
[
6]
/ answers: 1 / hits: 21749
/ 12 Years ago, fri, may 25, 2012, 12:00:00
I searched everywhere here to see since so many people ask this question, but no matter what, I keep getting undefined
..
function remove_item(itemid) {
var window = top.location;
var host = window.host;
$.ajax({
url: http://+host+/backend/remove_lockbox.php?id=+itemid,
success: function() {
$(document).ajaxStop(function(){
window.top.location.reload();
});
}
});
}
That is my code. I tried window.location.reload
, host.location.reload
... I tried everything and I keep getting undefined
... The parent of location is always undefined
whether it's window
, host
, window.top
, ANYTHING.
Can someone PLEASE help me?
More From » function