Skip to content

Author: admin@master

Load one-script-after another

I have this simple function which loads scripts into the current DOM: They are loaded fine and without no errors. I know there are event handlers when loading scripts programmatically: onreadystatechange, and onload, etc Now I would like to wish to do the following: Load first script from the array, and when …

onunload does in Chrome

I am opening a new window as below to var nResult = window.showModalDialog(“getSelection.asp?Type=” + inputType, “”, “dialogHeight:220px; dialogWidth:400px; resizable=no; help:no; status:no”); Now on getSelection.asp I have following syntax for body <BODY onload=”R…

How do I insert HTML into Mongodb?

I keep getting kicked out of the shell when I try to paste in an HTML text file. How can this be done? Do I first need to use some javascript to encode it or something? Example: EDIT I put only single quotes inside my html and wrapped the whole thing in double-quotes, but still no good. shell error: Answer

Chain to pre defined functions with jQuery

I have been trying to chain this last bit of code to work nicely. It calls two functions that have been preset: I want the caption to be set once the image has slid. This has always been a confusing topic for me as I have tried different ways of calling it such as: But that does not work. Answer