Hello,
We have recently changed the IP address to system name in the Menu Item URL (Control Panel -> Navigation). We are facing the below problem after this change:
1) When the program or ends, it brings up 'Your session has ended" instead of closing that tab directly. When 'Close' button is clicked on it, it brings up another message "To complete the log off process, please close your browser window." and has to be closed by using the 'X' on the tab. Whereas the tab used to get closed on its own when using the IP address.
2) We have grids with onrowdblclick property to open another tab with more information. Using Atrium.launchURL in the rowdblclick property the new tab was opened. But after changing IP to system name, we are getting an error saying "Blocked a frame with origin URL from accessing a cross origin frame.
Please advice if we are missing something.
Thanks,
Saurabh Arora
Problems when changing IP address to System Name in the URL
-
- New User
- Posts: 18
- Joined: Tue Oct 27, 2015 2:55 am
- First Name: Saurabh
- Last Name: Arora
- Company Name: SESoftech
- Phone: 9650896688
- Country: India
- Contact:
-
- New User
- Posts: 18
- Joined: Tue Oct 27, 2015 2:55 am
- First Name: Saurabh
- Last Name: Arora
- Company Name: SESoftech
- Phone: 9650896688
- Country: India
- Contact:
Re: Problems when changing IP address to System Name in the URL
Just to add, we are using Atrium.getCurrentTab() which is causing the error somehow for #2.
Thanks,
Saurabh Arora
Thanks,
Saurabh Arora
-
- New User
- Posts: 18
- Joined: Tue Oct 27, 2015 2:55 am
- First Name: Saurabh
- Last Name: Arora
- Company Name: SESoftech
- Phone: 9650896688
- Country: India
- Contact:
Re: Problems when changing IP address to System Name in the URL
As we were using the URL with IP address in the browser to open Atrium, it was causing this problem. When the Atrium was opened with the System name in the URL, it worked fine.
Thanks,
Saurabh Arora
Thanks,
Saurabh Arora
- matt.denninghoff
- Profound Logic Staff Member
- Posts: 115
- Joined: Wed Feb 10, 2016 3:53 pm
- First Name: Matthew
- Last Name: Denninghoff
- Company Name: Profound Logic Software
- State / Province: Ohio
- Country: United States
- Contact:
Re: Problems when changing IP address to System Name in the URL
Both your problems #1 and #2 seem due to the browser cross-origin security restraints. Although your IP address and the system name point to the same machine, the browser sees those as two different origins. When the parent page, which is Atrium, is of one origin, and the child iframe, which is an Atrium tab, is another origin, then JavaScript code in the parent cannot control the child iframe and vice versa.
The origin is comprised of the protocol (http or https), domain name, and port number.
Since Atrium's JavaScript can no longer close the session in the tab (a child iframe), you see the "Your session has ended" message, and your user must manually close. One way to fix that problem is to change the Navigation item to use the same origin as the parent Atrium page. So if the Atrium page is now loading with the system name, then you'd need to change the Navigation items to use the system name rather than the IP address.
Similarly, if your Atrium.launchURL argument still uses the IP address, but Atrium uses the system name, then you'd need to change the argument to Atrium.launchURL to point to the system name.
The origin is comprised of the protocol (http or https), domain name, and port number.
Since Atrium's JavaScript can no longer close the session in the tab (a child iframe), you see the "Your session has ended" message, and your user must manually close. One way to fix that problem is to change the Navigation item to use the same origin as the parent Atrium page. So if the Atrium page is now loading with the system name, then you'd need to change the Navigation items to use the system name rather than the IP address.
Similarly, if your Atrium.launchURL argument still uses the IP address, but Atrium uses the system name, then you'd need to change the argument to Atrium.launchURL to point to the system name.
-
- New User
- Posts: 18
- Joined: Tue Oct 27, 2015 2:55 am
- First Name: Saurabh
- Last Name: Arora
- Company Name: SESoftech
- Phone: 9650896688
- Country: India
- Contact:
Who is online
Users browsing this forum: No registered users and 3 guests