So, here's a start. This is what I've tried:
I created a getleft function to return t.lastx, which is generated in rememberattrs
Code:
getleft:function(t){
dhtmlwindow.rememberattrs(t)
return t.lastx //position window to last known x coord just before minimizing
},
Here's rememberattrs:
Code:
rememberattrs:function(t){ //remember certain attributes of the window when it's minimized or closed, such as dimensions, position on page
this.getviewpoint() //Get current window viewpoint numbers
t.lastx=parseInt((t.style.left || t.offsetLeft))-dhtmlwindow.scroll_left //store last known x coord of window just before minimizing
t.lasty=parseInt((t.style.top || t.offsetTop))-dhtmlwindow.scroll_top
t.lastwidth=parseInt(t.style.width) //store last known width of window just before minimizing/ closing
},
But when I call this getleft function from my test page, I receive an undefined value.
Code:
var left = time.getleft();
alert(left); // undefined
Any help is greatly appreciated! All I want is to be able to retrieve these positioning values.
Bookmarks