How in the hell do I get DHTMLX windows to share session data with the rest of the applicaition? When I open a DHMTLX window, the session data shows if I look at the “frame source” but yet when I look at page source, there is no session data. I need the main application and the windows to use the same session data. How is that done?
if you are using attachURL(url) method to load a page, the page is loaded into an iframe. You need to consider this. To access the iframe from the parent, you may use the following:
var ifr = win.getFrame();
And content window can be got by ifr.contentWindow
Just now noticed I had an answer here.
Still don’t answer my question.
How do I make the parent variables and session data available in each of the windows I create. What is the proper method. Reading documentation is rather tedious at best and lacks the detail I need to understand the proper syntax and reach the power this script has.
Right now I have to reload my bootstrap.php file inside each window and have to reload the session data which is not effective at all. I loose the session data available in the parent class and need to create windows that draw on already loaded information.
Hello,
the question is more about the architecture of your application and not relate dhtmlxWindows. Windows of dhtmlxWindows component are absolutely positioned with or without iframes, they don’t relate server-side implementation.
Not to be respectful, but this kind of dodges the question and does not answer it. In the parent screen, I load certain PHP classes. Those classes are not available until I reload all them in the window too which is horribly inefficient. I want to integrate parent PHP coding with the Windows and it looks like this script is built to work on a strict javascript system rather than PHP. I like the ease in creating windows via MySQL data I created for the variables and all that works nice and dandy. But data management in conventional php based application does not work efficiently with this script so far. I want to be able to pass data from the parent window to the child window and it is not letting me and I am not getting the right pointers to look at so far and havent for a couple years yet.
Reason I am asking, in the PWC-OS system I didn’t have to reload the session data or the classes into the windows. What was global was also global inside the AJAX windows.
Reason I am asking, in the PWC-OS system I didn’t have to reload the session data or the classes into the windows. What was global inside the parent window was also global inside the AJAX windows.
dhtmlxWindows is javascipt library. Therefore, it can no’t affect your server-side scripts.
I don’t see ways how the problem can be solved from our side. But if you do, you may provide the link to the problematic page and describe the problem with dhxWins.
I realize it’s a javascript library. However, then the URL is assigned to the window, all session and global data is not carried over and I needed to make it happen. I really like these windows over the old PWC-OC or the prototype window script at prototype-window.xilinus.com/ because neither one has been updated or supported since 2007.
If I can grasp this script I intend to purchase the professional grade license eventually but the documentation assumes a great deal of expertise already and does not really help people learn the script IMO.
Anyway, I figured how to do it and that’s to pass it via an encrypted URL parameter. Sessions was the main thing that I was trying to clear up and the way I figured to do it was append the URL with a session parameter and then pass the data to a global array inside the window. Right now it’s the iframe method I am using. When I tested the ajax method, it was possible to access the script via direct navigation if you know the exact path, but for some reason, direct access was not allowed using the iframe method.