- Posts: 339
- Thank you received: 28
"Floating windows" - not implemented?
- andrew
- Topic Author
- Offline
- User
-
Less
More
1 year 9 months ago #3526
by andrew
"Floating windows" - not implemented? was created by andrew
The first part of the myserver6 features page at
allonis.com/support/documentation?view=category&id=426
describes being able to use floating windows to show different parts of a user interface. It says to use the 'Popup' command to launch these windows, giving as example:
Popup|url~overlay~left~top~width~height
Unfortunately 'Popup' doesn't seem to exist in the list of commands for the command builder and trying to use it gets an 'Unknown command' error in the event log.
Is this supposed to work?
Popup|url~overlay~left~top~width~height
Unfortunately 'Popup' doesn't seem to exist in the list of commands for the command builder and trying to use it gets an 'Unknown command' error in the event log.
Is this supposed to work?
Please Log in to join the conversation.
- davep
- Offline
- Admin
-
Less
More
- Posts: 367
- Thank you received: 96
1 year 9 months ago #3527
by davep
Replied by davep on topic "Floating windows" - not implemented?
Dashboard is using the popup command to view server variables in a floating window. The client command it uses is Popup|/sampler~server-variables~300~100~1366~999
To use this Popup command you need to specify the root project folder, name of the web page, left, top, width, height. In the server variables example it will open the server-variables.html file in the wwwroot/samples folder. I do that because the samples project folder has an empty index.html file so there is no flash of unwanted content. If you use the main project folder as the root then you might see a brief flash of the index content before the desired page loads.
There is also an additional command that will popup a page with an external website. The "Live Event Log" button on the dashboard index is using this command to open the live event log. When used as a server command iIt looks like this
WebCmd|{{clientname}}~PopupViewer|{{server_events_url}}~Events~300~100~960~540
To use this Popup command you need to specify the root project folder, name of the web page, left, top, width, height. In the server variables example it will open the server-variables.html file in the wwwroot/samples folder. I do that because the samples project folder has an empty index.html file so there is no flash of unwanted content. If you use the main project folder as the root then you might see a brief flash of the index content before the desired page loads.
There is also an additional command that will popup a page with an external website. The "Live Event Log" button on the dashboard index is using this command to open the live event log. When used as a server command iIt looks like this
WebCmd|{{clientname}}~PopupViewer|{{server_events_url}}~Events~300~100~960~540
Please Log in to join the conversation.
- andrew
- Topic Author
- Offline
- User
-
Less
More
- Posts: 339
- Thank you received: 28
1 year 9 months ago #3530
by andrew
Replied by andrew on topic "Floating windows" - not implemented?
Ah, that was what I was missing. I was trying to run the command in the command tester thinking it would just work in the dashboard. But I have to treat the dashboard as any other client to the server so the commands need to be:
WebCmd|dashboard-fx-k8va~Popup|/sampler~server-variables~300~100~1366~999
or
WebCmd|dashboard-fx-k8va~Popupviewer|/sampler/server-variables.html~server-variables~300~100~1366~999
Thanks very much - that was very helpful.
Andrew
WebCmd|dashboard-fx-k8va~Popup|/sampler~server-variables~300~100~1366~999
or
WebCmd|dashboard-fx-k8va~Popupviewer|/sampler/server-variables.html~server-variables~300~100~1366~999
Thanks very much - that was very helpful.
Andrew
Please Log in to join the conversation.
Time to create page: 0.159 seconds