Skip to content

Author: admin@master

Stack traces that utilise source mapping

Overview: The stack trace output in the browser console is not the same trace that is returned when Error.stack is called. The console stack trace seems to take into account sourcemaps whereas the Error.stack stack trace does not. Console Output Here is the default stack trace that is output to the console. E…

How to generate unique ID with node.js

How to set a variable value with database query callback? How I can do it? Answer It’s been some time since I used node.js, but I think I might be able to help. Firstly, in node, you only have a single thread and are supposed to use callbacks. What will happen with your code, is that base.getID query wi…

div disappears when page refreshed

Can’t figure out why the below piece of code makes the textfield disappear upon page refresh (when ‘No’ radio button selected). Also, after the page is refreshed the default radio button doesn’t get selected. Forcing refresh, fixes the problem, though. Any ideas? Answer just a short re…

Make Background Black for screen other than popup div

I have following div which i am showing as popup: When its shown, i can easily view other part of screen in the main background. Its viewing as below: (Entry updated sucessfully is popup div above) I dont want to show background screen when poup is there. I want to make it black.. How can i make it black?? I