<?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 Re: Custom visual - jquery  and other js in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-jquery-and-other-js/m-p/157051#M5305</link>
    <description>&lt;P&gt;Thx. Is working.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Apr 2017 07:53:19 GMT</pubDate>
    <dc:creator>przemek</dc:creator>
    <dc:date>2017-04-11T07:53:19Z</dc:date>
    <item>
      <title>Custom visual - jquery  and other js</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-jquery-and-other-js/m-p/155443#M5259</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need 2 js file in my custom visual&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;jquery.js&lt;/LI&gt;&lt;LI&gt;boostrap.js&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I add to&amp;nbsp;pbiviz.json like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"externalJS"&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"node_modules/jquery/dist/jquery.min.js"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"node_modules/boostrap/src/boostrap.js"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;i run pbiviz start and so far o good&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but then I test in&amp;nbsp;browser i have a problem like this.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;the whole file looks like this (i get from web console form chrome)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;(function(powerbi) {&lt;BR /&gt;var window = this;&lt;BR /&gt;&lt;BR /&gt;//These 2 lines are needed to trick lodash into using this as global scope&lt;BR /&gt;var self = this;&lt;BR /&gt;self.Object = Object;&lt;BR /&gt;&lt;BR /&gt;//de-reference powerbi loaded modules&lt;BR /&gt;var $, jQuery, _;&lt;BR /&gt;window.jQuery = window.$ = undefined;&lt;BR /&gt;window._ = undefined;&lt;BR /&gt;&lt;BR /&gt;/*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */&lt;BR /&gt;!function(a,b){"use strict";"object"==typeof module&amp;amp;&amp;amp;"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;bla bla bla jquery min staff&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/*!&lt;BR /&gt;* Bootstrap v3.3.7 (&lt;A href="http://getbootstrap.com" target="_blank"&gt;http://getbootstrap.com&lt;/A&gt;)&lt;BR /&gt;* Copyright 2011-2016 Twitter, Inc.&lt;BR /&gt;* Licensed under the MIT license&lt;BR /&gt;*/&lt;BR /&gt;if("undefined"==typeof jQuery&lt;STRONG&gt;)throw new Error("Bootstrap's JavaScript requires jQuery")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;SPAN&gt;/*&lt;BR /&gt;* Power BI Visual CLI&lt;BR /&gt;*&lt;BR /&gt;* Copyright (c) Microsoft Corporation&lt;BR /&gt;* All rights reserved.&lt;BR /&gt;* MIT License&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I don't know how to add external js file witch use other external file.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thx for help&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 Apr 2017 09:42:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-jquery-and-other-js/m-p/155443#M5259</guid>
      <dc:creator>przemek</dc:creator>
      <dc:date>2017-04-07T09:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom visual - jquery  and other js</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-jquery-and-other-js/m-p/156486#M5291</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/26329"&gt;@przemek&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try to replace "jQuery" with "window.jQuery".&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 11:02:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-jquery-and-other-js/m-p/156486#M5291</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2017-04-10T11:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom visual - jquery  and other js</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-jquery-and-other-js/m-p/157051#M5305</link>
      <description>&lt;P&gt;Thx. Is working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 07:53:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-visual-jquery-and-other-js/m-p/157051#M5305</guid>
      <dc:creator>przemek</dc:creator>
      <dc:date>2017-04-11T07:53:19Z</dc:date>
    </item>
  </channel>
</rss>

