For example if you have some kind of slide show which involves redrawing the contents of a div, you might find that the click handlers you had attached to the links of class ‘slideshow-link’ stop working.
Of course you can reattach handlers manually after dropping in your new HTML but that’s pretty messy.
A much nicer solution is this:
Instead of using
You can use
The Live method will keep the attachment to elements matching the selector now and in the future.
Gotta love jQuery
If you use FireFox with phpMyAdmin you will be able to resize the left column as required by simply grabbing it with your mouse
However in Chrome that doesn’t work.
The fix is surprisingly simple, you just need to edit the index.php file and set all the frameborder=”0″ to frameborder=”1″
Our last post on getting less css doesn’t work any more for installing less css on 10.10, due to changes in rubygems and ubuntu/debian, so here’s some updated instructions that work again!
sudo apt-get install rubygems1.8 ruby1.8-dev
sudo gem install rubygems-update
sudo gem update rubygems
sudo gem install less
And also remember that you have to either have your gems binaries in your path or symlink the lessc into somewhere that’s in your path, eg. like this
sudo ln -s /var/lib/gems/1.8/bin/lessc /usr/bin/
If you ever find yourself in that annoying situation where netbeans refuses to see a file or set of files you’ve added to a folder, there is a solution.
My instinct having used netbeans for the past year was to right-click the folder and click Refresh. The problem being that the Refresh item was missing from the menu!
It turns out that if you have “Enable auto-scanning of sources” enabled (which it is by default) in “Tools-Options-Miscellaneous-Files”, netbeans assumes that it will know when you add a file, so you’ll never have to refresh the folders. Unfortunately, that assumption is not always correct and the folder will not refresh.
So the answer is to uncheck that option, right-click the folder and “Refresh”, and if you like the option, turn it back on.
Happy to announce that Magento 1.6 is out
If you are using an ATI graphics card with Linux then you might be struggling with the fact they have helpfully decided to only use two thirds of your screen.
They actually do the same thing with windows but give you a nice tick box to disable this “feature”
In linux though we are not so luck and the GUI admin tool simply does not have the corresponding tick box
here is your solution
Inspiration and credit goes to this thread on the Ubuntu forums, I just scripted it to make it easy