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
Share:
105

Related videos on Youtube

randomuser1
Author by

randomuser1

Updated on September 18, 2022

Comments

  • randomuser1
    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
      edwin almost 11 years
      Please, instead of putting the solution inside of the question, post an actual answer (and accept it).
    • Keith Donegan
      Keith Donegan over 8 years
      You need to include the jQuery library
    • Nathanael Smith
      Nathanael Smith over 8 years
      Doesn't look like you included jQuery in that fiddle.
    • Barmar
      Barmar over 8 years
      When 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
      Barmar over 8 years
      It works fine if you select the jQuery library from the Frameworks menu: jsfiddle.net/barmar/jfwerce1/2
    • daremachine
      daremachine over 8 years
      advice ... if you use jquery.. your function should be wrapped by .ready or .load functions
    • Admin
      Admin over 8 years
      Open console. View error messages.
  • Admin
    Admin over 8 years
    Sure, 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
    Admin over 8 years
    I 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
    CDelaney over 8 years
    You 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
    aghast over 4 years
    Just upgraded to buster and was in the same boat: greeter worked, logged in to nothing but a blue screen. This solved the problem, thanks!