Hi:
Continuing from the suggestions offered here already, I can show you how to store the position of a DHTML window using JavaScript cookies, so a DHTML window's position is remembered and persisted within a browser session.
Firstly, use the below modified dhtmlwindow.js file. It will automatically remember the coordinates of each DHTML window popped up on a page using JavaScript cookies. So lets say on page1.htm, you have:
Code:
var googlewin=dhtmlwindow.open("googlebox", "iframe", "test.htm", "#1: Google Web site", "width=590px,height=350px,resize=1,scrolling=1,center=1", "recal")
When this page unloads, googlewin's coordinates is remembered. Now, lets say on page2.htm, you wish to launch this window again (using the same variable name), plus use the persisted coordinates, you'd do something like:
Code:
var googlewin=dhtmlwindow.open("googlebox", "iframe", "test.htm", "#1: Google Web site", "width=590px,height=350px,resize=1,scrolling=1,center=1", "recal")
if (dhtmlwindow.getCookie("googlebox")) //if persisted coordinates exist for this window
alert(dhtmlwindow.getCookie("googlebox"))
In the above case, all I'm doing is alert the persisted coordinates of this DHTML window, so you know it's working. When it comes to actual deployment, you'd instead have:
Code:
var googlewin=dhtmlwindow.open("googlebox", "iframe", "test.htm", "#1: Google Web site", "width=590px,height=350px,resize=1,scrolling=1,center=1", "recal")
if (dhtmlwindow.getCookie("googlebox"))
googlewin.moveTo(dhtmlwindow.getCookie("googlebox").split(" ")[0], dhtmlwindow.getCookie("googlebox").split(" ")[1])
In other words, dhtmlwindow.getCookie(googlebox).split(" ")[0] is how you access the "left" coordinate value, and dhtmlwindow.getCookie(googlebox).split(" ")[0], the top coordinate value.
This just forms the premise of how persisting the DHTML window's coordinates would work. It may not be exactly what you're looking for though. The bottom line is, this is a very specific and personal feature set, and we can't do everything for you, only stir you in the right direction. You may need to hire a JavaScript developer if you're not familiar with JavaScript at all to complete the task.
Bookmarks