I am trying to find out how to grab the URL of a given window if I have the ID…
any ideas?!
I know I can get the dimensions, titles and coordinates and ALL that’s left is the URL…
Thanks in advance!
Windows does not have any urls except url of attached page using attachURL().
Try this:
dhxWins.window(id).attachURL(“http://google.com”);
…
dhxWins.window(id)._frame.src
I tried to retrieve the attached URL of the window using the code you supplied but I receive an error that states the value is null or undefined…I may not have explained myself very well so I will rephrase…
I have a main page that loads all the windows I need and attach’s the appropriate URL’s to them. The main page gives me the ability to add a window on the fly by providing the title and the URL to attach. So I attach the URL and create the window and it pops up on the screen. Which is fine. But I would then like to be able to iterate through each window and save the height, width, x, y, title and URL of each window so I can re-create the given layout the next time I go to the page. I already can iterate through the windows and grab the dimensions, posititioning and titles of each window but was curious if there was a function that would allow me to grab the URL’s and store them as well…if not I have another way that I can do it but wanted to use an api function if it existed…
Thanks for the quick response and awesome products!