GNOME/GDM not starting
105
SOLUTION/FIX that worked for me: From Ask Ubuntu, GDM session list borked
Try reinstalling the gnome-session package:
sudo apt-get install --reinstall gnome-session
Related videos on Youtube
Author by
randomuser1
Updated on September 18, 2022Comments
-
randomuser1 over 1 year
My html code is pretty simple:
<a id="trigger-overlay" class="nav-toggle2" href="#">Contact Us</a>
and js is:
$(".nav-toggle2").click(function() { alert('gdsgdsfgs'); });
Why I don't see any alert msg when I click the link?
My fiddle is here: http://jsfiddle.net/jfwerce1/
-
edwin almost 11 yearsPlease, instead of putting the solution inside of the question, post an actual answer (and accept it).
-
Keith Donegan over 8 yearsYou need to include the jQuery library
-
Nathanael Smith over 8 yearsDoesn't look like you included jQuery in that fiddle.
-
Barmar over 8 yearsWhen your Javascript doesn't work, the first thing you should do is check the Javascript console for errors. Only after you've exhausted all the debugging tools there should you post to SO.
-
Barmar over 8 yearsIt works fine if you select the jQuery library from the Frameworks menu: jsfiddle.net/barmar/jfwerce1/2
-
daremachine over 8 yearsadvice ... if you use jquery.. your function should be wrapped by .ready or .load functions
-
Admin over 8 yearsOpen console. View error messages.
-
-
Admin over 8 yearsSure, I appreciate the non-jQuery sentiment, but placing the handler directly on the element is so 2002. Show him the proper way to do it without jQuery in modern JS.
-
Admin over 8 yearsI almost want to upvote this answer for its utter clarity. But I wonder why the best and accepted answer would not point out the that the OP should view console errors, which would have shown him that
$
is not a function or whatever, and at least guided him towards solving more of the problem himself. I would also take umbrage at the simplistic characterization of jQuery as a "library that allows you to more easily write event-drive JavaScript". A fairer description would be a "library which provides compatibility for obsolete browsers, and some syntactic sugar". -
CDelaney over 8 yearsYou know, that depends heavily on the architecture he's working with. You might consider AngularJS to be more "modern" than using jQuery to query the DOM for the element. And if that's the case you're still putting an ng-click on the element instead of querying it.
-
aghast over 4 yearsJust upgraded to buster and was in the same boat: greeter worked, logged in to nothing but a blue screen. This solved the problem, thanks!