Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I'd like to ask about sudden stop of jQuery. Originally I used $(function(){ ... }) but it just stopped working, even though jQuery still works inside of angularjs functions. I tried rewriting it as $(document).ready(function(){ ... }) but it still isn't working.
Any idea of how to fix that?
You may want to use the Developer Tools (F12) within your browser to check the Console and Network tabs to see if any errors are present or if any 404s are popping up due to your jQuery library not being able to be accessed properly.
This could easily be caused if you are loading the files from a CDN and there is an issue with your connection (or the CDN). Additionally, you'll want to ensure that you aren't calling your $(document).ready({...}); call until after your jQuery <script> file has been referenced
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
If writing in Visual Studio code you make a mistake it is often highlighted:
Visual Studio code does detect:
wrong class name (NotMyClass)
wrong local variable (pp2)
wrong function name (rect)
But it does not detect anything wrong if it starts with "this". In particular "this.p3" does not exist. And even when I open the site in the browser (after fixing other mistakes) it executes "well" and instead of "this.p3" I get (I assume?) 0 and no any error log...
Why is it so? Any chance teaching it to highlight this mistake?
P.S. I'm from C#.NET world and relatively new to JS/TS so please educate if I miss something basic.
Yes, ASDFGerte is right, it is indeed JS ... I made JS work inside of Angular application (don't ask why, I'm learning and playing) but forgot this is JS and not everything from TS applies to JS.
I guess the answer is: don't use JS. Thanks all!
P.S. Also, many thanks for other hints
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I'm trying to host a page on GitHub pages, but I seem to be having some errors with it.
From what I understand, everything is where it should be, but I keep getting a 404 error when I try and access the page.
Link to the repo:
https://github.com/Karan-Ghatt/My-Portfolio
It should be active at:
https://karan-ghatt.github.io/My-Portfolio/
I would really appreciate if you could have a look and see if you can tell what's going on.
Much love people!
EDIT:
Thank you for your help, this turned out to be a naming error.
Your index.html starts with a capital 'I', making it Index.html.
Your site is live at https://karan-ghatt.github.io/My-Portfolio/Index.html.
You can rename the Index.html to index.html so that the directory call catches it.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I'm creating an embedding system, however I'm having problems with Safari on iOS. I retrieve my HTML code through an AJAX request, which works except for on Safari on iOS, which was the only browser that did not embed the code.
Code used to insert element into the page:
var el = document.createElement('div');
el.setAttribute('id', 'chat-robbu');
el.setAttribute('style', 'display: none;');
el.innerHTML = data.html; // data.html is part of an object received through an AJAX request
document.body.insertBefore(el, document.body.children[0]);
You can see the code working here: https://chatrobbu.rilo.com.br
To reiterate my comment, since it was, in fact, the underlying issue: Ensure that JavaScript is enabled under Settings > Safari > Advanced, or the code won't execute.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I get this error on this page in Firefox, but only sometimes:
TypeError: $.Tween is undefined
The page worked well for more than 6 month, I haven't changed the code - but strangely, the bug has appeared in the meantime. I have not upgraded any libraries. How can this happen? Can it be problem of the browser, or newer version of google maps api? Note that I still use google maps api v2 here, so the google wrapper script takes place here.
The problem is that you have jQuery included twice,
<script type="text/javascript" src="../lib/jquery/jquery-1.8.3.min_ts_1382746426.js"></script>
...
<script type="text/javascript" src="../lib/jquery/jquery-1.3.2.min_ts_1235084541.js"></script>
and the second, older version, overwrites the first, newer one.
Use one jQuery.
Load the jQuery before all jQueryplugins. keep it on top of every other script tag
use jQuery document ready to run your code.
$(function( ){
console.log( "ready!" );
});
instead of
(function($) {...})(jQuery);
You have to clean up your code. [[Drop unnecessary parts like if(0){ ...}, move the JSON at top of the file, use the logic in bottom.]] Cleaner code will help you to find and solve issues easily.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
So here's what I'm trying to achieve. http://codepen.io/ifen/pen/mBcCo
In mine http://jsbin.com/jafiwani/1/edit , when I enter something into the form and move on to the next, the box closes up and shows the default name. If you try to put anything into both forms you'll understand what I mean. Any help would be great, I've tried everything I know.
You're just missing jQuery from that jsbin. If you go to "Add Library" at the top and add jQuery 2.1.0 you'll see that it works!
n.b you should always check out the javascript console (available in all browsers by viewing the developer tools) for any javascript errors to see what's going wrong. In this case it says:
Uncaught ReferenceError: $ is not defined
This means that the jQuery library that much of the code here depends on (see anything with a $ - that's jQuery in action) is missing.