I'm trying to write a small web application that is able to take in data from URL parameters and display appropriate information about that data. The page is not rendered server side so all the parameters do is tell that javascript what to send to my JSON API and load into the view. The page is being loaded from another, desktop application, which encodes the data to use in the URL it loads since that's the only way I can get it to communicate with the site... so, for example, the desktop app would generate a link like
http://myapp/?room=1&tile=7
This works fine for the first instance, but I would like it to work like many desktop applications do where if you load the app another time, it just brings up the original instance with the new data. I know that the new page will have to at least briefly load, but is there a way of having it just take the new data, send it to the first instance of the page and then close itself? I know sort of how to do this when I have a main page and I use window.open() to open a second, which I can force to reload. But I've never done it where the first instance is opened manually and I then need to interact with that.