Thank you for the response.
I have modified the googlemap.rsp example file to include the following addition:
Code:
<head>
<meta charset='utf-8'>
<meta name="viewport" content="initial-scale=1, maximum-scale=1"/>
<link rel="stylesheet" href="&m_libpath/jquery.mobile-1.3.2/jquery.mobile-1.3.2.min.css" />
<script src="&m_libpath/jquery-1.10.2/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true&key=AIzaSyBHokU4jRNQQFo0-XxFvTDgQBusXcmeRvI"></script>
<script src="&m_libpath/jquery.mobile-1.3.2/jquery.mobile-1.3.2.min.js"></script>
<script type="text/javascript">
function zoomMap(nZoomLvl) {
map.setZoom(nZoomLvl);
}
</script>
I am trying to interact via a command button with the following code:
Code:
////////////////////////////////////////////////////////////////
// Event delegate for 'click' event
proc page1_section4_field2_click()
// insert your code here
WAIT WINDOW 'TEST' NOWAIT
oMap = Lianja.getElementByID("page1.section1.oGoogle")
oMap.evaluate("zoomMap(10)")
endproc
The button does not give an error, however the zoom function does not fire.
Any thoughts/suggestions are highly appreciated!
Thank you!
Bookmarks