[jQuery] button with jquery

2009-11-09 Thread Chuck
/$.ajax(ajaxOpts); }); //}); Add a Comment Name: Comment name: message Thanks, Chuck.

[jQuery] (validate) Form needs to be submitted twice

2009-08-03 Thread Chuck
Hello. I have encountered a problem using remote validation where my form does not post until the second time the submit button is clicked. If I remove the remote validation everything works correctly. As it is everything works except that the submit button must be clicked twice. Thank you for

[jQuery] div display help

2009-07-15 Thread chuck
I am having some trouble getting some divs to display dynamically. Can someone please offer a pointer? - function update(x){ var id = x.selectedIndex; var v = x.options[id].value; var f = "test" + v; var c = documen

[jQuery] Re: jquery json

2009-05-31 Thread Chuck Harmston
jQuery actually has built-in methods for loading and parsing JSON. Check out the $.getJSON method, which is actually a wrapper for the $.ajax function with most parameters already handled for you. http://docs.jquery.com/Ajax/jQuery.getJSON http://docs.jquery.com/Ajax/jQuery.ajax Chuck Harmston

[jQuery] Re: How to remove error messages from Validation Plugin

2009-05-12 Thread Chuck Cheeze
Here is an interesting way to do it. In my case, I was using a main error div at the top of the page, so I didn't need the individual label.error elements inline. They kept showing up no matter what I did until I added this to my validation: errorElement: "em" This changes the element that the

[jQuery] Jquery BlockUI plugin doesn't work with IE8

2009-05-10 Thread chuck from seoul
None of the BlockUI plug-in demos (available at http://malsup.com/jquery/block/#demos) work with IE8. Does any one notice this? I am currently testing this with korean version of IE8 on Windows XP platform. answers would greatly be appreciated.

[jQuery] Re: show element if class matches current bod y id (Please help) « View previous topic :: View next topi c » Author

2009-04-18 Thread Chuck Harmston
Hi Matt, Give this a shot: $(document).ready( function(){ $( '#menu ul' ).hide(); $( '#menu li.' + $( 'body' ).attr( 'id' ) + ' ul' ).show(); }); Demo here: http://jsbin.com/ehape Chuck Harmston http://chuckharmston.com On Sat

[jQuery] Re: Function Problem

2009-04-12 Thread Chuck Harmston
d here: http://jsbin.com/udamo Chuck Harmston http://chuckharmston.com On Sun, Apr 12, 2009 at 12:49 PM, djn12313 wrote: > > New to jQuery and trying to port a simple Select-Box-Value-Hides/Shows- > a-Text-Box script from JS to jQuery. I'm sure this must be something > simple

[jQuery] Re: simple query does not work

2009-04-12 Thread Chuck Harmston
I'm not quite sure what you're trying to do here. The $.get() function is used to submit an HTTP GET request. See: http://docs.jquery.com/Ajax/jQuery.get Are you trying to return the first response? Try using $("div#photolinks img:first"). Chuck Harmston http://chuckharmst

[jQuery] Re: jQuery Cycle -- Thumbnail Paging

2009-04-11 Thread Chuck Harmston
Hi Amy, Do the thumbnails follow any naming convention? It wouldn't be terribly difficult to use a callback to replace the standard Cycle pager with thumbnails if we are easily able to determine the thumbnail URLs. Chuck Harmston http://chuckharmston.com On Fri, Apr 10, 2009 at 7:24 AM, am

[jQuery] Re: How to remove error messages from Validation Plugin

2009-04-11 Thread Chuck Harmston
I don't recommend this, as it will stop users from submitting the form without giving them a reason for it. Talk about a usability nightmare. However, if you insist on it, there is a simple enough solution: just use CSS to style the .error class: label.error{display:none} Chuck Harmston

[jQuery] Re: How to select :inp...@type=text] OR :inp...@type=password]

2009-04-09 Thread Chuck Harmston
$('input[type="text"],input[type="password"]') Chuck Harmston http://chuckharmston.com On Thursday, April 9, 2009, Nick Boutelier wrote: > > How do you use an OR statement in a selector function? For example... > > $(':inp...@type=text,passwor

[jQuery] Re: JSON , PHP, MySQL, and jQuery

2009-04-09 Thread Chuck Harmston
Alternatively, you can use jQuery's $.getJSON() function, which automatically parses the JSON data and returns if as a Javascript object. Chuck Harmston http://chuckharmston.com On Thursday, April 9, 2009, donb wrote: > >        $.get("includes/functions_inside.

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

2009-04-07 Thread Chuck Harmston
Heh, duh. document.write(myGlobalVariable)”>xyz That's not best practice, though. You should use DOM scripting to ensure unobtrusive Javascript (see http://www.alistapart.com/articles/behavioralseparation). Chuck Harmston http://chuckharmston.com On Tue, Apr 7, 2009 at 12:09 PM, bria

[jQuery] Re: first child

2009-04-07 Thread Chuck Harmston
This will return the tag name of a container's first child: $('#container > *')[0].tagName; Hope it's useful! Chuck Harmston http://chuckharmston.com On Tue, Apr 7, 2009 at 11:37 AM, bart wrote: > > Hello all, > > Let's say I'd have a div#conten

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

2009-04-07 Thread Chuck Harmston
well-versed in jQuery selector system, then there is likely a cleaner way to do it than using a placeholder ID. Hope this is useful! Chuck Harmston http://chuckharmston.com On Tue, Apr 7, 2009 at 11:53 AM, Rick Faircloth wrote: > I would like to be able to do something as simple as > > my

[jQuery] Re: Cycle plugin pager over image

2009-04-07 Thread Chuck Harmston
It seems to me that this code should have the pager positioned absolutely over the top left of the image. Do you have a live example that I could take a look at? P.S. It probably makes semantic sense to turn the images into an unordered list :) Chuck Harmston cpharms...@gmail.com Cell: (612) 961

[jQuery] Re: Cycle plugin pager over image

2009-04-07 Thread Chuck Harmston
ng, I can give you more detailed instructions. Hope this helps! Chuck Harmston http://chuckharmston.com On Tue, Apr 7, 2009 at 8:57 AM, martijn397 wrote: > > Hello everyone! > > After using the Cycle plugin for quite some time now i was wondering > if there is any way to get

[jQuery] Re: [validate] Make at least one input field required

2009-04-07 Thread Chuck Harmston
helps! Chuck Harmston http://chuckharmston.com On Tue, Apr 7, 2009 at 4:02 AM, Cpt. Archie wrote: > > html looks like: > > > > > i want people to fill in at least one of these fields > > how can this be done using the jquery (validation plugin)? >

[jQuery] Re: Debugging jQuery in Firebug

2009-04-07 Thread Chuck Harmston
many levels as you'd like. - - You can track Javascript performance by running console.profile() before the code you want to track, then console.profileEnd() afterward. Firebug will give detailed information on each method called between the Chuck Harmston http://chuckharmston.com

[jQuery] Re: CSS top seems ignored by blockUI

2009-03-06 Thread Chuck
ftWidth'); var t = ((p.offsetHeight - el.offsetHeight)/2) - sz (p,'borderTopWidth'); s.left = l > 0 ? (l+'px') : '0'; s.top = t > 0 ? (t+'px') : '0'; }; That means it's not only ignoring a user supplied top, but it

[jQuery] CSS top seems ignored by blockUI

2009-03-06 Thread Chuck
Hi, I'm passing to blockUI an array of options: {top: '150px', width: '40%', padding: '2px', border: 'none'}; And top appears to be completed ignored! The other options are used, but the message is consistently drawn centered vertically; no matter what I pass as the value for top. Any

[jQuery] Checkbox checked attribute no set when trigger using click()

2009-02-19 Thread Chuck
checkCallback ); if ( test ) { $row.find(':checkbox').click(); } However, in the click handler when I get the event.target.checked is ALWAYS false for the above call. All is as expected when the handler is called based on a real UI click. I've been playing with this for a couple of hours and can't figure out what is up. Thoughts anyone? thanks, Chuck

[jQuery] Spammer bypassing JQ Validate to register?

2008-12-21 Thread Chuck Cheeze
I have a site built in ExpressionEngine. I am using JQ Validate to check the form fields before submission. There are 3 fields in particular that are interesting to me as they are required by EE and they are on the list of fields required by JQ Validate. First Name Last Name Invitation Code (pr

[jQuery] Re: validate : help with required code

2008-11-07 Thread Chuck Cheeze
you need a custom required-method. Your check makes the > field required, but its still valid to the required method (it has a > value). > > Jörn > > On Thu, Nov 6, 2008 at 6:45 PM, Chuck Cheeze <[EMAIL PROTECTED]> wrote: > > > I have a form field that by default

[jQuery] validate : help with required code

2008-11-06 Thread Chuck Cheeze
I have a form field that by default has the value "First". When the user clicks into the field it clears that value, and if they type nothing, when they blur the field it replaces "First". You've all seen this. I want the validate plugin to say this field is required if the value onsubmit is "Fi

[jQuery] [validate] Help with required code

2008-11-06 Thread Chuck Cheeze
I have a form field that by default has the value "First". When the user clicks into the field it clears that value, and if they type nothing, when they blur the field it replaces "First". You've all seen this. I want the validate plugin to say this field is required if the value onsubmit is "F

[jQuery] Superfish - Fix to allow custom easing

2008-10-18 Thread Chuck Trukk
I wanted an easeOutBack easing for my animation. It was easy with a few modifications: modify sf.defaults sf.defaults = { etc current defaults, easing : 'swing' }; modify showSuperfishUl (the 2nd to last line) from $ul.animate(o.a

[jQuery] Help writing function for sending a serialized post for updating a UL order

2008-10-08 Thread Chuck Cheeze
I have a UL: One Two Three I have a function: $(document).ready(function() { //sortables $("#child_list").sortable({ opacity: 0.7, revert: true, scroll: true, handle: $(".handle"), change: function(sorted){

[jQuery] IE Issues with addClass/removeClass

2008-09-29 Thread Chuck Cheeze
www.webinception.com On the homepage of my site I use jQuery to dynamically remove a class and add a class to the 3rd div box under Recent Projects. What this does is allow the floated boxes to all line up on a single row by removing the default class for this box and add in an identical class t

[jQuery] Re: Help with selecting great grandchildren

2008-05-02 Thread Chuck Cheeze
you could use > > $(this).parent().find(".line-item") > > which searches for any .line-items under the parent. > > Either one should work, so pick your favorite :) > > - Lindsay > > On May 2, 12:38 pm, Chuck Cheeze <[EMAIL PROTECTED]> wrote: > > &

[jQuery] Help with selecting great grandchildren

2008-05-02 Thread Chuck Cheeze
Below is my html/EE code: {lang_showmoreinfo} {lang_standardconfigurations} {related_entries id="cf_products_parts"} {cf_parts_partnumber}

[jQuery] Re: checked attribute of radio buttons not handled nicely in 1.2.3

2008-04-28 Thread Chuck
;'; jQuery makes my code so much more readable and allows me to remove a lot of existing JavaScript, this would be the first time it resulted in more JavaScript to do the same thing. -= chuck

[jQuery] checked attribute of radio buttons not handled nicely in 1.2.3

2008-04-28 Thread Chuck
')[0].checked true $('#ProtectRemote').attr("checked") true This feels like a bug. thanks, -= chuck

[jQuery] Re: Having trouble with += and toFixed for some reason

2008-04-05 Thread Chuck Cheeze
Thanks alot - i've never been good with javascript... worked great. On Apr 4, 3:01 pm, Wizzud <[EMAIL PROTECTED]> wrote: > Initialise as numbers instead of strings?... > > var bagqty = 0; > var bagtotal = 0; > > On Apr 4, 9:35 pm, Chuck Cheeze <[EMAIL PROTECTE

[jQuery] Having trouble with += and toFixed for some reason

2008-04-04 Thread Chuck Cheeze
Here is my code: //on page load $(document).ready(function() { //add up the cart totals and display on the page //setup default values var bagqty = '';

[jQuery] Re: JQuery bigginer

2008-04-04 Thread Chuck
t case. It's nice if your blur handler puts back the placeholder text if it's still blank. cheers, Chuck > I have a text field which has default value as Day. I want when user > focus on this text field then it become empty. How can I do this using > JQuery?

[jQuery] Element level blockUI kills IE6

2008-04-04 Thread Chuck
handler. This is an app running on some linux based network gear, not something I can give access too. Just looking for any knowledge of Element level blocking problems. As soon as I figured out it was the blockUI call, I checked for updates. The problem happens in both 1.3.3 and the brand spanky new 2.0. Thanks, Chuck

[jQuery] Using jqGrids as the subgrid

2007-12-20 Thread Chuck
o and its DHTML stuff. Does anyone have experience with OpenLaszlo / DHTML - I'm NOT interested in the Flash rendering. Chuck McCrobie

[jQuery] Re: New Plugin: ZoomBox

2007-12-15 Thread Chuck
I'm having problems with positioning the thumb is going great, but the loader & image aren't... http://www.1norton.com/index.php?mact=News,cntnt01,detail, 0&cntnt01articleid=2&cntnt01dateformat=%25b %20%25Y&cntnt01returnid=18">www.1norton.com/chuck Any suggestions?

[jQuery] Re: JQuery Taconite and IE7

2007-07-04 Thread Chuck Lawson
Thanks Mike -- that worked great!!!

[jQuery] JQuery Taconite and IE7

2007-07-04 Thread Chuck Lawson
I'm still very new at jQuery, but I've been having great success with the jQuery Taconite plugin -- at least until users tried using it on IE instead of Firefox or Safari. The problem I'm having is that the second time I try calling Taconite, IE displays the response page from the server, rather