Posted: August 27, 2008 at 9:40 AM by Ben Nadel
A while back, I created an AJAX file upload demo using jQuery and ColdFusion. The demo worked quite nicely, but people using FireFox 3 were telling me that FireFox never stopped loading. That is, the page would execute fine, but the window would signal (via the Status Bar and loading circle) that it never completed loading the page. Based on s... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: July 17, 2008 at 7:27 PM by Ben Nadel
Hi, I am learning Javascript and going through a self paced book. I am trying to use \n for new line in an example program, but it does not work. Here is the snippet: //Display the current date and time on the web page document.writeln(todays_date); if (navigator.appName == "Microsoft Internet Explorer") { document.write("\nYou are running Micro... read more »
Comments (7) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: June 27, 2008 at 10:07 AM by Ben Nadel
A while back, I posted an AJAX-Style file upload demo . While using that technique in a current project, I discovered a bit of a bug. In FireFox, you can dynamically set the EncType of a form element to be "multipart/form-data" for file uploads; however, this does not work in Internet Explorer (IE). Apparently in IE, you have to set the "encoding... read more »
Comments (2) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: June 9, 2008 at 8:17 AM by Ben Nadel
The jQuery team just released UI 1.5 . They took the existing interface and effects library and totally simplified them, reducing the number of exposed method calls by 95%. I have been a big fan of jQuery for a long time, primarily for their amazing selectors, DOM traversal, and simple effects. To be honest, I have not done much with the UI in th... read more »
Comments (8) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: June 6, 2008 at 8:10 AM by Ben Nadel
I was just reading over on Neil Middleton's blog that the jQuery team has released jQuery 1.2.6 . According to the press release, there are a bunch of speed improvements and bug fixes. I almost can't express how awesome jQuery is. I have been using it quite heavily on my current project and I know in my heart of hearts that there is no way this... read more »
Comments (7) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: May 28, 2008 at 4:05 PM by Ben Nadel
As part of the project I am currently working on, I had to learn how to post files to the server using AJAX. I had never even attempted this before, so I was extra excited to learn something new. Of course, what you might learn quickly is that you cannot actually do this via "AJAX". Luckily, Rob Gonda warned me about this at the New York ColdFu... read more »
Comments (25) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: April 18, 2008 at 8:39 AM by Ben Nadel
The other night, at Rob Gonda's NYCFUG presentation , we were talking about jQuery and AJAX and I wondered if a non-rendered Form element could be submitted. By that, I mean a Form node that existed in memory but was not actually part of the rendered page's document object model (DOM). See this demo if you are not sure what I mean: <!DOCTYP... read more »
Comments (18) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: April 17, 2008 at 2:35 PM by Ben Nadel
Traditionally, when dealing with AJAX, I have only ever had the server return JSON data or formatted HTML data. Then, in the client, I would take that return value and update the DOM using explicit manipulation. However, last night at the New York ColdFusion User Group , Rob Gonda demonstrated a very interesting idea. I am sure many out there h... read more »
Comments (13) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: November 27, 2007 at 7:05 AM by Ben Nadel
As we learn about AJAX (Asynchronous Javascript and XML), our first thought is that it is very cool. Our second thought is usually that XML sucks and it's such a pain in the butt to work with. With that discovery, many of us turn to using AJAX purely as a text/HTML delivery system or we switch to using JSON (Javascript Object Notation) which is in... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 31, 2007 at 8:48 AM by Ben Nadel
Click here to view the current Online Demo Click here to view / download the current Code Base Last night, I finished Phase I of my Exercise List journey into understanding Object Oriented Programming (OOP) in ColdFusion. Phase I was the "proceedural" phase; it was building the application in a quick, standard, proceedural way that does ... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 29, 2007 at 3:56 PM by Ben Nadel
Reading though Learning jQuery by PACKT Publishing , I came across a good amount of really cool stuff. Their thorough, in-depth examples were really inspiring and got the machinery firing full blast. One of the cool things they did with jQuery that I would have never thought of doing in a million years was to create a transparent gradient over a ... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 29, 2007 at 8:03 AM by Ben Nadel
While reading the book, Learning jQuery , I came across a Javascript method that I had never heard of. The .toFixed() method, which can only be called on numeric values, will return a string representation of the number with the given number of decimal places. For example, if you wanted to return a dollar formatted version of a number, you coul... read more »
Comments (8) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 29, 2007 at 7:00 AM by Ben Nadel
While there are a lot of Javascript libraries out there, there's something special about jQuery. Right when you start to use it, it just feels right. Of course, trying to sell a manager or a co-worker on, "it just feels right", rarely works; it's important to be able to list out the reasons why something is good. Learning jQuery by PACKT Publis... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 24, 2007 at 1:23 PM by Ben Nadel
Since I have been getting into jQuery a lot lately, what with reading the books and playing around with code, I felt I should try a more complicated type of plug-in. As such, I have created this jQuery demo plug-in which creates sliding-image puzzles based on containers that have images. Running the demo page we get this output: ... read more »
Comments (12) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: October 23, 2007 at 6:36 PM by Ben Nadel
I am not sure if this is a bug, a gross misunderstanding on my part, or just a side effect of the architecture of the document object model (DOM), but from what I can tell, using jQuery's .empty() method seems to unbind any event handlers to child nodes, even when they have persistent pointers. To show you what I am talking about, take a look at t... read more »
Comments (6) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink