[jQuery] UPDATE: code review, suggestions for condensing / reuse?
I've made some additions and updates to the code I posted last week: http://www.commadelimited.com/uploads/psychic/ I wondered if you all would mind looking over it to see if it can be improved. I've got the functionality the way I like it, but you all know jQuery way better than I do. So...any suggestions you feel like making would be welcomed. Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com
[jQuery] Re: UPDATE: code review, suggestions for condensing / reuse?
Awesome Brandon!! Those are PRECISELY the sorts of things I'm looking to learn. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brandon Aaron Sent: Tuesday, April 03, 2007 8:50 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: UPDATE: code review, suggestions for condensing / reuse? First off, this is functioning much better than before. Good work. In the click handler you bind to the h1 you have a few areas where you could optimize your code. First you declare a var named outerchild like this: var outerid = $(this).parent().attr(id); var outerchild = $('#' + outerid + '-details'); Then later you use outerchild again but you wrap it in another jQuery object. $(outerchild) This isn't necessary and I often times name my jQuery object vars with a $ to remind me it is the jQuery object and not just the DOM node. var outerid = $(this).parent().attr(id); var $outerchild = $('#' + outerid + '-details'); Now you can just use $outerchild.attr(...). Moving on ... there is a handy method called is that lets you test if the object is something. So lets look at this particular if statement and see how it can be written using the is method. As you have it now: if ($(outerchild).attr(class).indexOf('outeropen') == -1) { Using the is method: if ( !$outerchild.is('.outeropen') ) { Or you could also use the ':hidden' selector like this: if ( $outerchild.is(':hidden') ) { Hope that helps optimize the code a little. :) -- Brandon Aaron On 4/3/07, Andy Matthews [EMAIL PROTECTED] wrote: I've made some additions and updates to the code I posted last week: http://www.commadelimited.com/uploads/psychic/ I wondered if you all would mind looking over it to see if it can be improved. I've got the functionality the way I like it, but you all know jQuery way better than I do. So...any suggestions you feel like making would be welcomed. Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com
[jQuery] Test post from outlook
Please ignore. Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp Description: Windows bitmap
[jQuery] Coldfusion: using $.get() to directly call a CFC living outside of the webroot
Right now m JS looks like this: $.get(psychic.cfm, {method:idArr[0],key:idArr[1]}, function(data){ //do some stuff }); psychic.cfm contains the following code: cfset VARIABLES.ps = CreateObject(component,includes.salesman) cfparam name=URL.method default= cfparam name=URL.key default= cfset func = VARIABLES.ps[URL.method] cfoutput#func(URL.key)#/cfoutput It's the only way that I can think of to call a CFC outside of my webroot. I don't like having to do this as it requires a middle-man page. The upside is that it works flawlessly. I do have a mapping to the CFC directory (not the one above): apps.cfcs.theCFCinQuestion Is there any way to call against that CFC directly instead of having to use a middle page? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp Description: Windows bitmap
[jQuery] Re: Coldfusion: using $.get() to directly call a CFC living outside of the webroot
Okay...I'll post this question to the cf-talk list as well. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh Nathanson Sent: Thursday, April 05, 2007 1:39 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Coldfusion: using $.get() to directly call a CFC living outside of the webroot Andy, Ben Nadel has some information about calling CFCs outside the webroot, without a mapping, on his blog. It may be of help to you. I think there is still some mediation that happens but I don't think you have to use a middle-man file. -- Josh - Original Message - From: Andy Matthews mailto:[EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Thursday, April 05, 2007 11:16 AM Subject: [jQuery] Coldfusion: using $.get() to directly call a CFC living outside of the webroot Right now m JS looks like this: $.get(psychic.cfm, {method:idArr[0],key:idArr[1]}, function(data){ //do some stuff }); psychic.cfm contains the following code: cfset VARIABLES.ps = CreateObject(component,includes.salesman) cfparam name=URL.method default= cfparam name=URL.key default= cfset func = VARIABLES.ps[URL.method] cfoutput#func(URL.key)#/cfoutput It's the only way that I can think of to call a CFC outside of my webroot. I don't like having to do this as it requires a middle-man page. The upside is that it works flawlessly. I do have a mapping to the CFC directory (not the one above): apps.cfcs.theCFCinQuestion Is there any way to call against that CFC directly instead of having to use a middle page? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp Description: Windows bitmap
[jQuery] Re: I'm going nutz...
Are you talking about viewing source in IE vs FF? Because if you perform an action with jQuery, then view source in IE, you'll NEVER see the changes in the code. However, using the View Generated Source option in FF's developer toolbar allows you to see changes made using javascript. Or are you saying that it's not even applying the style? _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Smith, Allex Sent: Friday, April 06, 2007 1:57 PM To: jquery-en@googlegroups.com Subject: [jQuery] I'm going nutz... div id=mytestTest/div $('#mytest').attr({style:width:200px;}); returns div id=mytest style=width: 200px;Test/div in FF2 DIV id=mytestTest/DIV in IE6 I must be going mad. Any suggestions as to where I might be going wrong?
[jQuery] Re: Getting all labels
Maybe Var myArr = []; $('label').each( myArr.push($(this).attr('for')); ); -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Buzzterrier Sent: Friday, April 06, 2007 2:13 PM To: jQuery (English) Subject: [jQuery] Getting all labels I want to get all labels in a form, and then access their for attribute to link it to the field. I thought that $(label) would give me an array of all label elements that I could loop through and get the for value. But this does not work and I know I am missing something fundamental to Jquery. If I do: $(label).attr(for); It gives me the first label in the fieldset, which is confusing.
[jQuery] Re: Getting all labels
Make that: $(document).ready( function() { var myArr = []; alert(myArr); $('label').each( function() { myArr.push($(this).attr('for')); }); alert(myArr); }); -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Friday, April 06, 2007 2:27 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Getting all labels Maybe Var myArr = []; $('label').each( myArr.push($(this).attr('for')); ); -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Buzzterrier Sent: Friday, April 06, 2007 2:13 PM To: jQuery (English) Subject: [jQuery] Getting all labels I want to get all labels in a form, and then access their for attribute to link it to the field. I thought that $(label) would give me an array of all label elements that I could loop through and get the for value. But this does not work and I know I am missing something fundamental to Jquery. If I do: $(label).attr(for); It gives me the first label in the fieldset, which is confusing.
[jQuery] Re: Stop pending AJAX processes?
Hrm...not a bad idea. I'll look into that. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kristinn Sigmundsson Sent: Friday, April 06, 2007 4:24 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Stop pending AJAX processes? hmm how about then making a single ajaxcall when opening a accordation menu and splitting the returning result (using xml, json or whatever) and then put it on the right place? That would make the request quite few and still make the initial page load fast. //Kristinn On 4/6/07, Andy Matthews [EMAIL PROTECTED] wrote: Dan... The catch is that I'm not loading all of the info at once. It's technically still an on demand process. The user is initiating it by opening an accordion section. There's quite a lot of code coming back and the whole enchilada might take longer than we would like. So I think this is a good middle ground. It's more proof of concept anyway but I'm interested to see how it might work. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Friday, April 06, 2007 9:41 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Stop pending AJAX processes? Andy, If you want all the information to just be there, then include it in the original HTML and just hide it. The core benefit you gain by loading content on demand is you only send the data that's necessary. If you ended up doing a bunch of AJAX calls to load all the data, all you've done is made the code harder to manage and inundated your server with a bunch of requests instead of one single request (remember, each AJAX call is a separate HTTP request-depending on your page and the number of users you could really flood your server w/requests.) Also, there is no way to stop a request once it's started. Once you initiate the HTTP request, the server will start processing it. You can stop listening for the result you get back from the server, but the server is still going to attempt to complete the request. -Dan _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Friday, April 06, 2007 9:56 AM To: jquery-en@googlegroups.com Subject: [jQuery] Stop pending AJAX processes? First a small walk-through of what I've got now: http://www.commadelimited.com/uploads/psychic http://www.commadelimited.com/uploads/psychic Right now, if you click any of the black images, it triggers an AJAX call which places it's response in a hidden div. That's easy enough and already works. In an effort to make this work as speedily as possible, I'd like to do following: 1) When ANY session first opens, every row that has more data (indicated by the black image which has a class of nav) should make it's associated AJAX call and return it's information. I would like this to happen with no action from the user. 2) If the user switches to a new accordion section, ideally I'd like to cancel all pending AJAX calls, then trigger new calls for the current accordion section. So, that's my question...is this possible, and if so, how would I do it? The thought is that the user will spend at least a few seconds looking at the basic interface before clicking into any of the details. It would be awesome if, when the user clicks any details image, that the data was already there and the details would just slide open. Anyone have any ideas how to accomplish this, if it's even possible? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ image001.gif Description: GIF image
[jQuery] Re: Getting option text from select
Check the archives. I asked the same question about 5 months ago. I can't recall what project it was for, but I know it worked. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Buzzterrier Sent: Monday, April 09, 2007 1:20 PM To: jQuery (English) Subject: [jQuery] Getting option text from select Is there a way to get the selected option's text from a select-one control? The form plugin returns the value, but I cannot seem to find a way to get the text.
[jQuery] Re: TableSorter question
There's an option for default sort. How is the data getting to the page? Is it hard-coded or the result of an SQL operation? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris W. Parker Sent: Monday, April 09, 2007 1:58 PM To: jquery-en@googlegroups.com Subject: [jQuery] TableSorter question Hello, I want my table to be sorted in the opposite direction that it's currently being sorted in when TableSorter does its first sort. I can't find a switch to do that but perhaps I'm not seeing it. Anyone know what it's called or should I just add my own? Thanks, Chris.
[jQuery] Re: Simple selector question
$('table').attr('css','border-collapse') Maybe? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Knutzen Sent: Monday, April 09, 2007 3:27 PM To: jquery-en@googlegroups.com Subject: [jQuery] Simple selector question How would one select all tables in a document that have the css property border-collapse set to collapse? My goal is to make a work around for a FF bug (https://bugzilla.mozilla.org/show_bug.cgi?id=244135) where borders disappear sometimes. I am hoping for find all tables with border-collapse=collapse, set them to separate then set them back to collapse again. Thanks -Geoff
[jQuery] Re: Defining of a function
I don't know about Javascript, but in Flash, if you use the first method, you can place the function in any location in your code and it can be called from any location in your code. Using the second method, the function definition has to be placed before it's call. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Olaf Gleba Sent: Thursday, April 12, 2007 10:56 AM To: [EMAIL PROTECTED] Subject: [jQuery] Defining of a function Hi, Maybe i should take a break,- i don't get the point what differences it makes defining a function as a named or a anonymous function. function xxx () { ... } var xxx = function() { ... } What are the advantages and disadvantages of both of them? Thx in advance. -- Olaf Gleba
[jQuery] Re: Defining of a function
That's a perfect write-up on this issue. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Hartl Sent: Thursday, April 12, 2007 11:27 AM To: [EMAIL PROTECTED] Subject: [jQuery] Re: Defining of a function Mike Alsup schrieb: The difference between a function declaration and a function expression is when the actual function object gets created. The easiest way to think of it is that function declarations are always available and function expressions are not available until they have been evaluated. So you can do this: x(); function x() { alert('hi'); } but not this: x(); var x = function() { alert('hi'); } For details check out: http://jibbering.com/faq/faq_notes/closures.html Mike Dustin blogged about this recently as well: http://www.dustindiaz.com/javascript-function-declaration-ambiguity/ -- Klaus
[jQuery] Re: New to jQuery and struggling
You should be able to use jQuery inline, but you might want to ask yourself WHY you want to use it inline. The power of jQuery is that it can affect EVERY part of the document from just one spot. I'd recommend rethinking your code so as to remove the need for inline JS. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, April 16, 2007 5:59 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: New to jQuery and struggling Thanks for the help. Moving into the head does work, but keeping it inline doesn't. Can jQuery be used inline? Fam Joel Birch wrote: On 16/04/2007, at 7:36 PM, fambizzari wrote: However, I am trying to add an additional $(document).ready(function() {}); in the middle of the document (i.e. inline) but it is not working and i don't know why. Does it work if you move the inline $(document).ready(function(){}); into the head element? I can't think of a situation where you would need it in the body, but I could be wrong. You can have as many $ (document).ready(function(){});s as you want so I'd say your problem must have to do with having it inline. Joel. .
[jQuery] Re: New to jQuery and struggling
Sniff sniff... I'll just go play on the Prototype mailing list now. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Monday, April 16, 2007 8:34 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: New to jQuery and struggling You should be able to use jQuery inline, but you might want to ask yourself WHY you want to use it inline. The power of jQuery is that it can affect EVERY part of the document from just one spot. I'd recommend rethinking your code so as to remove the need for inline JS. While that is generally the best practice, there are exceptions for every rule. The one place I do use inline JavaScript is when I'm leverage jQuery for server-side component helpers (for example, Custom Tags in CF.) In this case, my jQuery code is generally outputted after the DOM element is created. While not ideal, it makes it much easier to encapsulate all my code into one helper function in my server-side code. Having all your JS business logic in one place, definitely makes debugging and modifying code easier, but there are times when inline code makes sense. -Dan PS - This really isn't addressed to Andy, just a general note. Sometimes we developers get too stuck on following golden rules and we end up making our code harder to work with. So if you find you have to go to long lengths to code a corner case to a golden rule, just always think if the end pay off is worth it. Ok, don't with my mini-rant. ;)
[jQuery] Re: Question about tablesorter plugin
Have you tried just recalling tableSorter() on that table? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, April 16, 2007 2:07 PM To: jquery-en@googlegroups.com Subject: [jQuery] Question about tablesorter plugin Hi, I am using the tablesorter plugin and its great. I have one question. I allow the end users to remove rows from the table, to implement this I determine which trs are selected and then call jQuery.hide(). My question: after hiding a specific row(s), how can I reinitialize the table's odd and even css settings? Is there an method I can call similar to when you sort on a specific column it resets the rows odd and even css class settings? Any help greatly appreciated. Thank you ___
[jQuery] Re: hasClass
Scott... www.jquery.com/api -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sauyet Sent: Tuesday, April 17, 2007 12:09 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: hasClass Geoffrey Knutzen wrote: How can I test if an element has a specific class? If I have div class=foo bar How can I check if the element has class=bar $(#myDiv).is(.bar); For all the great documentation JQuery has, some things are hard to find. This is at http://docs.jquery.com/DOM/Traversing#is.28_expr_.29 which doesn't seem to have much to do with traversing the DOM to me. I don't know if I'm alone, but I think a plain alphabetic list of functions would be a good addition to the docs. -- Scott
[jQuery] Re: Release: autocomplete 1.0 alpha
Dude... This plugin freaking rocks. It's so far ahead of what it was before. Great job you guys! -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris W. Parker Sent: Tuesday, April 17, 2007 5:09 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Release: autocomplete 1.0 alpha On Tuesday, April 17, 2007 2:04 PM Jörn Zaefferer said: There is now a page with a download, link to the demo and documentation: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ The documentation lacks better examples, so until that is improved, please try out the demo and take a look at it's page source. Sweet. Comment: When I type and am no longer matching anything in the available list the box should disappear. I think. Chris.
[jQuery] Re: Best way to determine if a user has Javascript enabled?
Simple way to do it might be to use javascript itself to do a forward or something like that. I've seen people set up a meta refresh of 5 seconds in the header, then use javascript to do a location.href as soon as the page loads. If they have js, they get redirected immediately to page A, if they don't, then after 5 seconds, they get redirected to page B. Thoughts? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Friday, April 20, 2007 7:57 AM To: jquery-en@googlegroups.com Subject: [jQuery] Best way to determine if a user has Javascript enabled? Good morning, all... Is there a fool-proof way to determine if a user has Javascript enabled in their browser? Rick
[jQuery] Re: Best way to determine if a user has Javascript enabled?
One thing to point out about mine and Dan's suggestion is that your Seach engine ranking will take a hit if you use this method. Google penalizes sites who use redirects to other pages. Depending on why you need to check for JS, you might consider using this method only for portions of the site which will not receive search engine hits. Such as admin areas, online forms, etc. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Friday, April 20, 2007 8:16 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? Rick, Good morning, all... Is there a fool-proof way to determine if a user has Javascript enabled in their browser? As discussed on another mailing list, there's no real need to detect if JS is enabled. If you write unobtrusive JavaScript (which is what jQuery helps you to do) if the user has JS disabled, things will continue to work. There's no reason to have separate JS/non-JS pages in most cases--especially for the kind of things you're working on. That said, the most full proof way I'm aware of to test if JS is enabled/disabled is driving traffic through a splash page which does a redirect. meta http-equiv=refresh content=2;url=page.htm?js=false script type=text/javascript self.location = page.htm?js=true; /script In this example if JS is enabled, the JS code would be executed redirecting the user to page w/a URL parameter indicating that JS was enabled. If the JS code doesn't execute, then the meta refresh would take over. However, I can't emphasis this enough, testing for JS is really unnecessary for all the work you've been talking about. You keep saying you want to make your code easier to manage and develop and detecting for JS in this case is just adding more complexity. It's much easier to just write the JS and if it doesn't execute then let the server-side code re-enforce the behavior. The last time I wrote any kind of detection script, was for a project that required Flash. It's been 9 years since I've written a script to detect for JS--and that was because I didn't know better. -Dan
[jQuery] Re: Using EXT with Jquery
Never mind. Checked it in FF. Pretty cool. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eli Sent: Friday, April 20, 2007 8:37 AM To: jQuery (English) Subject: [jQuery] Re: Using EXT with Jquery Thanks all of you, especially Remy, I managed to solve my problem, this http://remysharp.com/wp-content/uploads/2007/04/ext_layout.html helped me a lot mate, thanks :) On Apr 20, 2:06 pm, Remy Sharp [EMAIL PROTECTED] wrote: I also wrote up a short article on my initial play with Ext and the mistakes I made (it also includes a link the jquery-plugins.js file that Juha points out is missing): http://remysharp.com/2007/04/20/jquery-ext/
[jQuery] Re: Best way to determine if a user has Javascript enabled?
Beat me to it. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Friday, April 20, 2007 8:19 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? Simple way to do it might be to use javascript itself to do a forward or something like that. I've seen people set up a meta refresh of 5 seconds in the header, then use javascript to do a location.href as soon as the page loads. If they have js, they get redirected immediately to page A, if they don't, then after 5 seconds, they get redirected to page B. Thoughts? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Friday, April 20, 2007 7:57 AM To: jquery-en@googlegroups.com Subject: [jQuery] Best way to determine if a user has Javascript enabled? Good morning, all... Is there a fool-proof way to determine if a user has Javascript enabled in their browser? Rick
[jQuery] Re: Retrieving information outside of $this
Ooops... This gets the latitude value: var lat = $(this).parent().parent().children('.editable').children('span').attr('name' ,'longitude').html(); Change it up to get longitude -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of SiCo Sent: Friday, April 20, 2007 12:55 PM To: jQuery (English) Subject: [jQuery] Retrieving information outside of $this I have a small problem, probably more to do with me not knowing more than anything else!! My structure is like so: div class=main loc rel=album name=17 h3Los Angeles/h3 div class=data div class=editable name=17bLatitude:/b span name=latitude34.052019404448785/spanbr / bLongitude:/b span name=longitude-118.24318885803223/span /div p img src=trip-goto.gif name=goto rel= width=16 height=16 border=0 alt=View this location on the map. title=View this location on the map. / a href=img src=trip-remove.gif width=16 height=16 border=0 alt=Remove this album from the trip. title=Remove this album from the trip. //a /p /div /div Clicking on each of these blocks (multiple blocks per list) changes it to an editor and you can select on aGoogle Map the location and it updates etc. Now what I want is when the trip-goto.gif img is clicked I want the map to scroll to the lat and long held in the span. What I can't work out is in the click event how to grab the lat and long from the span tags... either traversing the tree backwards etc or another way. I can't / don't want to use id's as there can be 20 of these per page in ahierachical fashion so I'd rather work with '$this'... Any thoguhts? I am sur eit's easy... Thanks Simon
[jQuery] Re: Retrieving information outside of $this
Sorry for the loads of emails. Using your exact code setup, this is what I came up with: $('div.data a').click( function() { var lat = $(this).parent().parent().children('.editable').children('span').attr('name' ,'longitude').html(); alert(lat); return false; }); -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of SiCo Sent: Friday, April 20, 2007 12:55 PM To: jQuery (English) Subject: [jQuery] Retrieving information outside of $this I have a small problem, probably more to do with me not knowing more than anything else!! My structure is like so: div class=main loc rel=album name=17 h3Los Angeles/h3 div class=data div class=editable name=17bLatitude:/b span name=latitude34.052019404448785/spanbr / bLongitude:/b span name=longitude-118.24318885803223/span /div p img src=trip-goto.gif name=goto rel= width=16 height=16 border=0 alt=View this location on the map. title=View this location on the map. / a href=img src=trip-remove.gif width=16 height=16 border=0 alt=Remove this album from the trip. title=Remove this album from the trip. //a /p /div /div Clicking on each of these blocks (multiple blocks per list) changes it to an editor and you can select on aGoogle Map the location and it updates etc. Now what I want is when the trip-goto.gif img is clicked I want the map to scroll to the lat and long held in the span. What I can't work out is in the click event how to grab the lat and long from the span tags... either traversing the tree backwards etc or another way. I can't / don't want to use id's as there can be 20 of these per page in ahierachical fashion so I'd rather work with '$this'... Any thoguhts? I am sur eit's easy... Thanks Simon
[jQuery] Re: Retrieving information outside of $this
Ah...i see it. It was a syntax error. You had the closing }) after the second alert and I missed it. Works a treat. Freaking awesome! -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Roman Weich Sent: Friday, April 20, 2007 2:52 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Retrieving information outside of $this Andy Matthews schrieb: What?!?!? You can use html based pathing in jQuery? Why didn't someone tell me that?!? How come I get an error? Sure I can! ;P What kind of error?
[jQuery] Re: plugins page!!!!
I have to agree about the page refresh. There's not THAT many plugins that we shouldn't be able to read all of them in (just the name and maybe a one sentence description). Then click that to read the details. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ariel Jakobovits Sent: Wednesday, April 25, 2007 1:46 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: plugins page Very nice, but... 1) don't like the page refresh all that much 2) I think we need categories and sub categories, so if the Categories tree opened, and we had Sub categories that opened, and those refreshed the page...that would be better. User Interface is just too broad for the list of things that are in that category now. - Original Message From: Brandon Aaron [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Wednesday, April 25, 2007 6:11:38 AM Subject: [jQuery] Re: plugins page The new plugins page is located at http://jquery.com/plugins/ I believe it is still a work in progress but plugin devs might want to start moving their stuff over. -- Brandon Aaron On 4/25/07, Ariel Jakobovits [EMAIL PROTECTED] wrote: please oh please someone on the jquery committee respond to my claim that the plugins page is getting crazy. we need sub categories for the categories. I am volunteering to work on updating the page according to instructions that are given to me.
[jQuery] Re: Update on new travel site
Ah...never mind. My connection dropped. The site looks awesome! -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, April 26, 2007 8:38 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Update on new travel site I get a page not found when I click the link: http://www.trainbreaks.com/ Is that the right one? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of withoutwax Sent: Thursday, April 26, 2007 7:13 AM To: jQuery (English) Subject: [jQuery] Re: Update on new travel site Thanks Mike, I think there are still a few issues to work out with regard to cross browser compatibility. Hopefully I will get some more feedback form our Mac/Safari and Opera users this week. I am also going to be working on improving the site's ability to degrade gracfully when javascript is turned off. I can see this being quite a challenge. On Apr 26, 12:13 am, Mike Alsup [EMAIL PROTECTED] wrote: Outstanding! I love it. Mike https://www.trainbreaks.com
[jQuery] Re: Update on new travel site
Okay... I played around with the site for a few minutes and it works really well. I'm using IE7/PC and I noticed a few things that don't look quite right: Anytime the far right sidebar changes content here's what happens: 1) Existing content fades out 2) Existing content fades back in for about a half second 3) New content suddenly appears. It seems like you've got something out of order in your code as the center column works flawlessly. All in all this appears to be a great site and makes me wish I was in Europe right now riding the rails. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, April 26, 2007 8:45 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Update on new travel site Ah...never mind. My connection dropped. The site looks awesome! -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, April 26, 2007 8:38 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Update on new travel site I get a page not found when I click the link: http://www.trainbreaks.com/ Is that the right one? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of withoutwax Sent: Thursday, April 26, 2007 7:13 AM To: jQuery (English) Subject: [jQuery] Re: Update on new travel site Thanks Mike, I think there are still a few issues to work out with regard to cross browser compatibility. Hopefully I will get some more feedback form our Mac/Safari and Opera users this week. I am also going to be working on improving the site's ability to degrade gracfully when javascript is turned off. I can see this being quite a challenge. On Apr 26, 12:13 am, Mike Alsup [EMAIL PROTECTED] wrote: Outstanding! I love it. Mike https://www.trainbreaks.com
[jQuery] Cascading Stylesheets presentation tonight
Hey everyone...just wanted to let you know that I'm going to be making a presentation on CSS tonight for the Nashville Coldfusion Usergroup. here's the details. If you'd like to watch live, use the link at the bottom of the email. It will be recorded for later viewing as well. -- DATE: April 26, 2007 TIME: 6:30 PM Presentation PRESENTATION: Andy Matthews (in person) on CSS CFM together: Alphabet Soup or Best Friends Forever? CSS CFM together: Alphabet Soup or Best Friends Forever? Combining the power of Coldfusion with the flexibility and reusability of Cascading Stylesheets. In this presentation, Andy will cover the basics of CSS. -How to set up an efficient stylesheet and avoid a maze of classes and ids -Define styles once and allow their values to cascade through child elements -Using Coldfusion to set values in your stylesheet SPEAKER BIO: http://www.commadelimited.com ACROBAT CONNECT INFORMATION: This meeting will be broadcast via Connect. http://mmusergroup.adobe.acrobat.com/r78187836/ Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp Description: Windows bitmap
[jQuery] Re: Cascading Stylesheets presentation tonight
Will do. I should have the link shortly. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Friday, April 27, 2007 10:00 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Cascading Stylesheets presentation tonight I ended up missing the live presentation, but would definitely like to view the recording, so please post the link on this list! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Friday, April 27, 2007 9:34 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Cascading Stylesheets presentation tonight I'd definitely like to see the recording Andy so be sure to email me when its available. Rey Andy Matthews wrote: Yep... It went well last night. It was indeed recorded and I'll have the link to that recording shortly. Once I get the link, I'll be sure to post it. For anyone that watches it, I'd love to hear feedback. I've never really spoken to a group before and so it'll be interesting to hear feedback from people that aren't friends of mine. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Jordan Sent: Thursday, April 26, 2007 4:54 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Cascading Stylesheets presentation tonight Andy, This presentation sounds like it's gonna be great! Will it be recorded so that folks can download it later? Chris Andy Matthews wrote: Hey everyone...just wanted to let you know that I'm going to be making a presentation on CSS tonight for the Nashville Coldfusion Usergroup. here's the details. If you'd like to watch live, use the link at the bottom of the email. It will be recorded for later viewing as well. -- DATE: April 26, 2007 TIME: 6:30 PM Presentation PRESENTATION: Andy Matthews (in person) on CSS CFM together: Alphabet Soup or Best Friends Forever? CSS CFM together: Alphabet Soup or Best Friends Forever? Combining the power of Coldfusion with the flexibility and reusability of Cascading Stylesheets. In this presentation, Andy will cover the basics of CSS. -How to set up an efficient stylesheet and avoid a maze of classes and ids -Define styles once and allow their values to cascade through child elements -Using Coldfusion to set values in your stylesheet SPEAKER BIO: http://www.commadelimited.com ACROBAT CONNECT INFORMATION: This meeting will be broadcast via Connect. http://mmusergroup.adobe.acrobat.com/r78187836/ * Andy Matthews *Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ -- http://www.cjordan.us -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com
[jQuery] My CSS presentation - recorded via Adobe Connect
For those of you that have been asking about the recorded presentation, here's the URL: https://admin.adobe.acrobat.com/_a17673838/p30028287/ And here's a link to the files used in my presentation so that you can follow along: http://www.ncfug.com/archive/AndyMatthews_April2007_CSS.zip Hope everyone likes it. Please feel free to give me feedback...this was my first time presenting. andy matthews founder | main man commadelimited dream | design | develop [EMAIL PROTECTED] www.commadelimited.com c: 615-414-5533 | h: 615-258-3634
[jQuery] Re: CFJS plugin
I don't know if the array bug is a bug or a feature. Coldfusion actually starts counting arrays at 1. So it's possible that could be intentional, although given that this is a javascript plugin, it's probably a bug. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ariel Jakobovits Sent: Tuesday, May 01, 2007 2:04 AM To: jquery-en@googlegroups.com Subject: [jQuery] CFJS plugin Hi Chris, nice plugin. great idea. very useful. 2 things: 1) the packed version doesn't seem to load properly. something about a comma. 2) your ListToArray function starts adding to the array at index 1, not 0. thanks for the plugin, i really like it. -Ariel
[jQuery] Re: CFJS plugin
I agree with both his thoughts, and your thoughts but I think the correct choice would be to start the array counting with 0 as this is a JAVASCRIPT plugin. So that would be my suggestion. Change the code to work well with javascript. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Jordan Sent: Tuesday, May 01, 2007 10:48 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: CFJS plugin Andy, It appears that Randy Anderson (LeftCorner.com) chose to start his Arrays at index 1 instead of 0. I can see the logic behind it: wanting to keep things behaving as much like ColdFusion as possible. However, I disagree with this choice. I'd rather each language deal with arrays the way they were designed. When sending JSON encoded data back from ColdFusion, arrays are converted from 1 based to 0 based. I think this is the right thing to do... but folks are welcome to disagree. :o) I'll be looking through the rest of the functions to see that they are also returning arrays whose indexes start with zero. Cheers, Chris Andy Matthews wrote: I don't know if the array bug is a bug or a feature. Coldfusion actually starts counting arrays at 1. So it's possible that could be intentional, although given that this is a javascript plugin, it's probably a bug. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ariel Jakobovits Sent: Tuesday, May 01, 2007 2:04 AM To: jquery-en@googlegroups.com Subject: [jQuery] CFJS plugin Hi Chris, nice plugin. great idea. very useful. 2 things: 1) the packed version doesn't seem to load properly. something about a comma. 2) your ListToArray function starts adding to the array at index 1, not 0. thanks for the plugin, i really like it. -Ariel -- http://cjordan.info
[jQuery] $('#model').change( function() not working
I had this code that I wrote which changed the href of the page based on a dropdown. It worked as a stand-alone page, but now that I'm integrating it into my site, it's not working. Code is at the bottom of the page. Here's what's happening: 1) On load, the make dropdown fills in with live data. This part works perfect in both IE and FF. 2) By default the first make option is selected, which tnen triggers all models for that make. In this example, Honda is first, so it loads 2007 Accord and 2007 Civic. - In FF, the Civic is the selected option, in IE the selected option is --please select a model-- with the Accord and the Civic loaded after. - In IE, the selected option is correct 3) When the user changes the Make, it should reload the model dropdown with live data. - This works in FF, but for some reason does not work in IE Does anyone have any ideas? --- form input type=hidden id=invPageid value=30536 / Make:br / select id=make disabled=true optionloading.../option /selectbr / Model:br / select id=model disabled=true optionloading.../option /select /form Here's the jQuery code: $(document).ready( function() { getMakeSelect(); $('#make').bind(change,function(){ var modelSelect = $('#model'); getModelSelect($(this).val()); }); $('#model').change( function(){ var selModel = $('#model').val().replace(/ /g,%20); alert($('#model')); // var invid = $('#invPageid').val(); // var urlString = '/pages/page.cfm?pageid=' + invid + 'pagetype=35featureid=-1model=' + selModel; // location.href = urlString; }); function getMakeSelect() { // load in the make dropdown $.get(/Includes/ds3relatedselects.cfm, {method:'getMakesInInventory'}, function(data){ var tempData = data.split('!!!') $('#make').removeAttr('disabled').html(tempData[1]); re = /value=(\w+)/i; found = tempData[1].match(re); getModelSelect(found[1]); }); } function getModelSelect(make) { var modelSelect = $('#model'); modelSelect.attr('disabled','true').html('optionloading.../option'); $.get(/Includes/ds3relatedselects.cfm, {method:'getModelsInInventoryByMake',make:make}, function(data){ var tempData = data.split('!!!') modelSelect.removeAttr('disabled').html(tempData[1]); }); } }); Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] Re: Force the FIRST option to be selected in a select box.
Rob... Unfortunately I can't post a link to the page as it's internal only at the moment. Thanks for that snippet of code, I'll give it a shot. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rob Desbois Sent: Wednesday, May 02, 2007 10:35 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Force the FIRST option to be selected in a select box. Andy, option selected=selected and option selected both work fine for me in FF2.0.0.3 under HTML 4.01 strict. Can you post a link to the page? Without trying I'm not sure off-hand how to use jQuery for selection, although IIRC using the DOM I tihnk this should work (untested): var select = $(#select-id); select[0].selectedIndex = 0; Rob On 5/2/07, Andy Matthews [EMAIL PROTECTED] wrote: I've got two related select dropdowns. Makes: Honda, Ford, Acura, etc. Models: select a make first To cover the possibility of the first dropdown only having one value, I'm auto-selecting the first value in the list. in this case, it's Honda. That in turn loads 2 vehicles into the Models dropdown (2007 Accord, 2007 Civic). The loading part works just fine, but in FF, the last option is selected (2007 Civic) instead of the first one (--please select a model--). I've tried dropping in a option selected=selected, I've tried option selected and neither of them are working correctly. So what I'd like to do is to force the first option to be selected using jQuery. I'm not sure how to do this though. Anyone have an idea? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ -- Rob Desbois Eml: [EMAIL PROTECTED] Tel: 01452 760631 Mob: 07946 705987 There's a whale there's a whale there's a whale fish he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome. attbda50.bmp
[jQuery] Re: Force the FIRST option to be selected in a select box.
Hrm... That didn't seem to work. For some reason FF is selecting the last option tag. So for the time being I just placed a dummy option at the end. I'll come back and fix it later. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rob Desbois Sent: Wednesday, May 02, 2007 10:35 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Force the FIRST option to be selected in a select box. Andy, option selected=selected and option selected both work fine for me in FF2.0.0.3 under HTML 4.01 strict. Can you post a link to the page? Without trying I'm not sure off-hand how to use jQuery for selection, although IIRC using the DOM I tihnk this should work (untested): var select = $(#select-id); select[0].selectedIndex = 0; Rob On 5/2/07, Andy Matthews [EMAIL PROTECTED] wrote: I've got two related select dropdowns. Makes: Honda, Ford, Acura, etc. Models: select a make first To cover the possibility of the first dropdown only having one value, I'm auto-selecting the first value in the list. in this case, it's Honda. That in turn loads 2 vehicles into the Models dropdown (2007 Accord, 2007 Civic). The loading part works just fine, but in FF, the last option is selected (2007 Civic) instead of the first one (--please select a model--). I've tried dropping in a option selected=selected, I've tried option selected and neither of them are working correctly. So what I'd like to do is to force the first option to be selected using jQuery. I'm not sure how to do this though. Anyone have an idea? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ -- Rob Desbois Eml: [EMAIL PROTECTED] Tel: 01452 760631 Mob: 07946 705987 There's a whale there's a whale there's a whale fish he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome. attbda50.bmp
[jQuery] Re: SWFObject.js, IE and the onChange handler
Dan... It's only happening in IE 6 7 And even then, not all the time (as I mentioned). It appears that my production code seems to be working correctly. Here's a few URLs for you all to preview: Here's an example of the code (working) on a page with no Flash content: http://www.courtesyportland.com/pages/page.cfm?pageid=70810pagetype=37feat ureid=-1bhcp=1 Here's the SAME exact code, with the addition of a Flash movie using plain ole object/embed code: http://www.courtesyportland.com/pages/page.cfm?pageid=28691pagetype=37feat ureid=-1bhcp=1 And finally, here's the same code with a Flash file embedded using SWFObject: http://www.courtesyportland.com/pages/page.cfm?pageid=28690pagetype=37feat ureid=-1bhcp=1 -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Thursday, May 03, 2007 2:19 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: SWFObject.js, IE and the onChange handler Andy, This is an extension of my post from yesterday...I've got some more information and it's quite tricky. My company uses SWFObject extensively to rewrite our SWFs. It's in loads of places at the moment. Now, my coworker and I are writing some related selects which work fine on a page by themselves, but when combined on a page which uses SWFObject, the onChange handler in IE stops working. We're having trouble duplicating this exactly as sometimes it works and sometimes it doesn't. But it appears that when SWFObject.js (1.4 or 1.5) is combined with jQuery.js and the change event handler the event handler (at least for select boxes) stops working. Has anyone else has experience with this? Does anyone have ideas of what it could be or how to get around it? Here's what we know: 1) Without swfobject.js being used, the code works everytime. 2) When swfobject.js is used, the code only works about 1/10 of the time. 3) It almost seems like it has something do with the addVariables method of the Flash object, but we can't be sure of that either. Is this happening in every browser? I took a look at the source code for SWFObject I didn't see anything that jumped out to me as being a conflict. The only thing I saw that could be questionable, could be questionable is this line: /* add document.getElementById if needed (mobile IE 5) */ if (!document.getElementById document.all) { document.getElementById = function(id) { return document.all[id]; }} Which really shouldn't even be executed for jQuery support browsers. -Dan
[jQuery] Re: I saw it somewhere...
It's called Autocomplete. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shelane Enos Sent: Thursday, May 03, 2007 4:32 PM To: jquery-en@googlegroups.com Subject: [jQuery] I saw it somewhere... For the last hour I have be scouring through jQuery tutorial and plugins pages trying to find something that I thought I saw. I did a search in the list archive to no avail. I'm looking for an example I saw of a form with input elements with suggestions of what should be placed inside. This would not be a popup tooltip, but something that appears in the element already. I can do this by brute force, I was just hoping to find the more elegant approach. If anyone can decipher what I'm looking for and you know where it is, can you point me to it? Thanks.
[jQuery] Pure Object/Embed solution via jQuery?
You might recall that my company is having some issues with using jQuery alongside SWFObject and select dropdowns with the onChange handler. I've seen a plugin that uses jQuery to call the SWFObject js file. But I'm wondering if anyone has a PURE jQuery solution for the IE click to activate issue. I'm not talking about using jQuery to load in something else, I'm talking about a pure jQuery plugin which resolves this issue. Anyone? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] Re: Random Image Background
I'd create an array with image names. var randomImages = ['image_01','image_02','image_03',]; var rndNum = Math.floor(Math.random() * randomImages.length); The rest is fine. Then you just have to update the array and you're golden. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Friday, May 04, 2007 12:20 PM To: jquery-en@googlegroups.com Subject: [jQuery] Random Image Background I want to have a div use a randomly chosen background image. I am going to be adding to the possible background images over time. Right now I have bg1.jpg and bg2.jpg. Eventually I might have dozens. My first instinct is var totalNum = 2; var rndNum = Math.floor(Math.random() * totalNum); $(div.target).css(background-image,url(/imagePath/bg + rndNum + .jpg)); Then, every time I add a new image, I change totalNum to be accurate. Is there an easier way? One that doesn't require me to keep changing the script? Glen
[jQuery] this is a test
Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] Re: New patch release for CFJS
Might I suggest that instead of releasing a new version every few days, just wait and release every few weeks. That way you get less releasing. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Jordan Sent: Monday, May 07, 2007 6:46 PM To: jQuery Mailing List Subject: [jQuery] New patch release for CFJS Well, I've been looking at the numbers on RIAForge.org at the number of people downloading CFJS for jQuery. My first thought was, Yay! Lots of people are finding it useful! My second thought was that about a dozen or so people find it useful, but keep having to re-download, because I'm constantly releasing new functions and fixes. Either way, it's a fun bit of code to work on. :o) So, I've just released a new patch, which brings us up to 1.1.2. This patch adds the dimension checking ability to the IsArray() function. $.IsArray(myArray, 3); will return true if 'myArray' has three dimensions, and false otherwise. If you don't need this functionality right away, don't feel like you've got to go get the latest release. There are no additional bug fixes or anything of that nature. If you're interested, here's an idea of what I want to do next: 1. finish the DatePart() function. It's missing the 'y' and 'ww' date parts. 2. Add three additional functions (can't remember off hand which ones, but I've got it written down) :o) 3. Add a few more examples to cjordan.us I've a couple more ideas, but it'd be premature to mention them now. ;o) Cheers, Chris -- http://www.cjordan.us
[jQuery] Re: MooTools 1.1
Holy crap. Those demos are freaking awesome! _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Tuesday, May 08, 2007 11:48 AM To: jquery-en@googlegroups.com Subject: [jQuery] MooTools 1.1 Moo Tools 1.1 is out. Check out these demos. http://demos.mootools.net It's a great demo set. Clean and understandable. Very nice. I need to find the time to do each one of these in js.commadot.com and the jQuery equivelent. Glen
[jQuery] Re: Suggestion - A | B | C | - Navigation container
update the code part to actually write the letters to the screen: JS CODE -- $(document).ready( function() { // declare an array var capArr = []; var capStr = ''; $('li').each(function(){ var cap = $(this).html().substring(0,1); if (capStr.indexOf(cap) != 1) { capArr.push(cap.toUpperCase()); capStr += cap; } }); capStr = '| '; for (i=0;i capArr.sort().length;i++) { capStr += capArr[i] + ' | '; } $('#letters').html(capStr); }); HTML --- div id=letters/div lijaime/li linacho/li linoelle/li liandy/li liduncan/li _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Friday, May 11, 2007 4:18 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Suggestion - A | B | C | - Navigation container This code gives you an arrary containing the first character of any string inside a list item. You can then do whatever you want with it. I only used the capStr var because I couldn't get indexOf working with the capStr array. I'd also be interested in seeing if anyone has ideas to improve the code. JS CODE --- $(document).ready( function() { // declare an array capArr = []; capStr = ''; $('li').each(function(){ var cap = $(this).html().substring(0,1); if (capStr.indexOf(cap) != 1) { capArr.push(cap.toUpperCase()); capStr += cap; } }); alert(capArr.sort()); delete capStr; }); LIST ITEMS --- lijaime/li linacho/li linoelle/li liandy/li liduncan/li _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mario Moura Sent: Friday, May 11, 2007 3:21 PM To: jquery-en@googlegroups.com Subject: [jQuery] Suggestion - A | B | C | - Navigation container Hi Folks This email is a suggest to a new plugin. Is it possible from a list li create a A/B/C Navigation container? A | B | C | ... Accessible Travel Assisted Living ... If is possible please let me know, If not feel free to use it. Regards Mario
[jQuery] Small delay in animate function - how can I fix it?
http://www.commadelimited.com/clients/haven/atkins/floor-plans.html On this page, if you click any of the olive colored buttons on the left, you'll see the text slide to the right as an indicator for which floor plan is active. It also slides any other active item back to the left. When clicked, there's a small delay before the plan slides right...I don't know why this is happening. Can anyone help me out with this? Also, is there a list of properties that can be animated using this function? I tried animating the text-align property and it didn't work. Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] Thickbox fade in / out...is this possible?
I'm using thickbox on a site I'm building: http://www.commadelimited.com/clients/haven/atkins/photo-gallery.html The client wants to know if I can fade the thickbox page in and out when clicked instead of having it just pop into being. Is this possible? If so, how might I accomplish it? FYI: The large photos are crap right now as the client hasn't given me the larger sizes yet Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] Re: Small delay in animate function - how can I fix it?
Thanks for your help Scott...I'll give that a shot. I thought about doing that, but didn't really know how. Thanks for your comments too...I'm only the architect of the site, I'm doing it for a local design house who doesn't know how to build...only design. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sauyet Sent: Tuesday, May 15, 2007 8:54 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Small delay in animate function - how can I fix it? Andy Matthews wrote: http://www.commadelimited.com/clients/haven/atkins/floor-plans.html On this page, if you click any of the olive colored buttons on the left, you'll see the text slide to the right as an indicator for which floor plan is active. It also slides any other active item back to the left. When clicked, there's a small delay before the plan slides right...I don't know why this is happening. Can anyone help me out with this? You are first animating it to the left slowly, and then animating it to the right. The left animation of all others includes the current one, and these animations follow one after the other. I think if you filter out the current one from your list to return left, it should work: $('#buttons a span').not(# + me.attr('id')).animate({left: 0}, slow); A nice site, by the way. Cheers, -- Scott
[jQuery] Re: chaining question
Do you have an online example of both methods? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bleen Sent: Wednesday, May 16, 2007 9:55 AM To: jQuery (English) Subject: [jQuery] chaining question If the function below (which is called in a mouseover event) is run too many times, too quickly it doesn't work (i.e. the html in question is not changed) function loadedContentProcess(tab,result){ content[tab] = result; $ (#popular_quicksearch_content).hide().html(content[tab]).fadeIn(slow); } However if I change the function this (below) it works great not matter how many times (and how quickly) it is called. Why? function loadedContentProcess(tab,result){ content[tab] = result; $(#popular_quicksearch_content).hide(); $(#popular_quicksearch_content).html(content[tab]).fadeIn(slow); } -- Alex
[jQuery] Re: $(document).ready(function() {
It can be included. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of SamCKayak Sent: Monday, May 21, 2007 2:52 PM To: jQuery (English) Subject: [jQuery] $(document).ready(function() { Can $(document).ready(function() { appear in an included script src=filename or must it appear only once in the document header? Sam
[jQuery] Javascript errors on site using jQuery
My company uses this page to do some research work. http://vehix.dealerskins.com/ We just uploaded some new files that include the jQuery library. Now, all of a sudden we're getting JS errors. It says syntax error on line 2 and references our doctype line: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN Does anyone know why this is happening? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] Re: Javascript errors on site using jQuery
Great. Thanks Dan. I'll check that out. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Tuesday, May 22, 2007 8:59 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Javascript errors on site using jQuery Andy, You've got multiple !DOCTYPE / tags in your output. You can only have 1 !DOCTYPE / tag an it must be the first element. I see this problem again and again. Apps are build that generated invalid HTML structures (multiple opening html, body, etc tags) and when they go to specify the doctype, the app breaks. Browsers are very forgiving when running in Quirks mode, but as soon as you specify a doctype, you must make sure your HTML is valid (or at least that the core rules, one html and one body block are used.) -Dan _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Tuesday, May 22, 2007 9:50 AM To: jquery-en@googlegroups.com Subject: [jQuery] Javascript errors on site using jQuery My company uses this page to do some research work. http://vehix.dealerskins.com/ We just uploaded some new files that include the jQuery library. Now, all of a sudden we're getting JS errors. It says syntax error on line 2 and references our doctype line: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN Does anyone know why this is happening? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ image001.gif
[jQuery] Re: Conventional JS/DOM to jQuery conversion help
To access a form element by name: $('[EMAIL PROTECTED]) -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cliff Sent: Wednesday, May 23, 2007 10:52 AM To: jQuery (English) Subject: [jQuery] Conventional JS/DOM to jQuery conversion help I am new to jQuery and have several questions: 1. To access a form element, I use: document.forms[frmname] [elementname] What is the jQuery equivalent? Will there be any significant speed difference between the old and jQuery way? 2. This is basically the same as #1. I am getting the hang of accessing elements by id using $(#elementid), but how do I access form elements by name so I can avoid using ids. 3. I want to strip error messages after an input element -- essentially just stripping DOM siblings after the input element. See function below: function removeNextSiblings(elementid) { var element = document.getElementById(elementid); var parent = element.parentNode; while (parent.lastChild) { if (parent.lastChild == element) break; parent.removeChild(parent.lastChild); } } Is there a shorter jQuery way to do this function. Ideally, it could start with a reference to the source element object instead of an elementid so I can avoid the use of ids in form elements. And of course, what's the advantage to the jQuery way? Less code? Slickers? Cliff
[jQuery] Boolean value for if an element exists
I've got some multiple dropdowns that I'm trying to conditionalize. Our designers can select one (or both) of two sets of code. I'd like to conditionalize my jQuery code so that if the redline dropdowns exist, I can run that code, or if the inventory dropdowns exist, I can run THAT code. Is there a way of assigning a boolean value using a jQuery call? Something like this maybe? var redlineExists = $('#redlineSelect'); Where if the element is there, then redlineExists would be true, and false if it did not? How might I do that? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] Re: Boolean value for if an element exists
Thanks. I think I'm going to try a different tack. Ideally, I'd like to check to see if an object exists AND store a reference to that object at the same time. So I'll do this: var redline = $('#redline'); if (!redline.size()) { // do some stuff here } Thanks for the point to size() daemach. That's better than the idea I had. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daemach Sent: Wednesday, May 23, 2007 12:35 PM To: jQuery (English) Subject: [jQuery] Re: Boolean value for if an element exists var redlineExists = ($('#redlineSelect').size()) On May 23, 10:31 am, Andy Matthews [EMAIL PROTECTED] wrote: I've got some multiple dropdowns that I'm trying to conditionalize. Our designers can select one (or both) of two sets of code. I'd like to conditionalize my jQuery code so that if the redline dropdowns exist, I can run that code, or if the inventory dropdowns exist, I can run THAT code. Is there a way of assigning a boolean value using a jQuery call? Something like this maybe? var redlineExists = $('#redlineSelect'); Where if the element is there, then redlineExists would be true, and false if it did not? How might I do that? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED]http://www.dealerskins.co m/ dealerskinslogo.bmp 6KDownload
[jQuery] Question about the context attribute of a jQuery call
Assume I have two form elements, both of which are identical in every way (contents and all) except for their IDs. One named redlineSelect, and the other named inventorySelect. form id=redlineSelect or inventorySelect select id=make some options here /select select id=model some options here /select /form if I do a click function like so: $('#make','#redlineSelect').click( do something here) will that only apply to the make dropdown inside the redlineSelect form tag? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ att59b62.bmp
[jQuery] Re: Question about the context attribute of a jQuery call
Looks like I answered my own question. Doesn't appear that this is possible. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Wednesday, May 23, 2007 1:01 PM To: jquery-en@googlegroups.com Subject: [jQuery] Question about the context attribute of a jQuery call Assume I have two form elements, both of which are identical in every way (contents and all) except for their IDs. One named redlineSelect, and the other named inventorySelect. form id=redlineSelect or inventorySelect select id=make some options here /select select id=model some options here /select /form if I do a click function like so: $('#make','#redlineSelect').click( do something here) will that only apply to the make dropdown inside the redlineSelect form tag? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ att59b62.bmp
[jQuery] Re: Question about the context attribute of a jQuery call
Right... I admit it's not the best, but I wanted to see about that possibility so as to change as little code as possible. I ended up giving each select it's own unique ID and of course that works just fine. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh Nathanson Sent: Wednesday, May 23, 2007 2:26 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Question about the context attribute of a jQuery call The OP has a case where there are two forms, each with its own ID, however, the elements of each form are the same so there are duplicate ID's. Perhaps this is not the best design pattern, and class or name could be used for selection rather than IDs. Or, set it up so the IDs are not duplicated. -- Josh - Original Message - From: Daemach [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, May 23, 2007 11:46 AM Subject: [jQuery] Re: Question about the context attribute of a jQuery call I think you can use a selector in a context attribute, but there isn't much point in this situation. If all of your ID's are unique (and they should be), $('#make') is enough. You don't need a context. When you use the #, it's the same as doing document.getElementByID(); On May 23, 11:19 am, Sean Catchpole [EMAIL PROTECTED] wrote: $('#make','#redlineSelect').click( do something here) It's invalid to have a string as the second parameter to jQuery. Try this instead: $(#redlineSelect #make).click(...); ~Sean
[jQuery] Re: off list RE: [jQuery] Re: What is up with the Coach Wei slam of jQuery?
I've always wondered about the backward facing trains. /me waits with baited breath for a reply. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris W. Parker Sent: Thursday, May 24, 2007 2:25 PM To: jquery-en@googlegroups.com Subject: [jQuery] off list RE: [jQuery] Re: What is up with the Coach Wei slam of jQuery? On Thursday, May 24, 2007 11:29 AM Jonathan Sharp said: Sir, in regards to your comments about jQuery being a car as opposed to a train I desire to set you straight! jQuery is definitely more like a train than a car! [snip] The tools we're developing are at an enterprise level for mission critical applications and jQuery is at the heart of it! I bet this answer is a no but can we see some screenshots? Sounds pretty awesome. And now for some questions about trains. :) 1. The engines that are facing backwards, are those running in reverse to help pull the load or are they just being towed like the other cars? 2a. If so, why don't they just face forward like the front engine? 2b. If so, does the engine work exactly the same forward as it does backward? 3. How many tons per engine can be moved? 4a. What's the longest train ever? 4b. What's the average train length? 5. How many conductors are on each train? 6. What's the shortest and longest a train runs for one shipment (distance and continuous operating hours)? I guess that's enough for now. :)
[jQuery] Safari, Thickbox 3 and rolling over images = glitch?
I don't run a Mac, or have access to one, so I'm asking you all for a little assistance please. A client running Safari had this to say about my implementation of Thickbox: When you roll over a certain area, mostly right on the outermost border of each picture, then the header blinks in and out and looks weird. Here's a screencap he sent me: http://www.commadelimited.com/uploads/safari_glitch.jpg And here's the page itself: http://www.atkinshomebuilders.com/photo-gallery.html Does anyone have any idea why this might be happening? It works great in IE and FF for the PC as well as FF for the Mac.
[jQuery] Re: Safari, Thickbox 3 and rolling over images = glitch?
Thanks. That makes me feel better that it's not just his puter. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Heimlich Sent: Thursday, May 24, 2007 9:03 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Safari, Thickbox 3 and rolling over images = glitch? I can confirm your client's issue on Safari 2.0.4 (419.3). On 5/24/07, Andy Matthews [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I don't run a Mac, or have access to one, so I'm asking you all for a little assistance please. A client running Safari had this to say about my implementation of Thickbox: When you roll over a certain area, mostly right on the outermost border of each picture, then the header blinks in and out and looks weird. Here's a screencap he sent me: http://www.commadelimited.com/uploads/safari_glitch.jpg And here's the page itself: http://www.atkinshomebuilders.com/photo-gallery.html Does anyone have any idea why this might be happening? It works great in IE and FF for the PC as well as FF for the Mac. -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com http://aheimlich.freepgs.com
[jQuery] Re: Getting column value for a selected table row?
Damn...that's fantastic. We need to have more details on how to do things like this. The code I might have come up with for that would have been like 5 or 6 lines long at LEAST! _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jake McGraw Sent: Friday, May 25, 2007 4:03 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Getting column value for a selected table row? Maybe, within click or change: $([EMAIL PROTECTED]).change(function(){ $(this).parent().siblings(td:eq(3)). /* do something */; }); So you document should look like: tr tdinput type=radio name=mybutton//td td/td td/td td!-- This is your target --/td td/td ... /tr The chain order: $(this) -- the radio button .parent() -- The td element wrapped around radio button .siblings(td:eq(3)) -- All td element siblings, get the fourth Haven't tested, hope it works for you. - jake On 5/25/07, Brad Perkins [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Given a table where the the first column of each row contains a radio button. Is there some jQuery selector magic that would allow me to get the value of the cell in the 4th column when the radio button is selected?
[jQuery] Forcing a select box to select a specified option
I'm doing a related select dropdown here (bottom middle of the page): http://w3.normreeveshonda.com/pages/page.cfm?pageid=80976 http://w3.normreeveshonda.com/pages/page.cfm?pageid=80976pagetype=26featu reid=-1 pagetype=26featureid=-1 In FF, under New vehicles, the Make dropdown defaults to HONDA as desired. In IE though, it stays on select a make. Here's the code that I'm passing back to the page for that select box: optionselect a make/optionoption value=HONDAHONDA/option Ideally, I'd just do this: optionselect a make/optionoption value=HONDA selected=selectedHONDA/option but that doesn't work for some odd reason. So I'd like to default it to the first dropdown that has a value attribute. How would I go about that? $('#RedMakeSelect:first-child [EMAIL PROTECTED]') or something like that? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] Re: Forcing a select box to select a specified option
Hrm... That doesn't work. I think you might have misunderstood me though. I want to force the selected attribute of the second option element. I tried this too: $('#RedMakeSelect:first-child option:nth-child(1)').attr('selected','true'); And that didn't work either. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Tuesday, May 29, 2007 5:54 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Forcing a select box to select a specified option Andy, $('#RedMakeSelect:first-child [EMAIL PROTECTED]') I believe IE always has the value attribute defined--even if it's not defined in your markup (ie. it essentially adds a value= to your tag.) If you know the 2nd element should have a value attribute if it's present, then I'd just do: $('#RedMakeSelect:first-child option:nth-child(1)') -Dan
[jQuery] Re: Forcing a select box to select a specified option
That did it Dan. Thanks! -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Wednesday, May 30, 2007 8:56 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Forcing a select box to select a specified option Andy, Hrm... That doesn't work. I think you might have misunderstood me though. I want to force the selected attribute of the second option element. I tried this too: $('#RedMakeSelect:first-child option:nth- child(1)').attr('selected','true'); And that didn't work either. I can't remember if the nth-child() starts at 0 or 1. If it starts at 1, you'd need to use the value 2. However, now that you've said you're just trying to select the second item, I'd do what was previously suggested an go straight to the DOM: $('#RedMakeSelect:first-child option)[1].selected = true; -Dan
[jQuery] Re: Quick javascript question (not jQuery)
If you find this out, let me know because I'd love to have similar functionality. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Sent: Wednesday, May 30, 2007 9:27 AM To: jQuery (English) Subject: [jQuery] Quick javascript question (not jQuery) Not strictly speaking a jQuery question but I thought somebody on here might have some insight into this. :) The Powers That Be have asked me for a system whereby the contents of a form is automatically saved to the server whenever the user leaves the page. I looked into onunload but from what I can asertain by the time that event fires the form already no longer exists and can't be submitted to the server. Doing an AJAX post whenever the form changes isn't acceptible because that would generate too much database traffic, so I'm kind of stuck. I did suggest preservign the data in a cookie instead of the database but that is apparently not acceptable either. Is there some other way I could have the form submitted when the user leaves the page?
[jQuery] Coldfusion 8 Public Beta now available
For any of you that have been wanting to try Coldfusion, THIS is the email for you. Coldfusion 8 is going to be a HUGE release, the first with Adobe, and I predict that it will make major waves in the web development community. Get it while it's hot! http://labs.adobe.com/technologies/coldfusion8/ Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] Re: Coldfusion 8 Public Beta now available
Oh...and to top that, HostMySite.com is offering FREE Coldfusion 8 hosting: http://www.hostmysite.com/CF8 I'm guessing that it's only for the duration of the public beta, but still. It's a good way to dip your toes into the warm goodness that is Coldfusion 8. You literally have nothing to lose. On May 30, 10:51 am, Andy Matthews [EMAIL PROTECTED] wrote: For any of you that have been wanting to try Coldfusion, THIS is the email for you. Coldfusion 8 is going to be a HUGE release, the first with Adobe, and I predict that it will make major waves in the web development community. Get it while it's hot! http://labs.adobe.com/technologies/coldfusion8/ Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED]http://www.dealerskins.com/ dealerskinslogo.bmp 6KDownload
[jQuery] Getting the numeric value of the top attribute of an object
I would like to dynamically get the numeric value for the top of an object. I'm using this code: var inventoryObj = $('#inventory'); inventoryObj.css('top'); But it just returns auto. 1) Am I using the correct method? 2) If so, is there a different method that I can use to get the value that I need? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] OT: Run PHP code inline on a Coldfusion page
For those of you who don't know, Coldfusion is built upon Java. Someone has taken it upon themselves to write a Java library, called Quertus, which parses PHP code. Someone else then built upon THAT and wrote a Coldfusion library which references the Quertus library and allows you to combine PHP and Coldfusion code on the same page, pass variables back and forth to each other and more. http://corfield.org/blog/index.cfm/do/blog.entry/entry/ColdFusion_8_running_ PHP I don't know what the speed is (probably not as fast as the native zend interpreter, but still...PHP code mixed in with CF code is pretty kick ass. I read that someone else has done the same thing for Ruby. Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/ dealerskinslogo.bmp
[jQuery] Re: Getting the numeric value of the top attribute of an object
Right...I thought about using dimensions, but I don't think we're explicitly setting top. So rather than loading in a plugin for only one usage location, I just went a different route. Thanks for the reply Glen. andy _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Monday, June 04, 2007 9:41 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Getting the numeric value of the top attribute of an object Is top set? What does firebug/ie developer say? Are you looking for it's placement? You might want to use the dimensions plugin, which can give exact placement. Glen On 6/4/07, Andy Matthews [EMAIL PROTECTED] wrote: I would like to dynamically get the numeric value for the top of an object. I'm using this code: var inventoryObj = $('#inventory'); inventoryObj.css('top'); But it just returns auto. 1) Am I using the correct method? 2) If so, is there a different method that I can use to get the value that I need? Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com http://www.dealerskins.com/
[jQuery] Re: NEWS: HTML entity lookup tool built in jQuery
That's VERY nice. Wish the text was a little smaller. You have to scroll too much to get to the bottom of the list. Very well done though. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Monday, June 04, 2007 9:42 AM To: jQuery Discussion Subject: [jQuery] NEWS: HTML entity lookup tool built in jQuery Ajaxian had an article about a very cool HTML entity lookup tool: http://ajaxian.com/archives/an-entity-lookup-that-helps When I checked it out, low and behold it was using jQuery. Direct Link: http://leftlogic.com/lounge/articles/entity-lookup/ Great work, Left Logic! Rey... -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com
[jQuery] Re: NEWS: HTML entity lookup tool built in jQuery
Right... More of a suggestion than a criticism Remy...it's a great idea, and extremely well implemented. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Remy Sharp Sent: Monday, June 04, 2007 10:17 AM To: jQuery (English) Subject: [jQuery] Re: NEWS: HTML entity lookup tool built in jQuery Thanks for picking this up guys. @Andy - I'll add an option over the next couple of days to compress the output - something that allows you to see more without having to scroll. On Jun 4, 3:48 pm, Andy Matthews [EMAIL PROTECTED] wrote: That's VERY nice. Wish the text was a little smaller. You have to scroll too much to get to the bottom of the list. Very well done though. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Monday, June 04, 2007 9:42 AM To: jQuery Discussion Subject: [jQuery] NEWS: HTML entity lookup tool built in jQuery Ajaxian had an article about a very cool HTML entity lookup tool: http://ajaxian.com/archives/an-entity-lookup-that-helps When I checked it out, low and behold it was using jQuery. Direct Link: http://leftlogic.com/lounge/articles/entity-lookup/ Great work, Left Logic! Rey... -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED]://www.iambright.com
[jQuery] Re: NEWS: HTML entity lookup tool built in jQuery
Kick ASS Remy. Great job. It looks fantastic and works flawlessly. Good job. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Remy Sharp Sent: Tuesday, June 05, 2007 11:52 AM To: jQuery (English) Subject: [jQuery] Re: NEWS: HTML entity lookup tool built in jQuery Thanks for the feedback - I've since upgraded the lookup to include a 'compressed' view (since I figured I wanted that too). There's some other features like copying the entity to the clipboard and adding your own keywords to the entity. http://leftlogic.com/lounge/articles/entity-lookup/ Cheers, Remy. On Jun 4, 6:00 pm, Andy Matthews [EMAIL PROTECTED] wrote: Right... More of a suggestion than a criticism Remy...it's a great idea, and extremely well implemented.
[jQuery] Re: Newbie: Superfish menu help
In IE 7 and FF2 for the PC, I get a JS error when I load that page. Looks like you might be missing a closing curly brace around line 21. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JLuther Sent: Tuesday, June 05, 2007 2:56 PM To: jQuery (English) Subject: [jQuery] Newbie: Superfish menu help Hi, I'm new to JavaScript and jQuery, so I apologize if I sound like an idiot. I am trying to set a delay for when the mouse rolls off a menu, but I don't seem to be able to get it to work right. You can view the drop down menu and see how Superfish was called at a href=http:// www.bluefilamentdesign.com/haverford-new.htmlhttp://www.bluefilamentdesign .com/haverford-new.html/a. I've tried many combinations, but have just reverted to the default settings for lack of anything else to think of. Any clues would be greatly appreciated. Thank you in advance, Jason Luther
[jQuery] Re: ANNOUNCE: Open Source Project Tracker Using jQuery
:( CF error: Security: The requested template has been denied access to ticc. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Friday, June 08, 2007 4:20 PM To: jQuery Discussion Subject: [jQuery] ANNOUNCE: Open Source Project Tracker Using jQuery Super ColdFusion guru and recent jQuery convert Joe Danziger has just released the beta version of his open source project management software, aptly name Project Tracker. You can get more information here: http://projecttracker.riaforge.org/index.cfm and see the application in action here: http://ajaxcf.com/project/ Description: Send messages, manage to-do lists, set milestones, share files, track issues, browse source code.. all from a streamlined interface taking advantage of the latest ajax technologies. Built using jQuery. Requirements: ColdFusion MX 6+ ColdFusion 8 required for avatar features mySQL or SQL Server jQuery Great job Joe! Rey.. -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com
[jQuery] Re: ANNOUNCE: Open Source Project Tracker Using jQuery
The bottom one. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Friday, June 08, 2007 4:48 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: ANNOUNCE: Open Source Project Tracker Using jQuery Which link Andy? Rey... Andy Matthews wrote: :( CF error: Security: The requested template has been denied access to ticc. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Friday, June 08, 2007 4:20 PM To: jQuery Discussion Subject: [jQuery] ANNOUNCE: Open Source Project Tracker Using jQuery Super ColdFusion guru and recent jQuery convert Joe Danziger has just released the beta version of his open source project management software, aptly name Project Tracker. You can get more information here: http://projecttracker.riaforge.org/index.cfm and see the application in action here: http://ajaxcf.com/project/ Description: Send messages, manage to-do lists, set milestones, share files, track issues, browse source code.. all from a streamlined interface taking advantage of the latest ajax technologies. Built using jQuery. Requirements: ColdFusion MX 6+ ColdFusion 8 required for avatar features mySQL or SQL Server jQuery Great job Joe! Rey.. -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com
[jQuery] Re: ANNOUNCE: Open Source Project Tracker Using jQuery
When you login. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Friday, June 08, 2007 4:48 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: ANNOUNCE: Open Source Project Tracker Using jQuery Which link Andy? Rey... Andy Matthews wrote: :( CF error: Security: The requested template has been denied access to ticc. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Friday, June 08, 2007 4:20 PM To: jQuery Discussion Subject: [jQuery] ANNOUNCE: Open Source Project Tracker Using jQuery Super ColdFusion guru and recent jQuery convert Joe Danziger has just released the beta version of his open source project management software, aptly name Project Tracker. You can get more information here: http://projecttracker.riaforge.org/index.cfm and see the application in action here: http://ajaxcf.com/project/ Description: Send messages, manage to-do lists, set milestones, share files, track issues, browse source code.. all from a streamlined interface taking advantage of the latest ajax technologies. Built using jQuery. Requirements: ColdFusion MX 6+ ColdFusion 8 required for avatar features mySQL or SQL Server jQuery Great job Joe! Rey.. -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com
[jQuery] Re: ANNOUNCE: Open Source Project Tracker Using jQuery
Yeah... I can see the benefits of making it look similar to basecamp, but this is almost identical. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bbuchs Sent: Monday, June 11, 2007 10:06 AM To: jQuery (English) Subject: [jQuery] Re: ANNOUNCE: Open Source Project Tracker Using jQuery It's a very impressive app, but I'd feel better about it if the interface wasn't a blatant rip from Basecamp! On Jun 8, 5:04 pm, Rey Bango [EMAIL PROTECTED] wrote: Hmm. Looks like Joe's site is having trouble. I'll let him know about it and give you all a heads up when its up and running. Rey Andy Matthews wrote: When you login. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Friday, June 08, 2007 4:48 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: ANNOUNCE: Open Source Project Tracker Using jQuery Which link Andy? Rey... Andy Matthews wrote: :( CF error: Security: The requested template has been denied access to ticc. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Friday, June 08, 2007 4:20 PM To: jQuery Discussion Subject: [jQuery] ANNOUNCE: Open Source Project Tracker Using jQuery Super ColdFusion guru and recent jQuery convert Joe Danziger has just released the beta version of his open source project management software, aptly name Project Tracker. You can get more information here: http://projecttracker.riaforge.org/index.cfm and see the application in action here: http://ajaxcf.com/project/ Description: Send messages, manage to-do lists, set milestones, share files, track issues, browse source code.. all from a streamlined interface taking advantage of the latest ajax technologies. Built using jQuery. Requirements: ColdFusion MX 6+ ColdFusion 8 required for avatar features mySQL or SQL Server jQuery Great job Joe! Rey.. -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED]://www.iambright.com
[jQuery] Re: vignet : another great jquery powered site
Nicely done site. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sam Sherlock Sent: Monday, June 11, 2007 11:27 AM To: jquery-en@googlegroups.com Subject: [jQuery] vignet : another great jquery powered site http://www.teamviget.com/ great work
[jQuery] Re: keycode javascript conversion to jquery
jQuery actually has built in key event handlers: http://jquery.com/api/ Click the K link at the top -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JimD Sent: Monday, June 11, 2007 11:48 AM To: jQuery (English) Subject: [jQuery] keycode javascript conversion to jquery Hi all, I'm looking to convert an old javascript function to jquery. It simple captured the keycode event 13 (user pressing enter on the keyboard) if the user hits enter it initiates the action of clicking a button. I want to try jquery because no matter what I do with regular javascript, the keycode never get properly initiated in firefox. I was wondering if any of you could suggest the best method using jquery so it works with both firefox 2 and IE6/7 Current javascript: /* for enter key to initiate simple search clicking enter key */ function DoEnterSearch(buttonName,e) { var key; var key = (e)? e.which: event.keyCode; if (key == 13) { //Get the button the user wants to have clicked var btn = document.getElementById(buttonName); if (btn != null) { //If we find the button click it btn.click(); if (event) event.keyCode = 0 ; return false } } } Jquery implementation $(document).ready(function() { $(#searchtxt).keydown( function(e){ var key = e.charCode || e.keyCode || 0; $('buttonsmp').click(); } ); });
[jQuery] Re: Macrumors running live udpates of WWDC
I have SERIOUS, SERIOUS doubts that there are 18 million people using Safari. I doubt there are that many people using Macs to be perfectly honest. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sent: Monday, June 11, 2007 1:11 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Macrumors running live udpates of WWDC 11:09 am Safari On WINDOWS 11:09 am 18 Million Safari users Marketshare has climbed to 4.9% IE has 78%, Firefox 15%, others 2% We Dream Big On 6/11/07, Shelane Enos [EMAIL PROTECTED] wrote: That's a feature they've previously announced that I'm looking forward to. On 6/11/07 10:52 AM, ?ⓐⓚⓔ [EMAIL PROTECTED] wrote: 10:49 amusing safari to make widgets from web pages Woo hoo! On 6/11/07, ?ⓐⓚⓔ [EMAIL PROTECTED] wrote: thanks Shelane! I've been tuned in since 10 am!!! On 6/11/07, Shelane Enos [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Macrumors.com http://Macrumors.com http://Macrumors.com is running a continuous AJAX update of the keynote address of WWDC. No more update in 60 seconds countdown. -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
[jQuery] Re: Macrumors running live udpates of WWDC
I usually merge two sources for browser stats: http://www.thecounter.com/stats/2007/May/browser.php puts Safari at around 3% and http://www.echoecho.com/ (right column, halfway down) places Safari at around 1% So I'd say that 2-3% might be realistic. But how many uniques make up that list? _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Felix Geisendörfer Sent: Monday, June 11, 2007 2:30 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Macrumors running live udpates of WWDC I have SERIOUS, SERIOUS doubts that there are 18 million people using Safari. I doubt there are that many people using Macs to be perfectly honest. I also think that FF numbers are underestimated and IE numbers overesimtated: See http://www.w3schools.com/browsers/browsers_stats.asp -- Felix -- http://www.thinkingphp.org http://www.fg-webdesign.de Andy Matthews wrote: I have SERIOUS, SERIOUS doubts that there are 18 million people using Safari. I doubt there are that many people using Macs to be perfectly honest. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sent: Monday, June 11, 2007 1:11 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Macrumors running live udpates of WWDC 11:09 am Safari On WINDOWS 11:09 am 18 Million Safari users Marketshare has climbed to 4.9% IE has 78%, Firefox 15%, others 2% We Dream Big On 6/11/07, Shelane Enos [EMAIL PROTECTED] wrote: That's a feature they've previously announced that I'm looking forward to. On 6/11/07 10:52 AM, ?ⓐⓚⓔ [EMAIL PROTECTED] wrote: 10:49 amusing safari to make widgets from web pages Woo hoo! On 6/11/07, ?ⓐⓚⓔ [EMAIL PROTECTED] wrote: thanks Shelane! I've been tuned in since 10 am!!! On 6/11/07, Shelane Enos [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Macrumors.com http://Macrumors.com http://Macrumors.com is running a continuous AJAX update of the keynote address of WWDC. No more update in 60 seconds countdown. -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
[jQuery] Re: Macrumors running live udpates of WWDC
So 18 million INSTALLS of Safari, maybe. Just because a user has it on their system, doesn't mean they'll use it. Microsoft might as well say that 300 million people use MS Paint for their graphics work. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Freeman Sent: Monday, June 11, 2007 2:36 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Macrumors running live udpates of WWDC Actually, since Safari was introduced 3.5 years ago and Apple ships around 5 million Macs/year now, 18 million Safari uses doesn't sound too far off. What's really going to be interesting is Apple has just expanded Safari to two new platforms, Windows and iPhone. This should expand Safari market share dramatically. --- Andy Matthews [EMAIL PROTECTED] wrote: I have SERIOUS, SERIOUS doubts that there are 18 million people using Safari. I doubt there are that many people using Macs to be perfectly honest. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sent: Monday, June 11, 2007 1:11 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Macrumors running live udpates of WWDC 11:09 am Safari On WINDOWS 11:09 am 18 Million Safari users Marketshare has climbed to 4.9% IE has 78%, Firefox 15%, others 2% We Dream Big On 6/11/07, Shelane Enos [EMAIL PROTECTED] wrote: That's a feature they've previously announced that I'm looking forward to. On 6/11/07 10:52 AM, ?â“â“šâ“” [EMAIL PROTECTED] wrote: 10:49 amusing safari to make widgets from web pages Woo hoo! On 6/11/07, ?â“â“šâ“” [EMAIL PROTECTED] wrote: thanks Shelane! I've been tuned in since 10 am!!! On 6/11/07, Shelane Enos [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Macrumors.com http://Macrumors.com http://Macrumors.com is running a continuous AJAX update of the keynote address of WWDC. No more update in 60 seconds countdown. -- â’¿â“â“šâ“” - יעקב ÊÇ¡Ç©È© ᎫᎪá¦áŽ¬ Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/
[jQuery] Re: Macrumors running live udpates of WWDC
I see your point, but actually that many people probably DO use IE. Most PC users don't bother switching browsers because: a) They don't know any better b) They don't care c) IE works just fine for them so why should they change. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Scott Sent: Monday, June 11, 2007 3:16 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Macrumors running live udpates of WWDC Andy Matthews wrote: So 18 million INSTALLS of Safari, maybe. Just because a user has it on their system, doesn't mean they'll use it. Microsoft might as well say that 300 million people use MS Paint for their graphics work. A more correct analogy would be saying 300 million people use IE... Safari is the default browser for Mac like IE is for Windows. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Freeman Sent: Monday, June 11, 2007 2:36 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Macrumors running live udpates of WWDC Actually, since Safari was introduced 3.5 years ago and Apple ships around 5 million Macs/year now, 18 million Safari uses doesn't sound too far off. What's really going to be interesting is Apple has just expanded Safari to two new platforms, Windows and iPhone. This should expand Safari market share dramatically. --- Andy Matthews [EMAIL PROTECTED] wrote: I have SERIOUS, SERIOUS doubts that there are 18 million people using Safari. I doubt there are that many people using Macs to be perfectly honest. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sent: Monday, June 11, 2007 1:11 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Macrumors running live udpates of WWDC 11:09 am Safari On WINDOWS 11:09 am 18 Million Safari users Marketshare has climbed to 4.9% IE has 78%, Firefox 15%, others 2% We Dream Big On 6/11/07, Shelane Enos [EMAIL PROTECTED] wrote: That's a feature they've previously announced that I'm looking forward to. On 6/11/07 10:52 AM, ?â“â“šâ“” [EMAIL PROTECTED] wrote: 10:49 amusing safari to make widgets from web pages Woo hoo! On 6/11/07, ?â“â“šâ“” [EMAIL PROTECTED] wrote: thanks Shelane! I've been tuned in since 10 am!!! On 6/11/07, Shelane Enos [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Macrumors.com http://Macrumors.com http://Macrumors.com is running a continuous AJAX update of the keynote address of WWDC. No more update in 60 seconds countdown. -- â’¿â“â“šâ“” - יעקב ÊÇ¡Ç©È© ᎫᎪá¦áŽ¬ Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/ -- Chris Scott Adaptive Hosting Solutions, Inc. | Blogzerk - blog hosting http://www.adaptivehostingsolutions.com/ | http://www.blogzerk.com/
[jQuery] Re: IDEA: Plugin Registering
It's a great idea. Could also allow for a dynamic listing of sites using jQuery. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Monday, June 11, 2007 4:11 PM To: jquery-en@googlegroups.com Subject: [jQuery] IDEA: Plugin Registering I just had an idea, and thought Id share. Imagine http://plugins.jquery.com Besides listing all the plugins with ratings and everything (the usual)... You could REGISTER your site as using a particular plugin. So when there is a new version, I would receive an email saying, Hey, you use this plugin and you might want to upgrade. It has the following enhancements. Right now, I can't keep track of all the plugins I've used and what version they are. What is the status of the enhanced plugin site anyway? Glen
[jQuery] Re: SlickSpeed CSS Selector TestSuite
It's by the people who won the testing, so that makes it just a little suspect. This is probably just like the testing from about 6 months back in which the jQuery library was several versions older than the most recent. That said, here's what I got: IE 7.0.57/PC - prototype 1.5.1 - 1879 jQuery 1.1.2dev - 3409 MooTools 1.2dev - 1623 ext 1.1b1 - 1206 cssQuery 2.02 - 8057 FF 2.0.0.4/PC - prototype 1.5.1 - 267 jQuery 1.1.2dev - 6940 MooTools 1.2dev - 278 ext 1.1b1 - 1725 cssQuery 2.02 - 9514 Regardless, it appears to be a nice test suite. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bil Corry Sent: Tuesday, June 12, 2007 8:49 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: SlickSpeed CSS Selector TestSuite Bil Corry wrote on 6/12/2007 6:43 AM: - SlickSpeed is a CSS selector test suite provided by the MooTools folk. This tool comes at the same time as they release CSS3 support in Mootools, and it compares Prototype, jQuery, MooTools, Ext, and CSS Query. http://ajaxian.com/archives/slickspeed-css-selector-testsuite - Opps, meant to post the results I got: MooTools 1.2dev: 208 ms prototype 1.5.1: 231 ms ext 1.1b1:1385 ms jQuery 1.1.2dev: 5678 ms -- jQuery! cssQuery 2.02:6995 ms - Bil
[jQuery] Re: SlickSpeed CSS Selector TestSuite
It's crazy how much faster Prototype, MooTools and ext are. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Stuhr Sent: Tuesday, June 12, 2007 9:14 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: SlickSpeed CSS Selector TestSuite Andy Matthews schrieb: It's by the people who won the testing, so that makes it just a little suspect. This is probably just like the testing from about 6 months back in which the jQuery library was several versions older than the most recent. That said, here's what I got: IE 7.0.57/PC - prototype 1.5.1 - 1879 jQuery 1.1.2dev - 3409 MooTools 1.2dev - 1623 ext 1.1b1 - 1206 cssQuery 2.02 - 8057 FF 2.0.0.4/PC - prototype 1.5.1 - 267 jQuery 1.1.2dev - 6940 MooTools 1.2dev - 278 ext 1.1b1 - 1725 cssQuery 2.02 - 9514 my results: FF 2.0.0.4 WinXP-SP2 http://onenterframe.de/temp/ micha
[jQuery] Re: SlickSpeed CSS Selector TestSuite
Don't we have a plugin which might allay some of the speed concerns? I'm LOVING the fact that jQuery is 19k, BUT even if it were to bump up to 25k or 30k, it would STILL be the smallest overall library. And honestly, these days, people spend 100k just on one IMAGE, which doesn't even provide any functionality. I'd say that increasing the library size up to 10k would be an acceptable compromise to get increased speed and flexibility. Thoughts? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Tuesday, June 12, 2007 9:25 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: SlickSpeed CSS Selector TestSuite One of the reasons that these libraries have made substantial improvements has been that jQuery has lead the pack in terms of innovation and our efforts have motivated them to finally improve their frameworks. Prototype is probably the best example of this, having been forced to finally formalize the project after sitting in limbo for almost a year, add chaining and even improve its DOM querying. With that said, its definitely our turn to get things ramped up but we're kind of in a quandary. See, one of the benefits of jQuery is its very small file size. We're still the smallest library out there and our overall functionality is on par with any of the ones listed. In terms of overall ease of use, I still think we're the leader. But in keeping a small size we're limited in how much tweaking can be done. Neither PT, Ext or Moo have limitations on file size so they have the flexibility to add much more code to enhance their speed than we do. Our core team certainly has the talent to greatly enhance the selector speeds but we want to continue to provide a nice, small package. So at the end of the day, it comes down to this: - We can increase selector speeds at the expense of file size or - We can continue to focus on providing tight code in a small package and take what is arguably a small hit in speed The reason I say arguably is because unless you're manipulating a HUGE amount of selectors, I'm not sure how much of a visual difference you would see. I know this has been discussed before and that was pretty much the consensus (ie: small # of selectors, no big deal. Large # of selectors, possible concern). Considering that we are, IMO, the project thats most in tune with its community, your feedback is definitely most welcome. Rey... Bil Corry wrote: Bil Corry wrote on 6/12/2007 6:43 AM: - SlickSpeed is a CSS selector test suite provided by the MooTools folk. This tool comes at the same time as they release CSS3 support in Mootools, and it compares Prototype, jQuery, MooTools, Ext, and CSS Query. http://ajaxian.com/archives/slickspeed-css-selector-testsuite - Opps, meant to post the results I got: MooTools 1.2dev: 208 ms prototype 1.5.1: 231 ms ext 1.1b1:1385 ms jQuery 1.1.2dev: 5678 ms -- jQuery! cssQuery 2.02:6995 ms - Bil -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com
[jQuery] Re: SlickSpeed CSS Selector TestSuite
Well said. That about sums it up for me. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Tuesday, June 12, 2007 11:08 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: SlickSpeed CSS Selector TestSuite This topic comes up every time a speed test emerges. To me, speed is totally irrelevant in most circumstances that I use jQuery. Speed of Development is most important. if I can finish my job faster then the user will be happier. If they have to wait 1/10 of a second longer, they will not be heart broken. These tests are geeky comparisons of technical detail that is irrelevant to human beings. It's like video card comparisons that talk about speed of polygonal shading textures per billionth of a second. Apple just redesigned their site. On the inside they use Scriptaculous/Prorotype. Check http://www.apple.com/mac. Notice the file size, 772k! That is humongous. Does it matter what the script is at that point? So with that said, although I do like jQuery small, I don't think it makes a difference whether its 20k or 50k. In the tradeoff's, I think you need to find out how much major improvements in speed will really cost? Is it really 10k more? Can it be a plugin? I have no idea. I am just saying, I am not concerned with file size up to 50k. My only concern is about ease of use and maintainability. As long as jQuery has that, then all these tests miss the point. Glen On 6/12/07, Robert O'Rourke [EMAIL PROTECTED] wrote: Rey Bango wrote: Hi Robert, Thats precisely the reason that its slower. We continue to work on providing the most comprehensive functionality in the smallest package. This is one of the drawbacks of that approach. Rey... Robert O'Rourke wrote: Is Jquery slower because it's more compact then? ie. better for light usage? I much prefer the syntax and the community around jquery. I never got any helpful responses from anyone on the mootools forum when I was using that library. Righto, cheers Rey. I'm definitely sticking with jquery as a tool of choice but I wonder, seeing as how mootools is modular couldn't someone just take that selector code snippet and write a plugin to make it spit out the jquery object? Rob
[jQuery] Re: SlickSpeed CSS Selector TestSuite
I would guess that most (at least a large percentage) of their target audience has broadband. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert O'Rourke Sent: Tuesday, June 12, 2007 11:56 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: SlickSpeed CSS Selector TestSuite Glen Lipka wrote: This topic comes up every time a speed test emerges. To me, speed is totally irrelevant in most circumstances that I use jQuery. Speed of Development is most important. if I can finish my job faster then the user will be happier. If they have to wait 1/10 of a second longer, they will not be heart broken. These tests are geeky comparisons of technical detail that is irrelevant to human beings. It's like video card comparisons that talk about speed of polygonal shading textures per billionth of a second. Apple just redesigned their site. On the inside they use Scriptaculous/Prorotype. Check http://www.apple.com/mac. Notice the file size, 772k! That is humongous. Does it matter what the script is at that point? So with that said, although I do like jQuery small, I don't think it makes a difference whether its 20k or 50k. In the tradeoff's, I think you need to find out how much major improvements in speed will really cost? Is it really 10k more? Can it be a plugin? I have no idea. I am just saying, I am not concerned with file size up to 50k. My only concern is about ease of use and maintainability. As long as jQuery has that, then all these tests miss the point. Glen Agreed, I'm not that fussed because it's still plenty nippy and so much simpler for a newbite such as myself. Thats an obscene filesize for apples site! What percentage of people are actually on broadband these days? Or do they just not care anymore...
[jQuery] Re: SlickSpeed CSS Selector TestSuite
Someone should let them know...that's just assinine. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Tuesday, June 12, 2007 4:26 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: SlickSpeed CSS Selector TestSuite Ok, Apple engineers are seriously a few kilobytes short of meg. Check out the file size of http://www.apple.com/itunes/ Compressed its 878k. But look why. They are using the uncompressed, unminified, totally commented versions of prototype and scriptaculous. Nothing is minified, much less packed. AND, they are not using GZIP on the scripts either. Now, most users never know this sort of thing. But, come on, is a little craftsmanship that difficult? One bad Apple spoils the bunch. Glen On 6/12/07, Christopher Jordan [EMAIL PROTECTED] wrote: Sean Catchpole wrote: I hear a lot of discussion about how jQuery isn't that slow, the test wasn't perfectly fair (what test is?), that keeping code small is important, and that development time is the most important thing. 1) Lots of people take speed tests seriously, even if they're not a good way to judge a libraries use. I agree 100% 2) Making jQuery faster doesn't mean it has to be bigger in size, only more clever. I can't really speak to this one. 3) Development time is important, but so are viewer's patience. Slow code is never good. *Absolutely!* I could not agree more. I had a page where I was using a bunch of selectors, and it was just plain slow. I switched to a different methodology and it sped up (some... I think there are still problems with my code on that page... but that's another topic :o) I would like to see jQuery's speed improve. I don't want a bloated core, but if the library stays relatively small (I know very subjective) say, under 100K that wouldn't be too bad. Would it? Chris -- http://www.cjordan.us
[jQuery] Re: Why I can't access to a tag in a div
Your code is saying an A tag that has an id of response. To get a jQuery object containing all a tags inside that div, it should look like this: #response a That says any A tag inside a container with an id of response. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Massimiliano Marini Sent: Tuesday, June 12, 2007 4:39 PM To: jquery-en@googlegroups.com Subject: [jQuery] Why I can't access to a tag in a div $(document).ready(function(){ $.ajax({ type: GET, url: news.php, success: function(msg){ $(#response).fadeIn(slow).html(msg); } }); $(a#response).click(function(){ alert(Hello); return false; }); }); body div id=response/div /body /html in response appear the data from $.ajax, a simple list of record : a href=pippo?id=1 a href=pippo?id=2 a href=pippo?id=3 Why I can't access to the click event of the a tag in response div? -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ It's easier to invent the future than to predict it. -- Alan Kay
[jQuery] Re: Why I can't access to a tag in a div
Well, it depends. When you say that the content is generated dynamically, are you saying that it's generated by a server side language like ColdFusion or PHP? Or is it being generated by Javascript? If it's created by javascript, after the page is loaded, then you'll need to reassign the click handler to ANY new element on the page. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Massimiliano Marini Sent: Tuesday, June 12, 2007 4:59 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Why I can't access to a tag in a div Your code is saying an A tag that has an id of response. To get a jQuery object containing all a tags inside that div, it should look like this: #response a I have corrected as you have said, but still not work, this is the correction I have applied: $(#response a).click(function(){ alert(Hello); return false; )}; It could depend on the content that is generated in dynamic way? -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ It's easier to invent the future than to predict it. -- Alan Kay
[jQuery] Re: Why I can't access to a tag in a div
I did the same thing once and it took me asking the list to get the answer. Now I know, and I'm able to pass it on to you. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Massimiliano Marini Sent: Tuesday, June 12, 2007 5:26 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Why I can't access to a tag in a div You have to rebind the clicks after the ajax loads: Thank you 1K Sean for and Andy, I've learned something new -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ It's easier to invent the future than to predict it. -- Alan Kay
[jQuery] Re: SlickSpeed CSS Selector TestSuite
That's not a good example anyway. It's invalid because there can only be ONE unique ID per page. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Heimlich Sent: Tuesday, June 12, 2007 7:32 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: SlickSpeed CSS Selector TestSuite On 6/12/07, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Plus, what happens if you have: div id=bam / span id=bam / What if you need to retrieve the span tag? If it's checking #bam first, won't it only find the div / element? The DOM2 has this to say: getElementById introduced in DOM Level 2 Returns the Element whose ID is given by elementId. If no such element exists, returns null. Behavior is not defined if more than one element has this ID. Source: http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-getElBId I would think that the first one the browser finds is selected, but I can't be certain of that as I've never actually tried to do this. -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com
[jQuery] Re: SlickSpeed CSS Selector TestSuite
We'll expect something by the end of the day today. Get on that okay? ;) _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Sterling Sent: Wednesday, June 13, 2007 8:27 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: SlickSpeed CSS Selector TestSuite Karl, Thanks, I am going to try to put together a real life example and test out what is faster. I will try to have something by end of week. Thanks again. On 6/13/07, Karl Swedberg [EMAIL PROTECTED] wrote: Hi Benjamin, In this case, these are faster ... $('div.bam') $('span.bam') than this ... $('.bam') What I don't know is whether $('div.bam, span.bam') is faster than $('.bam'). I suspect that it might depend on the what the DOM looks like on a given page. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 13, 2007, at 8:15 AM, Benjamin Sterling wrote: I hear what everyone is saying about IDs, but lets flip the switch here and what if we have: div class=bam span class=bam This situation is a valid situation, one I normally am in (actually in a link situation). So, what is the fastest selector to retrieve on or another. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: follow up on real world speed test
That's a much better result, and more what I might expect. jQuery came in 3rd (1175) after Ext (585) and dojo (736). _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Sterling Sent: Wednesday, June 13, 2007 11:43 AM To: jquery-en Subject: [jQuery] follow up on real world speed test Hey guys and gals, Not sure if this is beating a dead horse, but per my suggestion on an earlier post, I decided to take a real site and using the SlickSpeed Selector Test, and test it out. I took the html from today's digg.com home page and changed the selectors to match it's content. I also added some full path selectors because I really did not know what would be faster, those are located toward the bottom of the list. With my new selectors, the test takes a bit longer, from start to finish it took about 2min 20 sec. I personally still don't get the li[class|=di], li[class~=digg-it], li[class*=igg], li[class$=it], li[class^=digg], I read the http://docs.jquery.com/Selectors page, but still don't get the full benefit of using them. Maybe someone can explain this to me. If anything, this at least shows me how I should be coding my jquery for faster dom selections. Link to speed test: http://www.kenzomedia.com/speedtest/ Link to page being tested: http://www.kenzomedia.com/speedtest/template.html -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: follow up on real world speed test
You should leave prototype in though...it's one of the main contenders. If anything, I'd take out 1.1.2.dev. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Sterling Sent: Wednesday, June 13, 2007 1:49 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: follow up on real world speed test Rey, Taken care of. The version that was up there was $Date: 2007-04-28 11:33:25 -0400 (Sat, 28 Apr 2007) $ $Rev: 1809 $ There is an over all upgrade in speed, but there are somethings that are slower. (FF2) jQuery 1.1.3a jQuery 1.1.2dev MooTools 1.2dev ext 1.1b1cssQuery 2.02dojo query 931 1 044 264 436 1495 373 I took out prototype to make room for 1.1.3 It looked to get worse on these: div.news-body div.news-details a.tool (1.1.3) 8 ms | 45 found (1.1.2) 4 ms | 45 found .news-summary .news-body .news-details .tool (1.1.3) 137 ms | 60 found (1.1.2) 43 ms | 60 found but better on: .news-summary .news-body div.news-details a.tool (1.1.3) 27 ms | 45 found (1.1.2)129 ms | 45 found div.news-summary div.news-body div.news-details a.tool (1.1.3 ) 8 ms | 45 found (1.1.2)12 ms | 45 found Which version of jQuery did you use in the tests? If its v1.1.2 that came with the test suite, can you add v1.1.3 from SVN to see if there's any difference? There should be since the selector speed was improved in v1.1.3. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: ANNOUNCE: Speed Tests Feedback
Sounds like he wants to GIVE hugs. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Sterling Sent: Wednesday, June 13, 2007 2:24 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: ANNOUNCE: Speed Tests Feedback Chris, well said, sounds like you need a hug now though :) On 6/13/07, Rey Bango [EMAIL PROTECTED] wrote: Hey Chris, You definitely do a stellar job of talking up jQuery and I'm really thankful for that. It makes my job as the jQuery Evangelism Lead that much easier. I really appreciate your efforts. As for stats, we currently have 2302 signed up on the list so its a nice number of supporters! Rey... Christopher Jordan wrote: Just to make a comment on the community for a second. I must say that this is the first web community where I've felt welcome. I don't know if that's because I've been on the list (thanks to you Rey) since before jQuery had a version number, or because I rarely if ever see anyone discouraging anyone else because of their current ability level. I'll tell you another thing. Anytime I get into a conversation on which JS library to use (usually over on CF-Talk, but sometimes other places too), not only do I always recommend jQuery, but I *always* make it a point to take the opportunity to tell folks about the jQuery community, and how awesome it is. Even though we're growing, and are probably quite large (any stats on the number of list subscribers, Rey?) it still feels very tight knit. Anyway, those are my blubbery thoughts... I love you guys, man! *sniff* ;o) Cheers, Chris Rey Bango wrote: Thanks Tane. We really believe we have the best community out there and nurturing it is a project priority. Empowering the community is very important and we want you guys to drive the features as opposed to us imposing things on you. Hopefully, everyone will bare with us just a bit while we focus on finishing v1.1.3 and then jump on v1.2. Also, if anyone has real concerns about these performance results, please don't hesitate to ask us about it. We'll be glad to address them and let you know whether its truly something that you should be concerned about or if its something that's more along the lines of FUD. Our core team is as talented as any out there so we do have the ability to give you answers based on real-world experiences. Thanks, Rey Tane Piper wrote: Again, another good thing about the jQuery community - you guys actually listen to the community, and our wants and concerns. A lot could be said for other communities ruled with an iron fist, and getting nowhere fast. On 6/13/07, Rey Bango [EMAIL PROTECTED] wrote: We know that a lot of you have been concerned about the speed test results recently generated by the SlickSpeed Selector Test Suite. We understand your concerns and realize how tests like these can cause misconceptions about real-world performance to those unfamiliar with client-side development. As such, the team is committed to improving selector performance and will begin looking into this after v1.1.3 is officially released. Improvements could come in the form of an interim release or in jQuery v1.2, depending on the complexities of the changes and how they tie into the overall core architecture. John Resig, jQuery project team leader, will make a decision as to how these improvements will be implemented and will also make a formal blog posting about v1.2 soon after v1.1.3 is out of beta. We will continue to focus on maintaining a small, feature-rich package but will consider increasing jQuery's core size to accommodate improvements. As you know, the jQuery project has one of the most enthusiastic and supportive communities on the Net and its important to ensure that every jQuery developer feels like the project team is listening to their concerns. We've certainly heard you and will be working to improve selector speeds in the near future. Thanks for all the feedback and support. Rey jQuery Project Team -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com -- BrightLight Development, LLC. 954-775- (o) 954-600-2726 (c) [EMAIL PROTECTED] http://www.iambright.com -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com