"Floating windows" - not implemented?

andrew's Avatar Topic Author
User User
  • Posts: 341
  • Thanks: 28

"Floating windows" - not implemented?

1 year 11 months ago
#3526
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?

Please Log in or Create an account to join the conversation.

davep's Avatar
Admin Admin
  • Posts: 371
  • Thanks: 98

Re: "Floating windows" - not implemented?

1 year 11 months ago
#3527
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
 

Please Log in or Create an account to join the conversation.

andrew's Avatar Topic Author
User User
  • Posts: 341
  • Thanks: 28

Re: "Floating windows" - not implemented?

1 year 11 months ago
#3530
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

Please Log in or Create an account to join the conversation.

Time to create page: 0.409 seconds