Blog
POW Answer – JavaScript Self Inequality
As two people indicated in their comments in the original POW post, the answer is NaN. You can even do the following to check it: Weird stuff, right?!?!?!
As two people indicated in their comments in the original POW post, the answer is NaN. You can even do the following to check it: Weird stuff, right?!?!?!
Assuming a normal JavaScript engine, what could you possibly pass into the following mystery() function that would not thrown an error? As is normal, this answer will be shown a week from when it was posted and will be linked to from here.The answer to this POW can now be Read more…
One of the supposedly evil things that is available in jQuery is eval. The type of eval that is available is of the global variety. In other words globalEval provides the ability to execute JavaScript code from a string in the global scope. Most people don’t realize it, but eval Read more…
One DOM element property that has been provided in Internet Explorer that isn’t natively available in some other browsers is outerHTML. Fortunately there is a cross-browser solution for getting this property: I actually can’t take the credit for this function because it is derived from Google’s Closure Library. The function Read more…
One of the things that is in the new version of jPaq is simple AJAX handling. The way that I accomplished it was by using code similar to the following: The above code basically provides a function called requestContentFrom(...). This function takes the URL of the content that you are Read more…