Category >> html
|
|
Posted by netshine in onkeyup, onkeypress, onkeydown, keyup, keypress, keydown, Javascript, html, forms, focus, fired, event, cross browser, capture
|
|
If you want to capture one of the above events in javascript, in most cases, it will be on an input element (eg. a text box). But what if you want to capture a keypress anywhere on a document (eg. to delete a highlighted element from the page when the delete key is pressed, which is what I was trying to do)? I tried adding onkeydown to the body tag, but it would only fire in IE. Firefox, Safari, Chrome, and Opera all failed to fire the event unless I first clicked on a text box. But there is a way to do it...
|
|
Posted by netshine in xplike, template, tableless, search engine friendly, plesk, PHP, joomla 1.5, joomla, Javascript, html, gpl, free
|
|
I finally got round to re-writing the xplike.plesk template to work with Joomla 1.5. The original xplike.plesk template was written by SWSoft (now known as Parallels - the makers of Plesk), and released under the GPL for Mambo 4.5.0. I tweaked it to work on Mambo 4.5.1, and Joomla 1.0, and it proved very popular. As I did not write the template (just modified it), it was difficult for me to provide support for it. It also did not escape my notice that the code in the template was heavyweight and ugly (although the design itself is great). So, I re-wrote the whole thing from scratch for Joomla 1.5. The result is much improved - a very lightweight, standards-compliant, accessible, search-engine-friendly, tableless template, with collapsible menus (that 'remember' your preferences if you re-visit the site within 30 days), a resizable header area (lots of people wanted a custom-sized header so that their company logo would fit), and a choice of 3 colour schemes. For more information, and to download, visit: http://www.netshinehosting.com/home-page/free-joomla-1.5-templates.html
nicEdit is a very lightweight wysiwyg HTML editor, distributed under the MIT license (which means that as long as the copyright info remains intact, you can do pretty much anything with it, including distribute it with a commercial application). There are a couple of drawbacks to nicEdit - first, it does not produce standards compliant HTML. If it did, it would not be anywhere near as lightweight, so that's a bit of a tradeoff (it relies on the browser's own HTML editing features, so if you use a decent browser you should get pretty good results). The other main problem I found though, is that if you have a form containing a nicEdit editor, and submit the form using Javascript ie. form.submit(), the content of the editor is not posted back to the server!
If you would like to know why that is, and what you can do about it, read on...
|
|
Take a look at our free tutorial for Joomla! Administrator...
|
|