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

2008-12-15 Thread Charlie Griefer
...@whitestonemedia.comwrote: Well…bummer. Works for me, too, when it's on **your** server, Charlie. You've just got the magic touch. Will this entire block run for you with all the other code on there? (Have I coded this properly?) script type=text/javascript $(document).ready(function

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

2008-12-15 Thread Charlie Griefer
, Rick Faircloth r...@whitestonemedia.comwrote: The code on the server has been update now, Charlie. Not working on there, either. http://www.wsm-dev.com/wsm-dev/ajaxlogin2/index.cfm But a successful login now takes me to the site_manager.cfm page thanks to some changes in the code

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

2008-12-15 Thread Charlie Griefer
until you learn it, sure. no different than any other tool. On Mon, Dec 15, 2008 at 9:05 PM, Rick Faircloth r...@whitestonemedia.comwrote: Thanks for the insight, Charlie. It seems there are many considerations when putting Ajax to work…it's going to cause me pain everywhere I deploy

[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
if it is)? Thanks! Charlie -- 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: 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
http://groups.google.com/group/jquery-en/browse_thread/thread/a491baf8ac007588/8dd6c2498b572e5b#8dd6c2498b572e5b On Fri, Feb 13, 2009 at 7:30 AM, Rick Faircloth r...@whitestonemedia.comwrote: Hi, Charlie… For some strange reason, your reply didn't show up here, as with Ricardo's. Can

[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
. Just curious about what was going on there. the nextUntil looks -very- cool. Thanks, Charlie On Thu, Feb 19, 2009 at 4:59 PM, Ricardo Tomasi ricardob...@gmail.comwrote: You can't insert invalid HTML into the DOM. Use the nextUntil plugin by John Resig (I'm starting to think this belongs

[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:help to develop my Jquery Accordion

2009-02-22 Thread Charlie Tomlinson
you haven't explained what the problem is have you a link to look at? lock2007 wrote: Hi, I tried for a few days to have a code "JQuery Accordion" for my menu as it is used in the Apple site. But I still have problems. So I found another nice code in the address:

[jQuery] Re: jcarousel lite plug in help needed

2009-02-28 Thread Charlie Tomlinson
the problem you are having is CSS . There should be a file of CSS to hold all the components of the carousel together. I looked and didn't see one on site for Lite version read up on CSS. html generates the content but it needs to be displalyed in proper location, color etc with CSS. The

[jQuery] Re: [tooltip] help please

2009-02-28 Thread Charlie Tomlinson
just went through that download today to implement. I ended up grabbing screen.css from project demo site and found some of the tooltip components on there and all works well paulmo wrote: am not getting the stylized popup window (generic yellow box instead). all files in my server root

[jQuery] create table ID's from index

2009-03-01 Thread Charlie Tomlinson
have about 150 html tables ( all same format, headings etc). Trying to assign ID's based on fact they all carry appropriate name in same td index in table. not heavily versed in JS and closest I've come is $("table").each(function(i){ var country_name= $("this tr:eq(1) td:eq(1)

[jQuery] Re: create table ID's from index

2009-03-01 Thread Charlie Tomlinson
reference the table's id in: this.id = country_name +this.id + i; so unless the table already has an id, the second this.id will be undefined. On Mar 1, 10:04pm, Charlie Tomlinson charlie...@gmail.com wrote: have about 150 html tables ( all same format, headings etc). Trying to assign

[jQuery] Re: create table ID's from index

2009-03-01 Thread Charlie Tomlinson
first",this).text(); On Mar 1, 10:49pm, Charlie Tomlinson charlie...@gmail.com wrote: where it stands now, tables have no id's however if i put the variable I'm taking from a td and write it as "country_name" + this.id +i it produces the variable name (not value) with index

[jQuery] Re: Adding additional callbacks to image slides

2009-03-02 Thread Charlie Tomlinson
S3Slider Plugin(JQuery) does what you want,http://www.serie3.info/s3slider/ sharp looking demos too HM-User wrote: I have a number of image slides which are fading in and out and I am also using the pager option (jQuery Cycle). What I want to know however is, is it possible to invoke

[jQuery] Re: Trying to change CSS values for .ui-tabs but....

2009-03-05 Thread Charlie Tomlinson
.ui-state-active a {} this works in firebug on current version of tabs on themeroller page webspee...@gmail.com wrote: I can change the properties that I need to change except the a color of the clicked tab. I've tried many combos, here is what I have. /* Tabs

[jQuery] Re: Trying to add/remove a class when....

2009-03-05 Thread Charlie Tomlinson
input isn't a css "class",, it's a tag with css attributes have you tried ("input").css ()? webspee...@gmail.com wrote: Hey all. I'm trying to add/remove a class and am having trouble. When I add the new class, the color takes hold, but not the changing of the background image. The

[jQuery] Re: How to use the plugins into our project

2009-03-07 Thread Charlie Tomlinson
download plug in, include the script on page, follow plugin API bharani kumar wrote: Assum for example i want this plugin http://plugins.jquery.com/project/Plugins/category/20 Add to list, How to customize this into my work area, Can some one share your ideas,

[jQuery] Re: Need Help with changing css on an object

2009-03-08 Thread Charlie Tomlinson
good case of trying to add a bunch of script when simple css works. Spriting the menu images into one (with or without the text included on each part of image), adding a :hover in css avoids an unnecessary server request for another image and works if scripting disabled

[jQuery] Re: Superfish menu, IE7 bug - menu expands in a flash when changing page

2009-03-08 Thread Charlie Tomlinson
multilevel.css has an unclosed comment mark might be causing a problem /*.nav li:hover ul,ul.nav li.sfHover ul {left:0px;top:2em;} jonasnorlin wrote: Hey all ! I have created a superfish menu for my modx website, based on the exsisting menu: wayfinder.jmultilevel. Note: 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: IE7 (grrr) xml.each not working, help please?

2009-03-21 Thread Charlie Stott
of the information - i'll report back soon. Charlie On Sat, Mar 21, 2009 at 12:46 PM, James james.gp@gmail.com wrote: Sorry, I made a mistake on the code. It's suppose to be: $.get(photos.xml, {}, function(xml) {     xml = text2xml(xml);     // do your stuff } On Mar 20, 4:44 pm, James

[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
you shouldn't need the # signs. cfset foo = #someVar# / and cfset foo = someVar / are functionally equivalent (the second one being more proper). On Wed, Apr 8, 2009 at 1:52 PM, Rick Faircloth r...@whitestonemedia.comwrote: I found the problem, I’m fairly certain, Charlie. In the cfc

[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: Handling html with javascript in .html()

2009-04-15 Thread Charlie Tomlinson
simple solution using your example that works Create a js file "test.js" containing : $('#freediv').html('h1 id="test"test/h1'); $("#test").click(function(){ alert("Bla"); }); I used an a tag in html to click to call the test.js file as follows: script type="text/_javascript_"

[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
at 6:47 PM, Rick Faircloth r...@whitestonemedia.com wrote: Now, Charlie...no need to be so snippy.  :o) Just because I have complaints that JS isn't like CF in some ways, doesn't mean I don't want to grow in my understanding and application of JS. Anyway, your method is a lot more code

[jQuery] finding mouse position within a div with a scrollbar

2009-04-22 Thread Charlie Park
I have a div with an overflow, so it has a scrollbar. The what are my mouse's coordinates tutorials (like this one: http://docs.jquery.com/Tutorials:Mouse_Position) only yield A) the coordinates of the mouse on the page (using e.pageX and e.pageY, or B) the absolute coordinates of the mouse,

[jQuery] Re: finding mouse position within a div with a scrollbar

2009-04-22 Thread Charlie Park
We ended up using scrollTop to determine the amount of the div that was obscured. I'm new to jQuery (and javascript in general), so my code could probably stand to be refactored a bit. But here's the solution we came up with. The relevant structure of the page is: div id=calendar ul

[jQuery] Re: finding mouse position within a div with a scrollbar

2009-04-24 Thread Charlie Park
Marv - I could be mistaken here, but I think your solution's really good so long as the entire sub-element (the DIV or image or whatever) is visible. But if there's a scrollbar on that element, I think your code will only tell you where you clicked in terms of the position on the page (relative

[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: Check if element is shown with show()

2009-08-04 Thread Charlie Tomlinson
or add an "acitve" class when one is opened, then do $("active").hide().removeClass("active") when click another one. Only "active" will be visible rupak mandal wrote: If youassignsame class to all the paragraph. so on clicking on menu you have to hide to the class element and show

[jQuery] Re: jQuery Cycle - Get Current Slide Number

2009-08-05 Thread Charlie Tomlinson
sorry , your next and prev ID's will need to be unique, change them iin new constructor Ed F. wrote: I figured out a way to make the "current slide number" work for multiple slideshows on the same page, but i have to repeat the function declarations for each instance of a slideshow,

[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

[jQuery] Re: Clickable div?

2009-09-04 Thread Charlie Griefer
I don't know that you can use a filter the way you're trying to (using the colon in #logo:a). Filters are more like tr:first (matches the first tr element), tr:odd (matches odd-numbered table rows.. good for zebra-striping)... See the sections about the various types of filters at

[jQuery] Re: Clickable div?

2009-09-04 Thread Charlie Griefer
Oooh good call. I had forgotten :) On Fri, Sep 4, 2009 at 10:20 AM, MorningZ morni...@gmail.com wrote: and don't forget to add the css cursor: pointer to make the user's mouse cursor look like a link On Sep 4, 1:15 pm, Charlie Griefer charlie.grie...@gmail.com wrote: does that div have

[jQuery] Re: Clickable div?

2009-09-04 Thread Charlie Griefer
does that div have an id attribute? if so, $('myDivID').click(function() { do stuff here }); On Fri, Sep 4, 2009 at 10:13 AM, lukas animod...@gmail.com wrote: I have a div that only contains an image. How would I create a jquery-click function that basically would represent a normal a tag

[jQuery] Re: jquery offline Help document

2009-09-06 Thread Charlie Griefer
On Sun, Sep 6, 2009 at 9:22 PM, vipin vipinpaliwal1...@gmail.com wrote: How can i get jquery API offline help document. See http://docs.jquery.com/Alternative_Resources for some options. -- I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my

[jQuery] Re: $(this).css({color : red})

2009-09-12 Thread Charlie Griefer
These both work for me: http://pastebin.com/m3701f681 http://pastebin.com/m62f8b24b On Sat, Sep 12, 2009 at 9:58 AM, Matthew Rolph marine.ro...@gmail.comwrote: http://testingspot.hostcell.net/sandbox/tests/css.jquery.test.html it somehow doesn't work at all not even the css does it matter

<    2   3   4   5   6   7   8   >