[jQuery] Potential Bug with next()

2009-04-09 Thread James Hughes
} $(function(){ $.annotated() }); James Hughes | Senior Software Engineer | Kainos | DD: +44 (0)28 9057 1100 | Fax: +44 (0)28 9057 1101 | j.hug...@kainos.com ---

[jQuery] 413 FULL head

2009-02-25 Thread James Hughes
I realise this may not be related to jQuery specifically but sending the contents of a textarea (rich content being edited in the browser) via an ajax call. I keep getting a 413 FULL head error in the Ajax call. It seems to be occurring because there is too much info being pushed via the Ajax cal

[jQuery] Re: Getting All DOM Elements except Ones with parent X

2009-02-16 Thread James Hughes
I think I answered my own question *:not(#stylebox *) Seems to work Thanks From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of James Hughes Sent: 16 February 2009 12:12 To: jquery-en@googlegroups.com Subject: [jQuery

[jQuery] Getting All DOM Elements except Ones with parent X

2009-02-16 Thread James Hughes
Hi, I want to attach an event to all DOM elements except ones who are children of a div with an id of #stylebox. Is there a complex selector that will do that? I got as far as *:not( and then got stumped!!! Thanks in advance James.

[jQuery] Initial Event Registration

2009-01-30 Thread James Hughes
Hi, Is there a plugin kicking around anywhere that would let me declare events on object in a more declarative manner eg instead of $('#button1').click(function(){..}).blur(function(){...}) $('#button2').click(function(){..}) etc etc $('#button3').click(function(){..}) Doing it this way $

[jQuery] Re: Calendar with jQuery or pure JavaScript??

2009-01-30 Thread James Hughes
my project and it will be associated with my Schedule. I will have to make a daily schedule, for example, with hour starting at 00:00h and ending at 23:00h and associate events with it, like "lunch with Paulo at 14:30h" and so on... It will be a hge challenge!! On Jan 30, 6:53 am,

[jQuery] Re: Calendar with jQuery or pure JavaScript??

2009-01-30 Thread James Hughes
I guess if you are competent in both it's doesn't really matter though I'd think jQuery would be better as you'd have less cross browser incompatabilites to deal with etc. Also I'd look at the Date Picker in jQuery UI (http://jqueryui.com/demos/datepicker/inline.html). I have played/hacked

[jQuery] Re: autocomplete plugin by bassistance - loading of huge number of records

2009-01-29 Thread James Hughes
Personally I'd recommend only returing only a small subset of the results from the backend. Rather than returning all 5000+ results needlessly (is anyone going to really look through them all or just keep filtering?). Limit the DB query to 100 or so. You'll need to set matchSubset = false th

[jQuery] Re: Implementing a Knob Control

2009-01-26 Thread James Hughes
Do you mean a gague control? IE some sort of rotary control vs a slider? From: jquery-en@googlegroups.com on behalf of legofish Sent: Mon 26/01/2009 14:49 To: jQuery (English) Subject: [jQuery] Implementing a Knob Control Hi, I need to implement a knob con

[jQuery] Re: Suggester under browser's one

2009-01-26 Thread James Hughes
Try this, From: jquery-en@googlegroups.com on behalf of ilmarik Sent: Mon 26/01/2009 13:19 To: jQuery (English) Subject: [jQuery] Suggester under browser's one I'm building simple mechanism to show user's list of possible choices after s/he writes some le

[jQuery] Re: Is A Child Of?

2009-01-22 Thread James Hughes
d(b[0]).length In the end this is the one I could get to work $(b).parents().filter(function() { return this === a[0]; }).length - Richard On Thu, Jan 22, 2009 at 4:25 AM, James Hughes wrote: Hi, This is probably a really easy question an I apologise if it appear s

[jQuery] Is A Child Of?

2009-01-22 Thread James Hughes
Hi, This is probably a really easy question an I apologise if it appear stupid but I am clueless right now. Given 2 jQuery objects (a,b) how can I tell if b is a child of a? James This e-mail is intended solely for the

[jQuery] Re: Identify last keeypess

2009-01-21 Thread James Hughes
t as it breaks some other functionality I have on those inputs. Is there a simple an elegant way to do it? Thanks! Rob. On Jan 20, 3:24 pm, "James Hughes" wrote: > On a side note... > > Do you want/need autocomplete becasue it is possible to stop a textfield > being capable of a

[jQuery] Re: Identify last keeypess

2009-01-20 Thread James Hughes
highlight one of the options and then hit submit to select it. This, I think, is standard browser behaviour - unless I have it wrong? Unfortunately for me, hitting enter at that point will submit the form. Any help would be much appreciated! Rob. On Jan 20, 1:56 pm, "James Hughes" wrote

[jQuery] Re: Identify last keeypess

2009-01-20 Thread James Hughes
Rob, Is this some sort of autocomplete text box or is it a select input? James From: jquery-en@googlegroups.com on behalf of rob303 Sent: Tue 20/01/2009 13:44 To: jQuery (English) Subject: [jQuery] Identify last keeypess Hi, I've been searching the web f

[jQuery] [UI Slider] Specifying Initial Value

2009-01-20 Thread James Hughes
Hello, Can someone confirm if this is possible? I generate a page that has 10+ sliders on it. Each has a different initial value when the page loads. Is there a way to set the inital value as part of the element? The reason I ask is that I'd like to do a blanket $('slider-class').slider(

[jQuery] JSON with ajaxComplete

2009-01-16 Thread James Hughes
Hello, I have a generic ajaxComplete event that does soe generic stuff to my screen once ajax calls complete. All calls will return a JSON object with at least a success property. The thing is the ajaxComplete arguments don't have my response in JSON (regardless of specifying type in the ca

[jQuery] jQuery API in XML or JSON Format

2008-12-17 Thread James Hughes
Hello, I was wondering if anyone knew where I could get my hands on the 1.2.6 API documentation in either JSON or XML format (preferably XML)? I looked at the visualjquery website but for some reason the JSON payload when pasted into another page (var payload = { long object }) seems

[jQuery] Re: [validate] Remote Call Failing

2008-12-15 Thread James Hughes
Updating to 1.5 should fix the issue. Jörn On Mon, Dec 15, 2008 at 11:14 AM, James Hughes wrote: > > Hello, > > I am trying to set up a remote validation field using the Validate plugin but > for some reason it's not working. Here is my code, > > $("#myform&quo

[jQuery] [validate] Remote Call Failing

2008-12-15 Thread James Hughes
Hello, I am trying to set up a remote validation field using the Validate plugin but for some reason it's not working. Here is my code, $("#myform").validate({ rules: { name: { remote: { url: "/remote-validation/sample/remoteValidate", data: { field: 'name

[jQuery] Intercept and Append Param to All Ajax Requests

2008-12-12 Thread James Hughes
Hi, This has me confused. I want to intercept ALL ajax requests on a page and before sending the request append another parameter to the request. So far this is what I have $.ajaxSetup({ beforeSend : function(xhr, opts){ this.data = $.extend({_kdfrequest:"action"},

[jQuery] Re: TableSorter vs CMS

2008-12-10 Thread James Hughes
consolation, I learned how to use Firebug (and got some other valuable tips besides). :) Thanks for all the help. On Wed, Dec 10, 2008 at 5:11 AM, James Hughes <[EMAIL PROTECTED]> wrote: Does /1A/js/jquery-1.2.6.min.js exist? Can you access it via the addre

[jQuery] Re: TableSorter vs CMS

2008-12-10 Thread James Hughes
nt? I'll past the JQuery file into MySite 2, change the link and see if that makes a difference... On Wed, Dec 10, 2008 at 5:03 AM, James Hughes <[EMAIL PROTECTED]> wrote: if it saying - 2. $ is not defined jQuery isn;t included on the page correctly. A

[jQuery] Re: TableSorter vs CMS

2008-12-10 Thread James Hughes
if it saying - 2. $ is not defined jQuery isn;t included on the page correctly. Are your directory and file names alright? From: jquery-en@googlegroups.com on behalf of David Blomstrom Sent: Wed 10/12/2008 13:01 To: jquery-en@googlegroups.com Subject: [jQuer

[jQuery] Re: Error getting value from server

2008-12-10 Thread James Hughes
What I tend to do in this instance is keep all but config options in an external js file. The at the top of my jsp (applicable to ASP as well) page I have a Global Config oject var ApplicationConfig = { sessionId : , otherValue : , } Then in my sepearte JS file I can use these via

[jQuery] Re: pleeease heeelp me nowwwwww

2008-12-10 Thread James Hughes
Are you mixing any other frameworks on the page e.g. Prototype? From: jquery-en@googlegroups.com on behalf of [EMAIL PROTECTED] Sent: Wed 10/12/2008 09:36 To: jQuery (English) Subject: [jQuery] Re: pleeease heeelp me noww ok, the code is: var flag=fal

[jQuery] Re: Select option value not working

2008-12-09 Thread James Hughes
or more specificly, i think, $(':button[value=GO]').click(... From: jquery-en@googlegroups.com on behalf of JQueryProgrammer Sent: Tue 09/12/2008 10:32 To: jQuery (English) Subject: [jQuery] Re: Select option value not working Great. Thanks. lso is it possib

[jQuery] Re: Select option value not working

2008-12-09 Thread James Hughes
$('input[value=GO]').click(function(){}); From: jquery-en@googlegroups.com on behalf of JQueryProgrammer Sent: Tue 09/12/2008 10:32 To: jQuery (English) Subject: [jQuery] Re: Select option value not working Great. Thanks. lso is it possible to select an ele