Code Monkey home page Code Monkey logo

js-jquery-document-ready-readme's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

js-jquery-document-ready-readme's Issues

document ready

Once jQuery senses the document has loaded

i'd say the DOM fires off and event, and then we run out jquery code in a callback

document ready files not present in IDE

This is the first lesson I have had this problem with so far. It seems the files are not there when I open IDE. This prevented me from having access to the necessary files.

Unable to Fork "Document Ready" Lab

After successfully forking earlier labs and getting a confirmation from Github about this fork, the IDE in the lab did not update. This prevented me from having access to the necessary files.

load order

That's because we haven't set the jQuery to run yet.

i'm not sure if this is the reason the jquery code is not running. i think we should talk about race conditions and the possibility of an element not being on the page when the jquery code runs

jquery is Javascript

I'd be careful with language here. It's important to be clear that jquery IS javascript, it's written in javascript, and just uses the native browser API in JS.

For example, this line, "we want to separate out our JavaScript and jQuerys" makes me think this is two different things.

ERROR: [Sorry, something went wrong. Please try again.]

I'm using the IDE on my computer and on this lesson, it gives me the error (Sorry, something went wrong. Please Try Again).

I have uninstalled and deleted the .atom folder with all its data and nothing. Any ideas how to solve it?

order of loading code

But we had to write our JavaScript and jQuery code at the bottom of our HTML body so that the code would run once the page would load. How can we achieve that when our code is in a totally different file? We need to guarantee that the HTML document is loaded before our other files are triggered.

might be worth explaining how the browser parses HTML, and blocks while it reads JS etc.

The code in the code-a-long didn't work

The lab says to use:

$(document).ready(function() {
// code to be executed goes here
});

But that wouldn't work for me. When I adjusted to the code we learned in lecture, I got it working. That being:

$(document).on('ready', function() {
// code to be executed goes here
})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.