A couple of days ago, I noticed that I have IE10 on my computer, although I did not install this latest IE-version myself. Apparently, Microsoft has started automatic upgrades of IE to its latest version(s). So I wanted to know how my sites looked like with IE10 (I normally use Firefox). They looked normal, but the javascript on certain pages produced unwanted results that were not problematic until now (with IE7/8/9). At first, I was unable to find out what caused ...
The javascript location.search propery sets / returns the query portion of a URL, including the question mark (?). This means that if we put <a onclick="location.search='this is a test'">test</a> in a file named our_file.html, the URL (our_file.html) will be replaced with our_file.html?this is a test after a click on the link. Having arrived at our_file.html?this is a test, we can go back to our_file.html by using the browser's history (back) button. The content of our_file.html?this ...
Updated 01-01-2013 at 09:49 PM by molendijk
. Who Is This For? I'm going to make some assumptions about you, as a programmer: You're probably not an expert with PHP, but you know at least "the basics." If you're a copy+paste PHP coder, that's okay, but hopefully you won't be once we're done.You have some patience. Yes, you want to see results; but you can trust that they're coming.You're "okay" with doing things you've never tried before. There are some things I would like you to know ...
Updated 01-13-2013 at 11:30 PM by traq (added 'expiry' config option)
yes, I'm still doing the tutorial. : ) Did you know ...? PHP Code: <?php class alphaHeap extends SplHeap{ public function compare( $a,$b ){ return strcmp( $b,$a ); } } $alpha = new alphaHeap; # IN put: $alpha->insert( 'cat' ); // C $alpha->insert( 'dog' ); // D $alpha->insert( 'boy' ); // B $alpha->insert( 'elephant' ); // E ...
<?php class alphaHeap extends SplHeap{ public function compare( $a,$b ){ return strcmp( $b,$a ); } } $alpha = new alphaHeap; # IN put: $alpha->insert( 'cat' ); // C $alpha->insert( 'dog' ); // D $alpha->insert( 'boy' ); // B $alpha->insert( 'elephant' ); // E
Updated 12-23-2012 at 08:09 PM by traq
(To see and test what this is all about, you should download Safari if you haven't already done so. After that, use the code below with popup blocker enabled AND with popup blocker disabled, using Safari). When a new window or tab is not explicitly requested by the visitor of a site i.e. when the window's appearance is attached to such events as onload or onunload, popup blockers (if enabled) will prevent a file from being opened. But when the window's appearance is attached to an ...
Updated 12-07-2012 at 10:58 PM by molendijk