Javascript / DHTML Web Log Entries

Showing 1 - 15 of 239   < Prev | Next >

Your jQuery Selector Context Can Be A jQuery Object

Posted: March 15, 2010 at 9:04 AM by Ben Nadel

Tags: Javascript / DHTML

This is just a quick post to clear up any confusion over what kind of objects can be used as a context when performing a jQuery selector execution. Sometimes, when reviewing jQuery code, I see people make data type conversions in their context usage: $( "div", myStuff[ 0 ] ) Here, you can see that the programmer is converting their "myStuff"... read more »

Comments (9)  |  Post Comment  |  Ask Ben  |  Permalink



FLEX On jQuery: Extending The jQuery Event Object

Posted: March 14, 2010 at 12:08 PM by Ben Nadel

Tags: Javascript / DHTML

Last week in my FLEX On jQuery series with Joe Rinehart , I explored the idea of creating non-coupled UI elements that communicate indirectly through the use of event listeners and modifiable event behaviors . In that experiment, I used the core jQuery Event object with custom event types to model custom events; but, I get the feeling from sever... read more »

Comments (0)  |  Post Comment  |  Ask Ben  |  Permalink


FLEX On jQuery: Decouple Components With Event Listeners

Posted: March 12, 2010 at 9:26 AM by Ben Nadel

Tags: Javascript / DHTML

In my continuing effort to explore Adobe FLEX as a means to find applicable jQuery / Javascript "best practices", I had a short exchange with Joe Rinehart the other day on FaceBook. It was a very brief conversation, so I didn't have much to go on; but basically, it came down to keeping components loosely coupled through the means of some interme... read more »

Comments (4)  |  Post Comment  |  Ask Ben  |  Permalink



Using Base64 Canvas Data In jQuery To Create ColdFusion Images

Posted: March 10, 2010 at 9:49 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

Last week, I explored the HTML Canvas element for the first time. In that exploration, I created a "finger painting" demo for the iPhone that would post drawing commands to the server where the image would be re-created as a PNG in ColdFusion. That was a nice approach because it gave me some flexibility in how the ColdFusion image was created (u... read more »

Comments (11)  |  Post Comment  |  Ask Ben  |  Permalink


Translating Global jQuery Event Coordinates To A Local Context

Posted: March 9, 2010 at 9:31 AM by Ben Nadel

Tags: Javascript / DHTML

When you use jQuery to capture mouse events (mousedown, mouseup, click, etc.), the jQuery Event object contains the X and Y coordinates of the mouse position at the time the event was triggered. These coordinates, while somewhat different in each browser, have been standardized by jQuery to be available in the pageX and pageY properties . No matt... read more »

Comments (0)  |  Post Comment  |  Ask Ben  |  Permalink


jQuery Mouse Events: PageX/Y vs. ClientX/Y

Posted: March 8, 2010 at 9:19 AM by Ben Nadel

Tags: Javascript / DHTML

When I first starting playing with jQuery events, a lot of what I learned about the jQuery Event object was through trial and error. While I could be remembering incorrectly, I used to find that the jQuery documentation was good at describing the event handlers, but not so good at describing the event object; as such, while I knew that the jQuery ... read more »

Comments (7)  |  Post Comment  |  Ask Ben  |  Permalink


Drawing On The iPhone Canvas With jQuery And ColdFusion

Posted: March 5, 2010 at 8:44 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

The HTML Canvas element is something that I've known about for a long time but never actually looked at until yesterday. The Canvas element is just what it sounds like - a surface on which we can programmatically render graphics and shapes. After seeing some really cool canvas-based demos floating around on Twitter, I decided that it was finally t... read more »

Comments (9)  |  Post Comment  |  Ask Ben  |  Permalink


FLEX On jQuery: Turning HTML Links Into Standard UI Elements

Posted: March 3, 2010 at 8:39 PM by Ben Nadel

Tags: Javascript / DHTML

In my first "FLEX on jQuery" blog post yesterday , I talked with Javier Julio about some of the similarities and differences between FLEX applications and rich jQuery applications. As we talked, one of the patterns that I began to see was the significant difference in the inherent power of "link" elements in the two different technologies. I sa... read more »

Comments (7)  |  Post Comment  |  Ask Ben  |  Permalink


FLEX On jQuery: The Relative Power Of Link Elements

Posted: March 3, 2010 at 10:17 AM by Ben Nadel

Tags: Javascript / DHTML

Mentally, I am still very much in the web application world of the traditional client-server request-response life cycle. I think in terms of page requests and view rendering; and, as my ability to code complex jQuery applications increases, I fear that my understanding of client-side architecture "best practices" is not keeping up. After a lot of... read more »

Comments (9)  |  Post Comment  |  Ask Ben  |  Permalink


Experimenting With jQuery's Queue() And Dequeue() Methods

Posted: March 2, 2010 at 9:10 AM by Ben Nadel

Tags: Javascript / DHTML

jQuery comes with a number of built-in animation methods like slideUp() and slideDown(). While these appear to be packaged in their own methods, many of them are powered internally by the animate() method. And while the animate() method handles many of the effects, a string of sequential animations is controlled internally by jQuery's queuing mech... read more »

Comments (7)  |  Post Comment  |  Ask Ben  |  Permalink


Be Careful When Including Images In jQuery Auto-Suggest

Posted: February 26, 2010 at 10:20 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

Yesterday at work, we ran into a very interesting problem involving a jQuery auto-suggest feature on one of our client sites. We had implemented auto-suggest on this particular site several times before and it had always proved to be very zippy and responsive. This time, however, the "suggest" page requests were taking 5, 6, sometimes 8 seconds to... read more »

Comments (10)  |  Post Comment  |  Ask Ben  |  Permalink


Using Appropriate Status Codes With Each API Response

Posted: February 24, 2010 at 10:11 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

For a long time, I have thought about API request failures as falling into just two distinct categories: failure to communicate (ie. the server was down) or bad data (ie. invalid parameters). Failures to communicate with the server were out of my hands; as such, there was nothing I could do with those from a server standpoint. Requests with bad da... read more »

Comments (26)  |  Post Comment  |  Ask Ben  |  Permalink


Using jQuery's Animate() Step Callback Function To Create Custom Animations

Posted: February 19, 2010 at 10:56 AM by Ben Nadel

Tags: Javascript / DHTML

When I was reading the jQuery 1.4 Reference Guide over the weekend, it mentioned that jQuery's animate() method has a step callback function that gets called after each step of the animation has completed. Unfortunately, it didn't say anything more than this. I tried looking at the online documentation and it said the exact same thing. As such, ... read more »

Comments (9)  |  Post Comment  |  Ask Ben  |  Permalink


Traversal vs. Collection Filtering In jQuery

Posted: February 17, 2010 at 9:50 AM by Ben Nadel

Tags: Javascript / DHTML

When it comes to jQuery selectors, I tend to think in two different modes: collection filtering and traversal filtering. By that, I mean that I see filtering as happening at two different and distinct times in the selection process. With collection filtering, jQuery filters nodes only once it has compiled them into a collection. All filtering done... read more »

Comments (8)  |  Post Comment  |  Ask Ben  |  Permalink


Posting XML SOAP Requests With jQuery

Posted: February 16, 2010 at 10:10 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

In the jQuery 1.4 Reference Guide by Karl Swedberg and Jonathan Chaffer , it is explained that the processData and contentType properties of a jQuery ajax() request can be adjusted to allow for XML document posts. Typically, AJAX data is serialized into a query string; but, if you set the processData property to false, the data property will be p... read more »

Comments (4)  |  Post Comment  |  Ask Ben  |  Permalink

Showing 1 - 15 of 239   Pages: 1 2 3 4 5 6 7 8 9 10 » < Prev | Next >
Recent Blog Comments
Mar 20, 2010 at 12:07 PM
Drawing On The iPhone Canvas With jQuery And ColdFusion
Simply awesome. Saved my day. ... read »
Mar 20, 2010 at 9:00 AM
Building A Fixed-Position Bottom Menu Bar (ala FaceBook)
I would like to say thx for an easy way to create a bottom bar. I do have a ?. Is it possible to center the bar if i want to resize it to ex 85%. Regards Offenbach ... read »
Mar 19, 2010 at 7:26 PM
MySQL 3/4 - com.mysql.jdbc.Driver And allowMultiQueries=true
Thank you very much for this post. Adding allowMultiQueries="true" in context.xml didn't help until I added it to url as allowMultiQueries=true Good idea is to use prepared statements and it will he ... read »
Jim
Mar 19, 2010 at 4:49 PM
Nobody Puts Baby In The Corner!
Wow. This is like suddenly finding a support group for your secret shame. I'm not alone! I always liked this movie, even though it is extremely cheesy. I just wish Jennifer Grey hadn't gotten the ... read »
Mar 19, 2010 at 4:47 PM
Application.cfc OnRequest() Method Affects OnError() Arguments
@Jason and @Ben, I've been doing some CF9 refactoring on our systems and noticed an odd occurrence with onError as well. Found a way to work around my problem, but what I saw was... Background: Our ... read »
Jim
Mar 19, 2010 at 4:44 PM
Shoot 'Em Up Starring Clive Owen And Paul Giamatti
I actually enjoyed this movie quite a lot. It was different, certainly, but I think they were going for more of a Quentin Tarentino-"wow, that was weird"-vibe than an actual spoof. Once I realize ... read »
Mar 19, 2010 at 4:34 PM
An Intensive Exploration Of jQuery With Ben Nadel (Video Presentation)
Hey I guess the video is down. Is there anyway you can upload to youtube or vimeo or some other service? Greatly appreciated. ... read »
Mar 19, 2010 at 4:24 PM
ColdFusion CFPOP - My First Look
@Ben Thanks for the follow up! The root of the problem had to do with being able to trace bounced emails to specific records in a DB table. Let's say you run an email campaign and you get 1,000 bou ... read »