Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
150
rated 0 times [  152] [ 2]  / answers: 1 / hits: 18634  / 9 Years ago, tue, february 10, 2015, 12:00:00

I know this question has been asked before, but somehow none of the fixes for other people have worked for me. I have a feeling it has something to do with importing my plugins. When clicking a field in a bootstrap dropdown box I get undefined is not a function in the console for this line of code:



$target.closest( '.btn-group' )
.find( '[data-bind=label]' ).text( $target.text() )
.end()
.children( 'dropdown-toggle' ).dropdown('toggle');


Here's my import code in my HTML:



<script src=https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js></script>
<script type=application/javascript data-main=static/js/main src=static/js/libs/require/2.1.11/require.js></script>
<script src=static/js/libs/bootstrap/bootstrap.min.js></script>
<link href=static/css/bootstrap.min.css media=screen rel=stylesheet type=text/css>


Whenever I click the dropdown box I also get this error in the Network tab of my console, it says that the request was cancelled:



file:///home/chad/.config/google-chrome/Default/Extensions/gkojfkhlekighikafcpjkiklfbnlmeio/1.6.222_0/js/jquery.min.map


Any help on this would be greatly appreciated! I've been pulling my hair out over it for hours.


More From » jquery

 Answers
11

Long shot here, but are you using the chrome extension called Hola ? I noticed this message



Denying load of chrome-extension://gkojfkhlekighikafcpjkiklfbnlmeio/js/jquery.min.map. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.


while testing a web app im developing and found out that it was that extension causing the error, just disabled it and the message didnt appear anymore. Im also using bootstrap, dont know if its related to that.



The code after the // is the id of the extension, you can compare it with the ids in the Chrome extension configuration, see this image and notice the id is the same as in the error.



Hope this helps.


[#67884] Saturday, February 7, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
chase

Total Points: 78
Total Questions: 106
Total Answers: 93

Location: Comoros
Member since Tue, Mar 14, 2023
1 Year ago
chase questions
Thu, Mar 31, 22, 00:00, 2 Years ago
Thu, Jul 1, 21, 00:00, 3 Years ago
Sat, Dec 12, 20, 00:00, 4 Years ago
Mon, Sep 14, 20, 00:00, 4 Years ago
;