on 05-30-2017 10:41 PM
I have the following situation:
I need to open Google Maps from a PowerBuilder application (dev version 10.2.1), to locate a specific addresses. When I do it by running the application locally, everything works fine.
However, when running the application through Citrix, the it displays the following message: "It looks like you have enabled Internet Explorer Compatibility View. Google Maps will not work unless this is turned off".
I want to clarify that running the application locally, IE compatibility mode can be enabled and the same message does not come out.
One hypothesis I have is to disable IE compatibility mode, but I am not sure how to do it.
I am using an UO "Microsoft Web Browser", which I understand that by default it has compatibility with IE7.
To add the URL to the user object I am using ole_browser.object.Navigate (as_url, 0,0,0,0).
Thanks
I had the same problem in my local environment.
Here you can find an article about setting the compatibility mode.
I used another solution: I open google maps in a IFRAME and set the compatibility in the surrounding page.
Here the code that creates a dynamic page:
// function or event where you want to load the page
// load blank page and add the google maps url as parameter
string ls_url
ls_url = ...
Object.Navigate ("about:blank?" + ls_url)
// Event documentcomplete of the browser control
string ls_url, ls_html
IF left (aa_url, 12) = "about:blank?" THEN
ls_url = Mid (aa_url, 13)
ls_html = '<!DOCTYPE html>~r~n' + &
'<html>~r~n' + &
'<head>~r~n' + &
'<meta http-equiv="X-UA-Compatible" content="IE=edge" />~r~n' + &
'<style>~r~n' + &
'html, body, iframe {height: 100%; margin: 0;}~r~n' + &
'</style>~r~n' + &
'</head>~r~n' + &
'<body>~r~n' + &
'<iframe src="' + ls_url + '" width="100%" height="100%" frameborder="0" style="border:0"></iframe>~r~n' + &
'</body>~r~n' + &
'</html>'
TRY
Object.Document.Open ()
Object.Document.Write (ls_html)
Object.Document.Close ()
Object.Refresh()
CATCH (throwable e)
// error handling if you want
END TRY
END IF
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.