I have an Opera 11 extension, which has a background process and an injected script. These communicate very frequently with a remote server (not the webpage the user s viewing), using the background script s cross-site XMLHttpRequest capabilities.
I would like the URL of the server to be a preference, so that it can be modified by the user without editing the package. The config.xml file would good, for it accepts <preference name="serverUri" value="..." />
. However, I would like the script to be able to update itself directly from the server (not through Opera s site), which can be achieved using <update-description href="http://myserver.com/client/update" />
.
So what I would like to do is have the href
attribute of the update-description
element to be dependent on the value of the preference serverUri
. I would imagine some syntax like this:
<update-description href="{$serverUri}" />
But I could not find any references to this kind of functionality. Is there some way to solve this?