views:

30

answers:

0

I have programmed some launcher for a game, so you can actually start the game and make it automaticly do various things with just one click from the browser. To make it easier for people to make their own custom links, I've tried to build something where they can create the links with just a few buttons.

It works like this: The protocol oacon:// is registered with windows, and starts the game (openarena.exe) with arguments which are in the url behind the protocol. For example oacon://12.23.45.67:27960 would launch and connect to the server 12.23..:27960 (you can do more with it - put all ioq3 arguments behind it for the people who know - but that's not important now).

So back to the link-creator, I've made an input box and several buttons next to it so users can just click on what options they like. For selecting the server I've tried making a button which pops up a window with all servers, and in that window put behind all servers a 'select this server' link. Of course, onclicking the select link it should close the popup and return the IP and port to the window which opened it. Here's where the problem is, the script has no rights to read or write variables from and to either of the windows. To wouldn't be a problem as I can just put it in the URL (url?var=val), but howto do from?

Local my script works perfectly, though online it doesn't get the permissions (firefox error console says that it has no permissions to read). Is it possible that it is because it's cross-domain? Putting it on the same domain is an option, but it would reduce user-experience by a lot because I have to link to it instead of putting it on the page. Also then I could just include the page with servers and the select links via php in the link-creator, and hide/show it with a simple script.. But it would be awesome if it were possible to make it work without going to another page (I'm also doing this to be able to do this kind of things on other websites later, studying for IT at the moment but not sure if I go into webdesign or other programming, though it's a cool project for me).

Any help is greatly appreciated!