<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Extensions problem with external JS in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extensions-problem-with-external-JS/m-p/170137#M588345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an error when I try to use this.&amp;nbsp; An image of the map shows fine but when I try to go into properties and select layout or anything an error message pops up with the message Error: 'style' is null or not an object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, once you've got the map, how do you go about showing data points on it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Emma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2011 08:36:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-27T08:36:17Z</dc:date>
    <item>
      <title>Extensions problem with external JS</title>
      <link>https://community.qlik.com/t5/QlikView/Extensions-problem-with-external-JS/m-p/170133#M588341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a little challenge with extensions. I am trying to include the GoogleMaps API. I know the solution on static maps but this is not satisfaying enough for my needs. Therefore I thought about writing my own extension. But for some reason I can't get it working. The below is a simplified extract, which simply loads the JS script from Google and then should create an object based on the Google API. Unfortunately, the execution stops after the alert("in") statement. I believe the latlng object can't be created because the Google Javascript is unknown (although loaded before).&lt;/P&gt;&lt;P&gt;Any ideas? Here is the code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qva.AddExtension('GoogleMaps', function() {&lt;/P&gt;&lt;P&gt;var script = document.createElement("script")&lt;/P&gt;&lt;P&gt;script.setAttribute("type", "text/javascript");&lt;/P&gt;&lt;P&gt;script.setAttribute("src", "http://maps.google.com/maps/api/js?sensor=true");&lt;/P&gt;&lt;P&gt;this.Element.appendChild(script);&lt;/P&gt;&lt;P&gt;script = document.createElement("script");&lt;/P&gt;&lt;P&gt;script.setAttribute("type", "text/javascript");&lt;/P&gt;&lt;P&gt;this.Element.appendChild(script);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alert (this.Element.innerHTML);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialize();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function initialize() {&lt;/P&gt;&lt;P&gt;alert ("in");&lt;/P&gt;&lt;P&gt;var latlng = new google.maps.LatLng(48, 8);&lt;/P&gt;&lt;P&gt;alert(latlng);&lt;/P&gt;&lt;P&gt;var myOptions = {&lt;/P&gt;&lt;P&gt;zoom: 4,&lt;/P&gt;&lt;P&gt;center: latlng,&lt;/P&gt;&lt;P&gt;mapTypeId: google.maps.MapTypeId.SATELLITE&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 21:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extensions-problem-with-external-JS/m-p/170133#M588341</guid>
      <dc:creator />
      <dc:date>2011-03-18T21:44:16Z</dc:date>
    </item>
    <item>
      <title>Extensions problem with external JS</title>
      <link>https://community.qlik.com/t5/QlikView/Extensions-problem-with-external-JS/m-p/170134#M588342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get this working as I have jsut started to look at the same thing?&amp;nbsp; I don't really understand javascript at the moment so i'm learning it as i go along&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lewis &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 10:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extensions-problem-with-external-JS/m-p/170134#M588342</guid>
      <dc:creator />
      <dc:date>2011-06-23T10:06:17Z</dc:date>
    </item>
    <item>
      <title>Extensions problem with external JS</title>
      <link>https://community.qlik.com/t5/QlikView/Extensions-problem-with-external-JS/m-p/170135#M588343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a sample of integrating Google Maps JavaScript v3 API into QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://andpointsbeyond.com/2011/06/24/qlikview-google-maps-javascript-v3-integration/"&gt;http://andpointsbeyond.com/2011/06/24/qlikview-google-maps-javascript-v3-integration/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 19:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extensions-problem-with-external-JS/m-p/170135#M588343</guid>
      <dc:creator />
      <dc:date>2011-06-24T19:35:48Z</dc:date>
    </item>
    <item>
      <title>Extensions problem with external JS</title>
      <link>https://community.qlik.com/t5/QlikView/Extensions-problem-with-external-JS/m-p/170136#M588344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats brilliant thanks - that will give me something to work from - next stop Dummies guide for JavaScript!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lewis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 12:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extensions-problem-with-external-JS/m-p/170136#M588344</guid>
      <dc:creator />
      <dc:date>2011-06-28T12:09:17Z</dc:date>
    </item>
    <item>
      <title>Extensions problem with external JS</title>
      <link>https://community.qlik.com/t5/QlikView/Extensions-problem-with-external-JS/m-p/170137#M588345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an error when I try to use this.&amp;nbsp; An image of the map shows fine but when I try to go into properties and select layout or anything an error message pops up with the message Error: 'style' is null or not an object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, once you've got the map, how do you go about showing data points on it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Emma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 08:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extensions-problem-with-external-JS/m-p/170137#M588345</guid>
      <dc:creator />
      <dc:date>2011-09-27T08:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extensions problem with external JS</title>
      <link>https://community.qlik.com/t5/QlikView/Extensions-problem-with-external-JS/m-p/170138#M588346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;was wondering if you got the map integrated with your datamodel in QV?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would like to dynamically load data points onto the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best,&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 15:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extensions-problem-with-external-JS/m-p/170138#M588346</guid>
      <dc:creator />
      <dc:date>2013-07-19T15:00:57Z</dc:date>
    </item>
  </channel>
</rss>

