Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  About JavaScript source map

Last week jQuery 1.9 was released. This is the last release before jQuery 2.0. It adds many new functions, one of them is the source map.By accessing http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js , you can scroll to the last line and you will see below line : //@ sourceMappingURL=jquery.min.mapThis is source map, it is a separate file and it is put at the same directory as the source file. You can click here and see what it looks like. It's an very useful function, we will talk more about it here.1. Start from source code transformationJavaScript source codes now ...

6,116 0       JAVASCRIPT SOURCE MAP JQUERY


  Let 's write some front end codes

I've seen a lot of arguments that there is no much technical value writing web portal, I think that the vast majority of good programmers will try many different things. The low level development and machine learning are not the only technologies which are  full of wisdom and challenges, I wrote web site for a few years, it is difficult to say that this is my initial interest, although I touched on other technologies as well, I still feel building website is challenging.Front end development is an important aspect of the many technologies we should touch on. Those who put much effort on f...

2,930 0       CSS JAVASCRIPT FRONT END DEVELOPMENT


  4 asynchronous programming methods in JavaScript

You may know the execution environment of JavaScript is single threaded. The so called single thread means only one task can be running at any time, if there are many tasks, they need to be in a queue and wait for the previous task to be completed.The advantage of this mode is it's easy to implement and the execution environment is relative simple; the disadvantage is that if one task takes long time, the tasks following it must wait in the queue and this will delay other tasks consequently. The end result is the browser may hang.To solve this issue, JavaScript divides the task execution modes...

10,725 0       JAVASCRIPT ASYNCHRONOUS PROGRAMMING EVENT MODEL PROMISE


  Update parent window after closing the window opened by window.open()

Imagine we have a webpage which has a text field to let user enter a date. Usually, we may create a calendar window to ask the user to pick one date from the calendar window, when the date is picked, the calendar window will close and the date picked will be put into the text field. This way involves the window.open() method in JavaScript, and we may think how the opened window knows its parent window and then updates the parent window. I give a simple demo on this.We have two pages, on is the page which will trigger to open a new browser window, the other one is the page displayed in the open...

8,283 0       UPDATE WINDOW.OPEN JAVASCRIPT RETURN VALUE