Hello
I have a really bizarre problem with my adobe air app. I have a method which launches a local HTML file and passes some querystring items to it.
Here is the code:
function printWin(def) {
def = encodeURI(def);
var req = new window.runtime.flash.net.URLRequest('print.html');
req.method = 'GET';
var urlvars = new window.runtime.flash.net.URLVariables("d="+def);
req.data = urlvars;
air.navigateToURL(req);
return false;
}
The problem is, if this code is run when internet explorer is fully closed, it is fine and will create a URL like this:
file:///C:/Program%20Files%20(x86)/Gastrointestinal%20Tumors%20Dictionar/print.html?d=ABC
However, if internet explorer is already running and the code is run, this is the URL that is created:
C:\Program Files (x86)\Gastrointestinal Tumors Dictionary\print.html
I am at a loss as to why this is but unfortunately I need to try and fix this urgently. Does anyone have any ideas?