Re: [jQuery] Best Practices or unobtrusive Javascript

2009-11-30 Thread Shawn
The blocking is an issue, but only if you end up loading more than XXX number of elements at a time. The specific number is browser dependent. I think I read somewhere that IE8 and FF3.5 will only load 4 items concurrently (CSS files, JS libraries, images, etc). So, the knee-jerk solution

[jQuery] Best Practices or unobtrusive Javascript

2009-11-29 Thread breadwild
I have seen several examples on jQuery plugin sites that have the script tag and Javascript within the body and not the head where I thought it was supposed to go. It would be better for my content manager and the templating system if the Javascript *were* in the body but I don't want to be

Re: [jQuery] Best Practices or unobtrusive Javascript

2009-11-29 Thread Shawn
When doing dynamic sites, you sometimes have no choice but to put the JS in the body area. My rule of thumb is to use libraries wherever possible and include those libraries in the head section. But with the understanding that *sometimes* (though rarely these days) I will need to put JS into

Re: [jQuery] Best Practices or unobtrusive Javascript

2009-11-29 Thread Rafał Pocztarski
2009/11/30 breadwild breadw...@gmail.com: I have seen several examples on jQuery plugin sites that have the script tag and Javascript within the body and not the head where I thought it was supposed to go. It's a matter of performance. Put your CSS as close to the top of the head as possible,

[jQuery] Best Practices

2009-06-09 Thread SamCKayak
The following form is used in several plug-ins... var oGlobalObject; (function( externalObject) { ... code here, setup properties and methods on externalObject })( oGlobalObject ); so variable abc is defined as a global object with properties and methods.. Is the following form equivalent?

[jQuery] Best Practices, Am I Using Them?

2009-02-25 Thread MeanStudios
Greetings, I'm writing an accordion effect of some sorts into a new web site I am developing which utilizes load() to bring in the outside information into the div that's dropping down when I click a particular link. I've had to use livequery as well since there is javascript (using the UI Tabs

[jQuery] Best Practices Style Guide

2008-12-08 Thread Leo
I am a fairly new adopter of jQuery, but a long time software developer. One of the things I really like about the jQuery approach is a mindset to keep implementations clean and maintainable. Having said that, it is easy enough to take the unobtrusive paradigm down the path towards unmaintainable

[jQuery] Best practices: Wait to reference objects? Classes like PHP? How do you stay organized with little overhead?

2008-10-04 Thread Micky Hulse
Hello, I just have a quick question about jQuery best practices... I have been wondering for a while now, is it bad practice for me to make references to objects outside of the block of code they are used in? For example, in my master JS file I might have this code

[jQuery] Best Practices: Separating HTML from JavaScript

2008-10-02 Thread 703designs
I'm always looking for as loosely coupled a system as practical, and I have a question about separating HTML from JavaScript (using jQuery). What's the best way to apply a template, so to speak, to some JS method? I'm trying to create a button bar for a plugin, and it has to be loaded in

[jQuery] best practices for scripts dir structure, etc.

2008-09-04 Thread Eric P
Hi, Are there any good practices for how to keep the jQuery scripts (core, ui, plugins, etc.) organized? I currently have something like this. /jquery/jquery-1.2.6.js /jquery/ui/1.5.2/effects.*.js /jquery/ui/1.5.2/ui.*.jg /jquery/plugins/jquery.simple.tree.js I don't know what exactly makes

[jQuery] Best practices for including Jquery

2008-08-24 Thread bradvin
I have been wondering where others feel its best to include jquery and other .js files in the html. Include it in the HEAD or at the end of the html document just before you close the BODY tag? There are arguments for including it at the end of the document so that the dom is fully loaded by

[jQuery] Re: Your jQuery Best Practices

2008-08-18 Thread Joe
Wow now that's what I'm talkin about! Well done all! Keep'em coming, if we haven't covered them already. cheers. Joe On Aug 15, 10:38 pm, Karl Swedberg [EMAIL PROTECTED] wrote: On Aug 15, 2008, at 8:32 PM, Michael Geary wrote: From: Michael Geary It's worth noting the implementation

[jQuery] Re: jQuery best practices

2008-06-19 Thread Isaak Malik
Did you already check out the documentation section? It's quite comprehensive. On Wed, Jun 18, 2008 at 4:28 PM, Estevão Lucas [EMAIL PROTECTED] wrote: Hi, I'd like to know if is there a document, article, or anything that a can show for the JavaScripts developers here in the company

[jQuery] jQuery best practices

2008-06-18 Thread Estevão Lucas
Hi, I'd like to know if is there a document, article, or anything that a can show for the JavaScripts developers here in the company talking about best practices; Best regards

[jQuery] Best practices for dynamic form creation?

2007-08-01 Thread jayturley
Hi. New to jQuery, and am playing around with it, building a simple list application in order to learn how to use the Ajax tools. Currently, a user can add an element to the list, and it is stored in the database using Ajax and then added to the DOM on the fly. The next stage is adding delete