Posts

Showing posts from July, 2008

Building interactive web pages using AJAX and RJS

When we talk about interactive web applications, AJAX is one of the most important technologies. Rails provides an easy way to use Ajax in your web site through RJS. RJS helps you make and ajax request and have several page elements updated correspondingly. Implementing Ajax requests using RJS is a simple matter of doing the following: Include the requried javascript files. Use the right rails tags to launch an ajax request. Declare that your action in the controller can respond to rjs. Define the rjs response (the changes to the DOM). Any rails application has the javascript files (prototype.js, effects.js, dragdrop.js, controls.js, application.js) by default. All you need to do is to include them in your layout file by adding: <%= javascript_include_tag :defaults %> Rails provide 'remote' alternatives for its link and form tags link_to_remote vs link_to form_remote_for vs form_for and form_remote_tag vs form_tag. Using the remote alternative will cause the html tags ge

Which Programming Lanuguage Are You?

Image
Which Programming Language are You?

Rich Text Editors for Radiant CMS 0.6.7

If you are creating a radiant project that will have content edited by non technical people, you'll probably need a rich text editor to be available in your website. There are several Radiant extensions available for that purpose including TinyMCE , Wym Editor , and FckEditor . Well, TinyMCE is a very nice text editor, but it seems it is not yet compatible with Radiant 0.6.7. I managed to installed it successfully following the installation instructions, I can see it listed among the extensions in the administration area, it is there among the filter when editing the page, but the toolbar simply doesn't show up. FckEditor worked very smoothly with me. the Installation inctructions are simple and direct RAILS_ROOT$ git clone git://github.com/djcp/radiant-fckeditor.git vendor/extensions/fckeditor RAILS_ROOT$ rake radiant:extensions:fckeditor:update Fck Editor started just fine after installation and working very smoothly with the new radiant version. As for Wym Editor , i beli

Traffic Jam Parking Game

There are many flash games online. I liked this one a lot. The idea is simple, move the cars around and unblock your path home to your caring wife. enjoy it