The script.aculo.us JavaScript library is ridiculously simple, and Ruby on Rails makes using it just as simple. Ruby on Rails provides a view helper visual_effect method which can be used in any event, such as an onclick event. Here is an example of the rails visual_effect helper method in action: In the above example, when [...]
I’ve seen and tried a ton of HTML/CSS/JavaScript tricks and hacks to get rounded corners on DIV elements. So far I have found that the easist way to get rounded corners on divs is by using the Rico JavaScript framework. To demonstrate this in code let me define a snippet of HTML: To make the [...]
Woot! I lucked out and was able to score a conference pass to RubyConf 2006. I booked my flight, reserved my room, and I am ready to start packing. I will also be in attendance for the Carson Workshops’ The Future of Web Apps summit in San Francisco. If you are scheduled to attend either [...]
Posted in Rant, TechKnow |
I have written plenty of one-off no-brainer recursive Java methods that search through a directory hierarchy searching for a type of files. Such methods are good exercise problems for rookie Java programmers. But since I am a Java programmer I bearly exercise, so I tend not to write that type of method anymore. I let [...]
Posted in Java, TechKnow |
I’ve mentioned before my use of Groovy in Groovy Closures and Common Groovy Errors. I have also mentioned the need to use Visual Basic scripts to open MS Word, or print an HTML document from Internet Explorer. In this article I will mention how to use Groovy and Scriptom to do COM scripting. Before I [...]
In Flex on Rails we walked through how to generate data in rails to be consumed by a Flex UI. Now to close the loop lets demonstrate how to post information from Flex to Ruby on Rails. For this example we are going to create a user login UI in Flex and have a rails [...]
Posted in Ruby, TechKnow |