[jQuery] Re: 2 forms

2008-11-20 Thread Charlie Griefer
On Thu, Nov 20, 2008 at 3:33 PM, Mike Alsup [EMAIL PROTECTED] wrote: form id=form1.../form form id=form2.../form how would i do a form submit? $('#form2).submit(); is not the correct syntax. what is the correct syntax? thanks Yes, that is the correct syntax. Do you have more

[jQuery] Re: 2 forms

2008-11-20 Thread Charlie Griefer
can you post your code to http://pastebin.com/ ? the syntax looks correct, and as long as form2 is a unique ID on the page, it should work (as Mike stated). something else is amiss. On Thu, Nov 20, 2008 at 3:44 PM, fa fa [EMAIL PROTECTED] wrote: no, the forms have unique id's. i've checked

[jQuery] Re: anchor text

2008-11-20 Thread Charlie Griefer
On Thu, Nov 20, 2008 at 4:18 PM, Arman [EMAIL PROTECTED] wrote: a simple one i can't seem to find. I need to change an achors text... I can change the href but not the 'changeme' a href=#changeme/a thank you. http://docs.jquery.com/Attributes/text -- I have failed as much as I have

[jQuery] Re: 2 forms

2008-11-20 Thread Charlie Griefer
On Thu, Nov 20, 2008 at 3:55 PM, Mike Alsup [EMAIL PROTECTED] wrote: i've checked online tutorials, and with 1 form, i can do $('form').submit()... but for some reason, i cannot do something like $('#form2').submit() Maybe you could post an example page for us. There is no difference

[jQuery] Re: How can i do Image rollover with simple gamma change?

2008-11-24 Thread Charlie Griefer
http://www.linn-bad.no/design/plain/js/linn-bad.js On Mon, Nov 24, 2008 at 4:03 PM, expat101 [EMAIL PROTECTED] wrote: hi, thanks for all the replies how can i achieve something like here http://www.linn-bad.no/ the 9 thumbs rollover with increased gamma cheers On Nov 25, 8:58 am,

[jQuery] Re: formatting splitting the response from the server using jquery syntax

2008-11-25 Thread Charlie Griefer
On Tue, Nov 25, 2008 at 2:12 PM, Sean [EMAIL PROTECTED] wrote: Hi There, I'm getting a response back from a .net page. The response looks like this and is variable in length. What is the best way to handle this on the client using jquery syntax? Sean {first: slideshow/52/2.jpg,second:

[jQuery] Re: plug-in questions

2008-11-25 Thread Charlie Griefer
On Tue, Nov 25, 2008 at 2:33 PM, lukas [EMAIL PROTECTED] wrote: I am a bit confused with all the possibilities! I am looking for cross- browser plug-ins for tabbing vertical accodion flexible pop-ups (thickbox, lightbox, facebox,...) which you also can use for forms or a gallery.

[jQuery] Re: Selector Help

2008-11-25 Thread Charlie Griefer
On Tue, Nov 25, 2008 at 3:28 PM, Jason [EMAIL PROTECTED] wrote: Code: fieldset a href= class=link/a /fieldset fieldset a href= class=link/a /fieldset fieldset a href= class=link/a /fieldset When a link is clicked, I would like to be able to reference the particular parent

[jQuery] Re: Executing multiple actions on the same selection

2008-11-28 Thread Charlie Griefer
yes. jQuery supports method chaining. $(a).hide().addClass(); see Chainability at http://docs.jquery.com/How_jQuery_Works On Fri, Nov 28, 2008 at 12:26 PM, flycast [EMAIL PROTECTED] wrote: In some other languages I have had experience with one can use the following pattern... object [

[jQuery] Re: quote standards

2008-11-28 Thread Charlie Griefer
i generally use single quotes unless i'm explicitly setting a string. so.. var foo = the quick brown fox...; but when inside of parentheses, i always wrap strings in single quotes. On Fri, Nov 28, 2008 at 1:28 PM, Bill [EMAIL PROTECTED] wrote: I've wondered about this myself. I seem to go

[jQuery] Re: load external html file using j query.

2008-11-29 Thread Charlie Griefer
On Sat, Nov 29, 2008 at 5:33 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: Dear All, i kind new to j query, Ive been using gray box successfully for a while but i think it time to find something better. ive been trying to figure out how to load a (by using a href ) external html file from

[jQuery] Re: ui.jquery.com - down?

2008-12-01 Thread Charlie Griefer
On Mon, Dec 1, 2008 at 8:45 AM, Mike Alsup [EMAIL PROTECTED] wrote: Welcome to Google's API Loader script type=text/javascript src=http://www.google.com/jsapi;/ script script type=text/javascript google.load(jquery, 1.2.6); google.load(jqueryui, 1.5); /script If you link

[jQuery] Re: ui.jquery.com - down?

2008-12-01 Thread Charlie Griefer
PROTECTED] wrote: See http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery http://code.google.com/apis/ajaxlibs/documentation/index.html#jqueryUI They advertise those direct urls, as well as others. - Richard On Mon, Dec 1, 2008 at 12:19 PM, Charlie Griefer [EMAIL

[jQuery] Re: Simple way to suppress display of title attribute on hover?

2008-12-01 Thread Charlie Griefer
On Mon, Dec 1, 2008 at 3:52 PM, René [EMAIL PROTECTED] wrote: I sometimes use the title attribute in DIVs to store data. Normally, it displays on mouseover. Just wondering what a best practice to suppress that. ...Rene http://marcgrabanski.com/article/5-tips-for-better-jquery-code see

[jQuery] Re: IE6 is not animating the menus and a bunch of JS errors

2008-12-03 Thread Charlie Griefer
not really applicable to the jquery specific question, but as far as debugging JS in IE, have a look at http://www.debugbar.com/ On Wed, Dec 3, 2008 at 10:54 AM, conticreative [EMAIL PROTECTED]wrote: I really need someone's help here. I installed Superfish on a Joomla 1.5 website and it's

[jQuery] Re: selector question

2008-12-04 Thread Charlie Griefer
On Thu, Dec 4, 2008 at 9:56 AM, clorentzen [EMAIL PROTECTED] wrote: I'm trying to hide all the contents from tds within a table *except* for the first td in each tr... I don't want to hide the tds, just their contents, but I'm having trouble finding the correct selector(s) to accomplish

[jQuery] Re: selector question

2008-12-04 Thread Charlie Griefer
On Thu, Dec 4, 2008 at 10:28 AM, Charlie Griefer [EMAIL PROTECTED]wrote: On Thu, Dec 4, 2008 at 9:56 AM, clorentzen [EMAIL PROTECTED]wrote: I'm trying to hide all the contents from tds within a table *except* for the first td in each tr... I don't want to hide the tds, just their contents

[jQuery] Re: xml find element with this attribute value

2008-12-09 Thread Charlie Griefer
I haven't seen the codylinley.com one yet, but i *love* the how-to-get-anything-you-want-part-1 (and it's sequel). just wanted to say thanks for that. um... thanks! :) On Tue, Dec 9, 2008 at 5:57 PM, Karl Swedberg [EMAIL PROTECTED] wrote: :) Here are a couple other resources that you might

[jQuery] Re: JQuery is really a nice tool

2008-12-12 Thread Charlie Griefer
you sure? On Fri, Dec 12, 2008 at 10:30 AM, Sid harshal...@gmail.com wrote: Just look at this URL http://googlelance.com You see the login and button click on it then you find that a pop up appears in middle of your page for login that is done with Jquery -- I have failed as much as

[jQuery] Re: radio value on submit

2008-12-12 Thread Charlie Griefer
var tran = $(input:radio[name='transmission']:checked).val(); On Fri, Dec 12, 2008 at 1:48 PM, Chiste chi...@gmail.com wrote: I have a problem here. No matter which radio a click, I'm always getting the value of the firts one. How could I get the value of the selected radio? labelinput

[jQuery] Re: JQuery is really a nice tool

2008-12-12 Thread Charlie Griefer
yeah, i'm guessing this was little more than just some spam for the URL in question. On Fri, Dec 12, 2008 at 5:21 PM, Geuis geuis.te...@gmail.com wrote: Ok, there's no freaking jquery on that page. More so, the html of the page is absolutely HORRIBLE. Right-click disabled. Html above the

[jQuery] Re: [autocomplete] Options

2008-12-15 Thread Charlie Griefer
On Mon, Dec 15, 2008 at 9:55 AM, Samuel Santos sama...@gmail.com wrote: Where can I find a complete list of all the available options of the jQuery Autocomplete plugin? assuming you're using the following plugin - http://www.dyve.net/jquery/?autocomplete :

[jQuery] Re: Why won't this work?

2008-12-15 Thread Charlie Griefer
hides it for me. you may have something else going on in the page? another element with the same ID? some other conflict? run just the code that you posted in the original message (nothing else) and you should see it work. On Mon, Dec 15, 2008 at 6:23 PM, Rick Faircloth

[jQuery] Re: Why won't this work?

2008-12-15 Thread Charlie Griefer
still workin' fine for me. http://charlie.griefer.com/code/rick.cfm On Mon, Dec 15, 2008 at 6:30 PM, Rick Faircloth r...@whitestonemedia.comwrote: Yeah, there's plenty of other code running. Here's what's on the page…see anything that conflicts? -- I have failed as much as I have

[jQuery] Re: Why won't this work?

2008-12-15 Thread Charlie Griefer
*From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On Behalf Of *Charlie Griefer *Sent:* Monday, December 15, 2008 9:36 PM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] Re: Why won't this work? still workin' fine for me. http://charlie.griefer.com/code/rick.cfm

[jQuery] Re: Why won't this work?

2008-12-15 Thread Charlie Griefer
on reply to this paste you can edit the code and it'll put your version in the line that you can see if you click on show paste tree. Rick *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On Behalf Of *Charlie Griefer *Sent:* Monday, December 15, 2008 9:48 PM

[jQuery] Re: Why won't this work?

2008-12-15 Thread Charlie Griefer
it. *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On Behalf Of *Charlie Griefer *Sent:* Monday, December 15, 2008 11:01 PM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] Re: Why won't this work? but if you go here: http://www.wsm-dev.com/wsm-dev

[jQuery] Re: Why won't this work?

2008-12-16 Thread Charlie Griefer
rick: have you tried putting the: $(document).ready(function(){ $('#emailError').hide(); }); on the index.cfm page? i believe i just read something that indicated that the ajax page load will be part of the document that it is loading within. On Mon, Dec 15, 2008 at 9:07 PM, Charlie Griefer

[jQuery] Re: how to get form data

2009-01-05 Thread Charlie Griefer
'name' is a valid attribute for the form tag. you can access a specific form on a page via document.forms['formName'] (pre-jQuery, of course) :) your point remains, however, an id attribute would indeed make referencing it easier ('#myFormID'). On Mon, Jan 5, 2009 at 11:18 AM, brian

[jQuery] Re: How to make this work for multiple elements with same class

2009-01-13 Thread Charlie Griefer
what about a return false; in the js method itself? $(this).parent().next().next().fadeIn(500); return false; hopefully somebody can elaborate, but i'd heard that using the javascript pseudo-protocol isn't really... proper? On Tue, Jan 13, 2009 at 1:35 PM, Miloš Rašić milos.ra...@gmail.com

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-13 Thread Charlie Griefer
FWIW, Danny Goodman's JavaScript Bible was the JS book that made the light go on over my head (as far as JS is concerned). I'd also maybe recommend picking up one of the jQuery books. I've not read either of the two yet, but Manning publishes one and IMO their stuff is top notch. On Tue, Jan

[jQuery] Cluetip and Firefox 3.0.5

2009-01-13 Thread Charlie Griefer
Hi all... Been using the cluetip plugin (very cool... thanks to all the contributors) without a hitch. Updated to firefox 3.0.5 and it seems to have stopped working. Still works in IE, so that rules out pathing and other issues... but in FF 3.0.5, when I hover over an image that should invoke a

[jQuery] Re: Cluetip and Firefox 3.0.5

2009-01-13 Thread charlie griefer
nevermind... Karl was kind enough to let Matt Quackenbush out of timeout... he viewed my page in FF 3.0.5 and saw the cluetips. Something must be off with my FF install (can't imagine what tho...). Sorry for the false alarm :) On Jan 13, 10:50 pm, Charlie Griefer charlie.grie...@gmail.com wrote

[jQuery] Re: Cluetip and Firefox 3.0.5

2009-01-13 Thread Charlie Griefer
, Jan 13, 2009 at 10:52 PM, charlie griefer charlie.grie...@gmail.com wrote: nevermind... Karl was kind enough to let Matt Quackenbush out of timeout... he viewed my page in FF 3.0.5 and saw the cluetips. Something must be off with my FF install (can't imagine what tho...). Sorry

[jQuery] Re: In this code, what would $(this) in the success part refer to?

2009-01-14 Thread Charlie Griefer
but educating someone in how to ask a good question really -is- helping them :) http://www.catb.org/~esr/faqs/smart-questions.html On Wed, Jan 14, 2009 at 4:24 AM, donb falconwatc...@comcast.net wrote: I don't know what can be more discouraging that the standard 'use google' or 'that

[jQuery] Re: Smooth page auto scrolling - how to they do this?

2009-01-15 Thread Charlie Griefer
view the source. it's jquery. in the behaviour.js file: $('#nav a').add('a.scroll').click(function () On Thu, Jan 15, 2009 at 4:36 PM, Nico nicope...@gmail.com wrote: I'm very impressed by this website http://www.blackestate.co.nz/ Does anyone know a jquery plugin that would allow that

[jQuery] Re: Would someone pleae tell me what's wrong with this syntax?

2009-01-24 Thread Charlie Griefer
count your opening parentheses versus closing parentheses. On Sat, Jan 24, 2009 at 10:32 AM, Rick Faircloth r...@whitestonemedia.comwrote: Hi, all... I keep getting this error from Firebug: syntax error .trigger('change'); \n for this code: $(document.ready(function() {

[jQuery] Re: Turning JSON-formatted AJAX data into data usable by ColdFusion

2009-02-04 Thread Charlie Griefer
you're overlooking the fact that CF executes on the server. JS executes on the client. When you get data returned from an AJAX call, you're on the client. You're in the realm of JS. There's no converting the data into a usable (CF) format at that point. All of the CF is done on the server

[jQuery] Re: Turning JSON-formatted AJAX data into data usable by ColdFusion

2009-02-04 Thread Charlie Griefer
approach…perhaps it's just time to shelve AJAX and go back to regular CF code for awhile. Thoughts? Thanks, Rick *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On Behalf Of *Charlie Griefer *Sent:* Wednesday, February 04, 2009 11:23 AM *To:* jquery

[jQuery] Re: Turning JSON-formatted AJAX data into data usable by ColdFusion

2009-02-04 Thread Charlie Griefer
if any bells ring or lights come on! Rick *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On Behalf Of *Charlie Griefer *Sent:* Wednesday, February 04, 2009 12:00 PM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] Re: Turning JSON-formatted AJAX data

[jQuery] Re: What is difference between ADO and RDO

2009-02-05 Thread Charlie Griefer
On Thu, Feb 5, 2009 at 8:57 PM, Agile Consulting agile.scrapp...@gmail.comwrote: Explain ADO and RDO http://letmegooglethatforyou.com/?q=ado%20rdo -- I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.

[jQuery] Re: What is difference between ADO and RDO

2009-02-05 Thread Charlie Griefer
heh... i searched google, but searched the web. didn't search groups :) On Thu, Feb 5, 2009 at 10:36 PM, Michael Geary m...@mg.to wrote: And let me Google *that* for you: http://groups.google.com/groups?q=agile.scrapping%40gmail.com -Mike -- *From:* Charlie

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-12 Thread Charlie Griefer
just worked fine for me in chrome. also, it's not brandon's link. the site that's hosting the code is github. in either case... it works fine. feel free to grab it from http://charlie.griefer.com/brandonaaron-jquery-expandable.zip On Thu, Feb 12, 2009 at 3:42 PM, Rick Faircloth

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-12 Thread Charlie Griefer
script src=/path/to/jquery-1.2.6.min.js/script script src=/path/to/jquery.expandable.js/script script language=JavaScript type=text/javascript $(function() { $('#myTextarea').expandable(); }); /script textarea id=myTextarea/textarea On Thu, Feb 12, 2009 at 4:03 PM, Rick Faircloth

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-13 Thread Charlie Griefer
see my reply 2 messages ago On Fri, Feb 13, 2009 at 1:34 AM, Rick Faircloth r...@whitestonemedia.comwrote: Thanks for the tip, Ricardo! Do you, by any chance, know the HTML involved in using Brandon's plugin? I couldn't find any usage examples to see how the syntax should be handled. Or

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-13 Thread Charlie Griefer
you resend? Thanks, Rick *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On Behalf Of *Charlie Griefer *Sent:* Friday, February 13, 2009 4:36 AM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] Re: Is there a way to make a textarea that auto expands

[jQuery] Re: How to surround All content after a specified HTML attribute H2?

2009-02-19 Thread Charlie Griefer
On Thu, Feb 19, 2009 at 9:27 AM, cchun...@gmail.com cchun...@gmail.comwrote: I am trying to look through content in a div and if i find an H2 or whatever attribute the content or HTML that follows it will be encloded in a div with a class. I will do this for every H2 so if i have 3 H2's and

[jQuery] Re: How to surround All content after a specified HTML attribute H2?

2009-02-19 Thread Charlie Griefer
actually i should clarify... not change, but wrap the elements following h2 elements with the specified HTML. On Thu, Feb 19, 2009 at 10:00 AM, Charlie Griefer charlie.grie...@gmail.com wrote: On Thu, Feb 19, 2009 at 9:27 AM, cchun...@gmail.com cchun...@gmail.comwrote: I am trying to look

[jQuery] Re: How to surround All content after a specified HTML attribute H2?

2009-02-19 Thread Charlie Griefer
...@gmail.comwrote: Ok i have tried $('.tabs h2').next().wrapAll('div class=tabbody/div'); but it does not want to wrap all the paragraphs/tables/html in the one div. Any ideas? Thanks for the help! On Feb 19, 12:21 pm, Charlie Griefer charlie.grie...@gmail.com wrote: actually i should

[jQuery] Re: How to surround All content after a specified HTML attribute H2?

2009-02-19 Thread Charlie Griefer
); } }); return this.pushStack( match, arguments ); }; then you can do this: $('h2').each(function(){ $(this).nextUntil('h2').wrapAll('div class=contents /'); }); cheers, - ricardo On Feb 19, 8:21 pm, Charlie Griefer charlie.grie...@gmail.com wrote: No answer yet. I've tried playing

[jQuery] Re: Striping Sometimes Doesn't Work

2009-02-19 Thread Charlie Griefer
On Thu, Feb 19, 2009 at 5:29 PM, MauiMan2 cmzieba...@gmail.com wrote: The following code snippet: $('OL.codeSample LI:even').addClass('even'); is working on one of my sites to zebra striping to list items but is not working on another one even though both have jQuery 1.2.6 in place. The

[jQuery] Re: Cleaning the code

2009-03-11 Thread Charlie Griefer
On Wed, Mar 11, 2009 at 1:26 PM, angelo.perazz...@gmail.com angelo.perazz...@gmail.com wrote: In essence, this is a page with 6 links and 6 initially hidden div. By clicking on a link, the div appears relevant, it disappears by clicking on the link again thanks to fadeToggle function. By

[jQuery] Re: How to pick elements by id, if id includes [ and ] symbols?

2009-03-12 Thread Charlie Griefer
On Thu, Mar 12, 2009 at 9:27 AM, last_elf chernik...@gmail.com wrote: Hello! I have some element (input type=text .. , or td.. ) with id = ph_number[289]; How can I pick it by ID ? $('#ph_number[289]') returns zero-sized object.

[jQuery] Re: Change background of table row based on column's value

2009-03-12 Thread Charlie Griefer
disclaimer: n00bie code (seems to work, but might not be particularly elegant) :) $(function() { $('.numericColumn').each(function() { if ($(this).text() 90) $(this).parent().css('backgroundColor', 'red'); }); }); On Thu, Mar 12, 2009 at 12:33 PM, Lars lar...@gmail.com wrote: I am totally

[jQuery] Re: How do you iterate across elements with the same class name?

2009-03-20 Thread Charlie Griefer
On Fri, Mar 20, 2009 at 9:48 AM, Thierry lamthie...@gmail.com wrote: I have a bunch of hyperlinks with class 'hello_world'. I want to assign each one of them a random colour. I can set the colour for all of them with the following: $(a[class=hello_world]).css(color, red); How can I

[jQuery] Re: Select elements with a prefix for id

2009-03-31 Thread Charlie Griefer
On Tue, Mar 31, 2009 at 8:30 PM, iceangel89 iceange...@gmail.com wrote: how can i select all elements with a prefix of Lab i have textboxes with ids like Lab1, Lab2, Lab3 ... $(textarea[id^='Lab']) http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue -- I have failed as

[jQuery] Re: inserting commas into a price value

2009-04-02 Thread Charlie Griefer
nice! :) um... err... I've actually got a need to take a 10 digit number and convert it to US phone format (e.g. 99 becomes (999) 999-). Any chance of whipping that up? :) I did look at the plugin you just posted, thinking I could tweak it to fit my needs. But it's a bit over my

[jQuery] Re: inserting commas into a price value

2009-04-02 Thread Charlie Griefer
Thank you kindly. I'll be implementing that this evening :) On Thu, Apr 2, 2009 at 11:33 AM, mkmanning michaell...@gmail.com wrote: For the phone, you can just do a regex: var p = '99'; p.replace(/(\d{3})(\d{3})(\d{4})/, ($1) $2-$3) On Apr 2, 11:18 am, Charlie Griefer

[jQuery] Re: Is there a way to get a link to submit like a button?

2009-04-03 Thread Charlie Griefer
On Fri, Apr 3, 2009 at 3:15 PM, Rick Faircloth r...@whitestonemedia.comwrote: I’d prefer to use a link, rather than a button, but I can’t get the link to submit a form in the same way a button does. I think it’s that the link is using “get” instead of “post”, but I don’t know how to

[jQuery] Re: Checkbox selector not working

2009-04-07 Thread Charlie Griefer
On Tue, Apr 7, 2009 at 8:48 AM, Chandra cank...@gmail.com wrote: Hi Guys I am new to jQuery... I am trying to get all the checkboxes checked in the form $(inp...@name^=ddcommercialtypes_check][type='checkbox'] [checked='true']).each(function() { checkedBoxes1 += , +

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Charlie Griefer
session variables are stored on the server, and therefore can persist across multiple requests. JavaScript variables don't really persist beyond a single page request (AJAX notwithstanding). You can set global JS variables that any script block or function on -that- particular page request can

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Charlie Griefer
On Tue, Apr 7, 2009 at 2:43 PM, Rick Faircloth r...@whitestonemedia.comwrote: But, oh well…not all languages can measure up to ColdFusion. ;o) Apples and oranges. One is a server-side language, one is a client-side language. A client-side language, inherent to its very nature, has certain

[jQuery] Re: How do I access global variables for id's, etc.?

2009-04-07 Thread Charlie Griefer
, I know…it was a joke! Did you catch the ;o) ? *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On Behalf Of *Charlie Griefer *Sent:* Tuesday, April 07, 2009 5:48 PM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] Re: How do I access global variables for id's, etc

[jQuery] Re: Checking if a form element is disabled or not

2009-04-07 Thread Charlie Griefer
jquery uses getters and setters a la: GET the disabled attribute: attr('disabled'); // value to get SET the disabled attribute: attr('disabled', 'disabled'); // value to set, value to set it to so you're explicitly setting the disabled attribute to 'true' with your code. if

[jQuery] Re: Checking if a form element is disabled or not

2009-04-07 Thread Charlie Griefer
to hide it and show the other fields so as to not confuse the user. Am I missing something here as to how the js is called when the page is refreshed / re-rendered like this? Thanks. On Apr 8, 1:35 am, Charlie Griefer charlie.grie...@gmail.com wrote: jquery uses getters and setters a la

[jQuery] Re: Newbie help on Radio select

2009-04-08 Thread Charlie Griefer
On Wed, Apr 8, 2009 at 7:14 AM, TC inscr...@gmail.com wrote: Hi all, I'm new to Jquery and I have a problem I'd like to ask. I've followed a code snippet online to add a background color to a table column, but my problem is that when the 2nd row is selected, the 1st row disappears. How can

[jQuery] Re: Why won't these values work for an ajax function?

2009-04-08 Thread Charlie Griefer
view the source of the generated page and paste the mSaveSection() here. On Wed, Apr 8, 2009 at 1:01 PM, Rick Faircloth r...@whitestonemedia.comwrote: Here’s the code: function mSaveSection() { datavalues = { dsn: ‘cfoutput#application.dsn#/cfoutput’,

[jQuery] Re: Why won't these values work for an ajax function?

2009-04-08 Thread Charlie Griefer
and method worked find. AJAX throws so many curves…it’s hard to hit the ball! Thanks for responding… Rick *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On Behalf Of *Charlie Griefer *Sent:* Wednesday, April 08, 2009 4:05 PM *To:* jquery-en@googlegroups.com

[jQuery] Re: How do get the ID of an element that has been clicked ?

2009-04-10 Thread Charlie Griefer
On Fri, Apr 10, 2009 at 5:46 PM, thought thou...@orcon.net.nz wrote: Given this code: DIV id=div_one/DIV DIV id=div_two/DIV DIV id=div_three/DIV DIV id=div_four/DIV Lets say that the user is invited to click one one of these divs. How do I get the id of the div that was clicked ?

[jQuery] Re: How to run cf regex (or regular regex) on this code?

2009-04-18 Thread Charlie Griefer
why not run the replace in the CF function that's returning the data? On Sat, Apr 18, 2009 at 6:12 PM, Rick Faircloth r...@whitestonemedia.com wrote: Normally, when I'm trying to cause a passage of text to respond to line breaks, I use this ColdFusion code: #replace(myText, '#chr(13)#',

[jQuery] Re: How to run cf regex (or regular regex) on this code?

2009-04-18 Thread Charlie Griefer
where or how I can run the replace function on the individual pieces of sss.section_text data in the query result or the struct... ??? On Sat, Apr 18, 2009 at 9:15 PM, Charlie Griefer charlie.grie...@gmail.com wrote: why not run the replace in the CF function that's returning the data? On Sat

[jQuery] Re: How to run cf regex (or regular regex) on this code?

2009-04-19 Thread Charlie Griefer
On Sun, Apr 19, 2009 at 3:58 PM, Rick Faircloth r...@whitestonemedia.com wrote: That worked, Ricardo...to a point. (Haven't tried your solution, Charlie...) I actually just embedded the replace function in the code like this: out.push('div id=sectionTextDIV' + row[4].replace(/\r?\n/, 'br/')

[jQuery] Re: How to run cf regex (or regular regex) on this code?

2009-04-19 Thread Charlie Griefer
, and may be slower than using the replace in the JS. I just wanted to see how it performed. Now, I think it's about bedtime for someone ;o) Rick On Sun, Apr 19, 2009 at 7:22 PM, Charlie Griefer charlie.grie...@gmail.com wrote: On Sun, Apr 19, 2009 at 3:58 PM, Rick Faircloth r

[jQuery] Re: Simple next/prev controls for select

2009-04-28 Thread Charlie Griefer
On Tue, Apr 28, 2009 at 1:56 PM, René renefourn...@gmail.com wrote: Assuming: select id=selector option value=0 selected=selectedBoth/option option value=1Red/option option value=2Blue/option option value=3Green/option /select a id=prevPrev/a a id=nextNext/a Just wondering if

[jQuery] Re: Grabbing text inside an alt tag

2009-04-29 Thread Charlie Griefer
On Wed, Apr 29, 2009 at 3:17 PM, Andy adharb...@gmail.com wrote: Is there a way to grab the text from inside a alt tag?  I have a site that will have tons of span tags and I need to go through all of them searching for the alt= attribute then grab it. I'm using some non-jQuery javascript,

[jQuery] Re: How to get an array of values?

2009-05-06 Thread Charlie Griefer
On Wed, May 6, 2009 at 10:20 AM, hellolindsay hellolind...@gmail.com wrote: Let's say I want an array of all the values for checked checkboxes on my page. How do I do this? This: $('input:checkbox:checked').val() ..only returns the first value. Is there a function that will return a

[jQuery] Re: img tag wrap in p tags

2009-05-07 Thread Charlie Griefer
On Thu, May 7, 2009 at 8:08 PM, dduck1934 dduck1...@gmail.com wrote: im trying to get the syntax down to find all img tags that are NOT surrounded by p tags and wrap those img tags in p tags. I can get the selector to get all img tags and wrap it in a p tag but i need to further take it to

[jQuery] Re: Dynamic underlining for links on a page

2009-05-09 Thread Charlie Griefer
On Sat, May 9, 2009 at 4:41 AM, naz nazimja...@gmail.com wrote: Hello all, probably a simple question but I can't for the life of me figure out how to do this: I have a page that has information on various # anchors, a list of them are at the top and once clicked I need the one clicked to

[jQuery] Re: Get ID

2009-05-27 Thread Charlie Griefer
is that going to be the only element with the class name test? since only the second part of the id is dynamic, you could also do: $('div[id^=menu_]') to reference the element On Wed, May 27, 2009 at 10:24 PM, waseem sabjee waseemsab...@gmail.comwrote: var myID = $(.test).attr(id);

[jQuery] Re: Get ID

2009-05-28 Thread Charlie Griefer
script type=text/javascript $(function() { $('div[id^=menu_]').each(function() { alert(this.id); }); }); /script On Thu, May 28, 2009 at 10:56 AM, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: There are going to be multiple .test on the page

[jQuery] Re: what is the correct way to test 'display' value in jQuery?

2009-06-17 Thread Charlie Griefer
On Wed, Jun 17, 2009 at 6:02 PM, Jake Barnes lawrence.krub...@gmail.comwrote: This code works, but it seems inelegant: if ($(#subnav-1)[0].style.display == block) $(#subnav-1) [0].style.display = none; This seems to violate The One True jQuery Way: [0] I assume I'm not suppose to do

[jQuery] Re: Jquery pagination using ColdFusion and SQL Server and lots of records

2009-06-18 Thread Charlie Griefer
... or http://paginationcfc.riaforge.org/ On Thu, Jun 18, 2009 at 10:31 AM, Michael Ennis mik...@pttracker.comwrote: Hi there! Is there any reason you don't want to just use CF to handle all the pagination? Here's a good example... http://tutorial405.easycfm.com/ Mike On Thu, Jun 18,

[jQuery] Re: Ajax tooltips using jQuery?

2009-06-23 Thread Charlie Griefer
There are a brazillian tooltip plugins for jQuery. have you googled -jquery tooltip- ? At the moment, I lean towards liking qTip the best. http://craigsworks.com/projects/qtip/ On Tue, Jun 23, 2009 at 6:18 AM, Nick Drew nickxd...@gmail.com wrote: Hi guys, I'm after an ajax tooltip to use

[jQuery] Re: Please unsubscribe me

2009-06-24 Thread Charlie Griefer
On Wed, Jun 24, 2009 at 9:23 AM, BlueOysterCult st...@michaelsondesign.comwrote: Im not sure how to not get these emails anymore http://groups.google.com/group/jquery-en click edit my membership -- I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish

[jQuery] Re: How to break out of jQuery function?

2009-06-24 Thread Charlie Griefer
First off... there are no dumb questions :) Glad you got it sorted. But would it maybe be a little more efficient to do: if (href !=) { $('#content').html($(href).html()); } since you're not doing anything on the other condition (href being blank), no need for the 'else'? I realize you

[jQuery] Re: Initial Setup

2009-07-03 Thread Charlie Griefer
On Fri, Jul 3, 2009 at 8:51 AM, Andrew m...@andrewcampbell.us wrote: I'm new to JavaScript -- and cannot get jQuery to work (unless I access http://code.jquery.com/jquery-latest.js) Is this permissible, or do I have to download jquery.js to my server? If not, I have other questions: * my

[jQuery] Re: Add icons to your links automatically

2009-07-15 Thread Charlie Griefer
On Wed, Jul 15, 2009 at 1:41 PM, Jacques Choquette - WhistlerGraphicDesign.com j...@whistlergraphicdesign.com wrote: HI there I am using the working with the following script Add icons to your links automatically using jQuery CSS

[jQuery] Re: Add icons to your links automatically

2009-07-15 Thread Charlie Griefer
On Wed, Jul 15, 2009 at 1:47 PM, Charlie Griefer charlie.grie...@gmail.comwrote: On Wed, Jul 15, 2009 at 1:41 PM, Jacques Choquette - WhistlerGraphicDesign.com j...@whistlergraphicdesign.com wrote: HI there I am using the working with the following script Add icons to your links

[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Charlie Griefer
this.id On Mon, Aug 10, 2009 at 11:48 AM, Erich93063 erich93...@gmail.com wrote: I have a listing of records on a page and an Edit button for each record. I want to write some jquery that fires when the button is clicked to go to the edit page for the record whose button I clicked. Here is

[jQuery] Re: Get the ID of a button that is clicked

2009-08-10 Thread Charlie Griefer
somewhere else. That worked. THANKS! On Aug 10, 11:50 am, Charlie Griefer charlie.grie...@gmail.com wrote: this.id On Mon, Aug 10, 2009 at 11:48 AM, Erich93063 erich93...@gmail.com wrote: I have a listing of records on a page and an Edit button for each record. I want to write some

[jQuery] Re: Simple Question with Clone() and Append()

2009-08-18 Thread Charlie Griefer
As per the docs (http://docs.jquery.com/Manipulation/append#content), append() appends content to the *inside* of every matched element. You can try appending to the current matched element's parent, or try the after() method (http://docs.jquery.com/Manipulation/after#content) On Tue, Aug 18,

[jQuery] Re: How to find active hyperlinks?

2009-08-20 Thread Charlie Griefer
an active link is one that has received a click. so you can do: $('a').click(function() { $(this).doSomethingHere // 'this' is a reference to the element that triggered the click }); does that help? On Thu, Aug 20, 2009 at 3:30 PM, Dennis Madsen den...@demaweb.dk wrote: I've this CSS

[jQuery] Re: How to find active hyperlinks?

2009-08-20 Thread Charlie Griefer
=contact.htmlContact/a /div Since I'm on the index.html-page, the first a-tag is active in CSS. I would like jQuery to give my the active a-tag in my menu-div. Hope you understand my problem now. On Aug 21, 12:33 am, Charlie Griefer charlie.grie...@gmail.com wrote: an active link is one that has

[jQuery] Re: handling of click event?

2009-08-21 Thread Charlie Griefer
$(this).attr('href') http://docs.jquery.com/Attributes On Fri, Aug 21, 2009 at 3:53 PM, Audrey A Lee audrey.lee.is...@gmail.comwrote: jQuery People, Suppose I have this syntax: $(a.someLinks).click(function(event){tellme();}); I want tellme() to handle the value of href of the clicked

[jQuery] Re: Easy SELECT question for newbie

2009-08-30 Thread Charlie Griefer
#3 errors because as of jQuery 1.3, the use of the @ symbol is deprecated. $('input[id$=ckKyW]') -- all input elements with an id attribute that ENDS WITH 'ckKyW' see the Attribute Filters section of http://docs.jquery.com/Selectors On Sun, Aug 30, 2009 at 7:31 AM, gBerger crapper_m...@att.net

[jQuery] Re: Easy SELECT question for newbie

2009-08-30 Thread Charlie Griefer
wrote: Thanks. That did the trick. I actually spent at least a couple of hours on this. embarrassed to say I looked and looked for examples and thought I tried every conceivable example. Thanks again, gBerger On Aug 30, 1:18 pm, Charlie Griefer charlie.grie...@gmail.com wrote: #3

[jQuery] Re: Dissect an ID

2009-08-30 Thread Charlie Griefer
There may be a more elegant way, but until it comes along... you can .split() the string on the _ character. myArray = myString.split('_') which in your case would create an array with element 'thisisadiv' at position 0, and '1' at position 1. you could then reference it via myArray[1] On

[jQuery] Re: Help getting elements name.

2009-09-02 Thread Charlie Griefer
$('input:radio').click(function() { alert(this.name); }); But... as radio buttons, wouldn't they all have the same name? In any event, 'this' (or the jQuery $(this)) will give you a hook into the element that triggered the click. On Wed, Sep 2, 2009 at 12:44 PM, gilberto.ramoso...@gmail.com

[jQuery] Re: How can I manipulate all the radios in one div?

2009-09-02 Thread Charlie Griefer
assuming the particular div has an id=myDiv attribute... $('myDiv input:radio') http://docs.jquery.com/Selectors/descendant#ancestordescendant (the docs are your friend) You could also apply a specific class name to the ones you want to manipulate. But if you don't want to (or can't)

[jQuery] Re: Do I need to include whole JQuery file ?

2009-09-03 Thread Charlie Griefer
On Thu, Sep 3, 2009 at 4:28 AM, Gaurang Mistry gaura...@gmail.com wrote: Hello, I am new to jquery. I am using only hide and show functions. Do I need to include whole jquery file ? Which part of file I need to remove ? I think manipulating the core file in any way is a bad idea. I

  1   2   >