Skip to main content

Home/ javascript/ Group items tagged http

Rss Feed Group items tagged

Ivan Pavlov

javascript [ES Wiki] - 1 views

  •  
    This is a wiki for the ongoing specification work of Ecma TC39, the technical committee tasked with standardization of the ECMAScript programming language. Most of the wiki is world-readable, meaning that anyone can view the pages. Certain sections are restricted to members of the technical committee.
Javier Neira

liebke's clj at master - GitHub - 0 views

  •  
    Clj is a Clojure REPL and package management system.
Javier Neira

The difference between 'return false;' and 'e.preventDefault();' | The Hostma... - 2 views

  •  
    function() { return false; } // IS EQUAL TO function(e) { e.preventDefault(); e.stopPropagation(); }
Javier Neira

Michael Sharman - chapter31 » Including js files from within js files - 1 views

  •  
    01.//this function includes all necessary js files for the application 02.function include(file) 03.{ 04. 05. var script = document.createElement('script'); 06. script.src = file; 07. script.type = 'text/javascript'; 08. script.defer = true; 09. 10. document.getElementsByTagName('head').item(0).appendChild(script); 11. 12.} 13. 14./* include any js files here */ 15.include('js/myFile1.js'); 16.include('js/myFile2.js');
Javier Neira

Understanding JavaScript Timers « JavaScript, JavaScript - 1 views

  • By enforcing a timeout (however small) you remove the function from the current execution queue and hold it back until the browser is not busy.
  • you can make long running functions (on which no other immediate function is dependent) defer execution until more urgent routines have completed.
  • The firing of the setTimeout callback is asynchronous, the function itself will be invoked in line and after the current invocation queue
Javier Neira

Caffeinated Simpleton » Blog Archive » An Introduction to JavaScript's "this" - 2 views

  • That’s what this is expected to be, anyway. It’s expected to be a reference to the current instance of whatever object it’s defined within.
  • It’ll give an error saying that this doesn’t have a member called condiments, even though it clearly does. What happened?!
  • This is because there is no binding of functions to instances in JavaScript.
  • ...3 more annotations...
  • The setTimeout function, however, just has a reference to that function. When it calls it, it’s not aware of myHotDog, so JavaScript sets this to window
  • function HotDog() { var my = this; // my references the current this, which is correct. my.condiments = "mustard, ketchup"; my.getCondiments = function() { return my.condiments; //my is guaranteed to be a reference to the original "this" } }
  • In constructors, this is always your instance. So we created a new variable, my, that references the HotDog instance. This allows you to always refer to the HotDog instance, no matter how the getCondiments function is called.
Hussain M Elius

editease: jQuery CMS - 6 views

  •  
    A very simple jQuery CMS that can be configured and set up in around 2 minutes. Plugging in to your site is a breeze, and can be done at almost any time during the life cycle of development. Note: This is a very small CMS, with no database requirements. Ideal for small sites, or where only a small amount of 'content management' is required. If your site requires all content to be databased, there are many other CMS programs already in existence to choose from, so then maybe this is not the right solution. :)
« First ‹ Previous 81 - 100 of 657 Next › Last »
Showing 20 items per page