[jQuery] Re: Selector Efficiency?

2009-03-02 Thread Josh Rosenthal
; This is a general remark: optimization goes against readability and > flexibility in most cases. > So you have to decide for every project and optimization step, what's > worth more, speed vs. flexibility / scalability vs. readability / > simplicity > > by(e) > Stephan > > &g

[jQuery] Re: Selector Efficiency?

2009-03-01 Thread Josh Rosenthal
t;for (var j=0; jhash[$(names[j]).text()] = $(data[j]).text(); >} >var parcelOutput = 'Parcel ID: ' + >hash['MAP_ID'] + >'' + >'Address: ' + >hash['SITE_ADDRESS']; > > > see my example

[jQuery] Selector Efficiency?

2009-02-18 Thread Josh Rosenthal
So... a question regarding selector efficiency. The following snippet of HTML describes attributes associated with a polygon in an KML. Its basically a table of data, contained as s in s in a . Given this snippet, what would be the best (fastest) way to return the values of MAP_ID and SITE_ADDRES

[jQuery] Re: Selecting a table cell based upon it's header?

2008-12-04 Thread Josh Rosenthal
To answer my own question, yes, I was. jQuery("#myHeaders>th:eq("+idxCol+")").text()); Thanks! On Thu, Dec 4, 2008 at 12:45 PM, Josh Rosenthal <[EMAIL PROTECTED]> wrote: > Basically doing that, though using eq rather than nth-child. However, I > can'

[jQuery] Re: Selecting a table cell based upon it's header?

2008-12-04 Thread Josh Rosenthal
nth child of the row. > > On Thu, Dec 4, 2008 at 11:23 AM, Josh Rosenthal <[EMAIL PROTECTED]> > wrote: > > Hi All, > > Hopefully this is a stupid question, and I just haven't been able to find > > information about it. > > Given a table, with headers

[jQuery] Selecting a table cell based upon it's header?

2008-12-04 Thread Josh Rosenthal
Hi All, Hopefully this is a stupid question, and I just haven't been able to find information about it. Given a table, with headers at the top. I want to loop through the rows of the table (easy), and loop through the elements of each row (easy), and based upon the values of those elements, constr

[jQuery] Re: Image Display with Brightness Control?

2008-10-24 Thread Josh Rosenthal
t; server-side and reloading it. > > > On Oct 23, 2:56 pm, "Josh Rosenthal" <[EMAIL PROTECTED]> wrote: > > Hey Folks, > > So, a project involving allowing users to view scanned photos of historic > > structures has recently run into the problem that some of th

[jQuery] Image Display with Brightness Control?

2008-10-23 Thread Josh Rosenthal
Hey Folks, So, a project involving allowing users to view scanned photos of historic structures has recently run into the problem that some of the photos are a bit dark relative to the originals, with some details being impossible to see in the jpg. When viewed on desktop, this is usually dealt wi

[jQuery] Re: cross domain XML with ajax

2008-09-24 Thread Josh Rosenthal
I'm in much the same boat. I've been using openLayer's python based proxy, but wouldn't mind seeing a more secured php based one, if you'd be willing to post. Of course, I'm currently limited to php4, so I may not be able to use it, but... still curious. Also, phil?, what are you querying again

[jQuery] Re: multiple getJSON calls appear to wait for first response to run any callbacks in FF?

2008-09-17 Thread Josh Rosenthal
more detail, or point me to an similar structure as what you describe? Thanks! josh On Sat, Sep 6, 2008 at 8:36 AM, Rene Veerman <[EMAIL PROTECTED]> wrote: > don't wait for any response, just poll an array of 'open' responses and > handle whichever are ready? > >

[jQuery] multiple getJSON calls appear to wait for first response to run any callbacks in FF?

2008-09-04 Thread Josh Rosenthal
Hey all, I'm building a google map based application which allows users to query a number of different json returning data lookup services (ie: get Tax Parcel for this coordinate... get address, get USGS Quad Name, get Place Name). Each service is activated by clicking a different button, etc. W

[jQuery] a couple jGrowl tweaks

2008-09-03 Thread Josh Rosenthal
Hey Folks, So... faced with the challenge of how to elegantly display query results on top of a google map (queries from assorted data services, such as geonames, etc), I settled on jGrowl. The look was right, the controls were right... just a few things I needed to tweak. I figured I'd post the

[jQuery] Re: Getting name of element in $.each, when used on object?

2008-08-24 Thread Josh Rosenthal
prop in o) > { >    if (i > 0) >       s += '&'; > >    s += prop + '=' + o[prop]; >    ++i;} > > alert(s); > > On Aug 24, 5:12 pm, "Josh Rosenthal" <[EMAIL PROTECTED]> wrote: > > > Hey Folks, > > > Probably a ra

[jQuery] Getting name of element in $.each, when used on object?

2008-08-24 Thread Josh Rosenthal
Hey Folks, Probably a rather basic question here, but my attempts at figuring it out have come to no success. I'm using $.each to loop through the attributes of an object, and write them out into a string. The object contains a series of parameters that will be passed through a url (for a geoser