If you are struggling to debug why some ajax, perhaps using jquery etc is working fine when you access the page via http, but if you use https then it fails silently with very little error messaging to work on then this could be your solution. Basically, although you have accessed the page over HTTPS, [...]
Archive: javascript
If you are scratching your head trying to figure out where in your Javascript the mysterious doIt error is coming from when testing using Chrome, this might just save you.. After loads of digging around it turns out that the error is actually caused by the Chrome SEO extension I had installed. Disable that and [...]
If you need to work collaboratively on some Javascript then check out JS Bin It’s just like pastebin, but with Javascript compatability, handy. More Reading:Adding Confirm E-mail Address Field to Magento Frontend FormsGot the Insecure Content on a Secure HTTPs Page Problem – Easy SolutionConsole Log not working in Magento + solutionPHP SimpleXML CData not [...]
Douglas Crockford, author of Javascript the Good Bits and Yahoo’s Javascript architect is delivering his famous lectures. The first one is now available to download. Douglas Crockford is Yahoo!’s JavaScript architect and a member of the committee designing future versions of the world’s most popular programming language. In the first three months of 2010, Douglas [...]
If you are bewildered by the choice of lightbox style javascript plugins available, you might find this page useful: http://planetozh.com/projects/lightbox-clones/ Its a well organised matrix of lightbox clones so you can compare features and choose the right one for your specific requirements. Handy! More Reading:Adding Confirm E-mail Address Field to Magento Frontend FormsGot the Insecure [...]
If you are trying to use associative arrays in Javascript, the first thing is to not use the Array type and instead just use objects. The weird and wonderful thing is that if you create your array as an object, you can still use the array style square brackets to access object properties. So for [...]
I seem to use this little snippet loads so I thought I would post it up for safe keeping: Toggling all checkboxes on a page: PLAIN TEXT CODE: <script type="text/javascript"> function toggleCheckboxes() { // written by Daniel P 3/21/07 // toggle all checkboxes found on the page var inputlist = document.getElementsByTagName("input"); [...]
I read on Ajaxian today that the BBC have released their own javascript library, Glow, as open source. This is a nice move on the part of the BBC and great news for anyone looking to develop a site with some nice AJAX features but with a priority on accessibility and broad browser support. The [...]
Just came across this link via Twitter - TinyTable A nice simple solution to display table data. More... My Bad Attitude ยป TinyTable JavaScript Table Sorter More Reading: