Geoffrey on September 13, 2007 at 10:51 am
I love JQuery! I did a short 10-15 minute presentation at the last Dallas.rb to let others in on the joys of using JQuery.
But one thing that doesn’t work right when using JQuery with Rails applications is the JQuery AJAX features and Rails respond_to. It turns out the Rails it looking for a specific request header, but JQuery sends something different one.
It is easily solved with this at the top of your application.js file:
$.ajaxSetup({
beforeSend: function(xhr) {xhr.setRequestHeader("Accept", "text/javascript");}
});
Filed under: Rails, JavaScript, JQuery, AJAX
Geoffrey on August 31, 2007 at 10:56 pm
We are doing lightning talks at this month’s dallas.rb meeting. I decided to give the group some choice of what I would present.
I will do a short one on “Why Firefox Makes Me Look Good” or “Better Web App Development using Firefox and a Buttload of Extensions”
I can also do one “JQuery: I Don’t Know Much, But I Know I Love You ”
And since neither of those are Ruby related, I will throw another one out there: “Tighter Abs: XML Situps Made Easy With Ruby”
I’ll let everyone decide which ones you want to hear more about.
Update
I only did the JQuery presentation and here are the slides (although they were much more interesting in person).
Filed under: Rails, JavaScript, Ruby, Web Applications, xHTML, Dallas, JQuery, Development Environment, hpricot, Firefox, Firebug, Web Developer Toolbar, Web Development
Geoffrey on May 8, 2007 at 9:47 pm
Because my friend Matt was so impressed with a Firefox extension I showed him, I thought I would share some of my other favorites.
What Extensions I Am Using Right Now
- Web Developer Toolbar - Just about everything you could want to do HTML and CSS, plus I can edit AND save the CSS changes I was playing around with.
- Firebug - So much goodness. Especially debugging JavaScript and looking over AJAX requests and responses.
- View Source Chart - Makes looking at HTML source bearable.
- ColorZilla - a color picker for pulling colors off of web pages.
- HTMLValidator - because it is too easy to miss a closing tag somewhere that messes everything up.
- DummyLipsum - when you need some filler content.
- SeleniumIDE - great little utility for helping to write Selenium tests for functional testing.
Not to mention
Got a favorite? I’d like to hear about it.
Filed under: JavaScript, CSS, Web Applications, xHTML, Testing, Development Environment, Firefox, Firebug, Web Developer Toolbar, Web Development, Selenium
Geoffrey on May 1, 2007 at 9:21 am
With all of the talk these days of Web 2.0 and the fancy, shiny, draggable, refreshable, blinking, glowing components in web applications, I wonder how many of the will still work when JavaScript is turn off or not even present (yes, it still happens). And how is the usability and accessibility of the application affected when so much of the interaction happens through JavaScript that doesn’t degrade?
I have been taking a look at creating a fully functional application, without any fancy Javascipt or AJAX, and then adding the extra functionality unobtrusively. To force myself to learn how to do this, I stopped using Prototype, script.aculo.us, and the Ruby on Rails helpers with RJS, and I started using JQuery. Two things happened: 1. I started to better understand how AJAX works and can enhance my application. 2. I found out I really like JQuery.
More on my JQuery experiences later. Now back to adding cool features, unobtrusively.
Filed under: Rails, JavaScript, CSS, Web Applications, Prototype, script.aculo.us, RJS, JQuery, Usability, Accessibility
Geoffrey on April 24, 2007 at 4:50 pm
It finally happened. McKinney Station got a blog! Right now there is not much here, but should be changing very soon. I have all sorts of articles in my head wanting, no, demanding to get out. Thoughts on web applications, Ruby, Rails, Java, xHTML, CSS, JavaScript and more.
Check back soon for my latest thoughts and ideas. Welcome to the Station, this train is about the leave.
Filed under: Rails, JavaScript, CSS, Java, Ruby, Web Applications, xHTML, Entrepreneurial, Dallas, Fort Worth, North Texas