AnsweredAssumed Answered

FileMaker Go 1.2 bug?

Question asked by Jade on Apr 20, 2011
Latest reply on Mar 26, 2012 by Jade

Title

FileMaker Go 1.2 bug?

Post

There seems to be a bug introduced with FileMaker Go 1.2.

The function GetLayoutObjectAttribute["ABC" ; "content"] no longer returns the full content of the web viewer "ABC" that has been set to the javascript below.  It only returns the tags <html><head></head><body></body></html>.  However, the web view displays the correct text.  This worked correctly in the previous FileMaker Go  version.

This error occurs on both the iPhone and iPad 2.  I am using FMP advance 9.0v3

data:text/html,<!DOCTYPE HTML>

<html>

    <head>

        <script type="text/javascript">

            function success(location) {

                var message = document.getElementById("messageArea");

                messageArea.innerHTML="<p>Latitude: " + location.coords.latitude + "</p>";

                messageArea.innerHTML+="<p>Longitude: " + location.coords.longitude + "</p>";

                messageArea.innerHTML+="<p>Accuracy: " + location.coords.accuracy + "</p>";

                messageArea.innerHTML+="<p>Heading: " + location.coords.heading + "</p>";

                messageArea.innerHTML+="<p>Speed: " + location.coords.speed + "</p>";

            }

        function fail() {

alert('Unavailable');

}

            function getLocation() {

                navigator.geolocation.watchPosition(success, fail, {maximumAge: 0, enableHighAccuracy: true, timeout: 60000});

            }

        </script> 

    </head>

    <body onload="getLocation();">

        <div id="messageArea">

            Location unknown 

        </div>

    </body>

</html>

Outcomes