Browse by Tags

All Tags » javascript (RSS)
Re: Do JavaScript after window.close()
There is a slight modification for my previous post . The conditions for the if statement there is inadequate. The bug occurs when refreshing the browser when the mouse is beyond the leftmost side of the window, a valid yet unanticipated negative value...

Posted by Alexis' Blog

Re: JavaScript Hashtable Implementation
This is in response to my previous post re JavaScript Hashtable Implementation . I modified my code to be able to remove elements, as well as get an enumeration of the elements in cases wherein the keys are strings rather than integers. Here are the new...

Posted by Alexis' Blog

Filed under: ,

Do JavaScript after window.close()
I needed to do some routines when a user has closed the window. I do not want those routines to trigger when refreshing the page or unloading the document; I just need them to happen when the browser window is closed. This is the usual proposed solution...

Posted by Alexis' Blog

BLOCKED SCRIPT How to close the browser window without the IE warning
In Internet Explorer, when you use window.close() in JavaScript to close the current browser window, you will be asked something like "A script is attempting to close this window. Do you want to continue?" As a programmer, this can be annoying...

Posted by Alexis' Blog

Selecting Xml Nodes in MSXML 3 via XPath
Apparently, you need to set the SelectionLanguage property of a JavaScript XML Document object to XPath so you can select nodes via XPath. var xmldoc = new ActiveXObject("Microsoft.XMLDOM"); // or var xmldoc = new ActiveXObject('Msxml2.DOMDocument...

Posted by Alexis' Blog

JavaScript Hashtable Implementation
I needed a hashtable implementation in JavaScript and here's what I’ve come up. It is used like this: var ht = new Hashtable(); ht.put( “key” , “value” ); var val = ht.get( “key” ); // returns null if not found The implementation is like this: function...

Posted by Alexis' Blog

Filed under: ,