[jQuery] Re: Form validation plugin

2009-04-15 Thread Jörn Zaefferer
The current validation plugin works fine with both 1.2.6 and 1.3.2. Jörn On Thu, Apr 16, 2009 at 1:48 AM, koolkat wrote: > > I have been using the form validation plugin with jquery 1.2.6. I > would like to use the new jquery version 1.3.2 but was wondering if > there is a replacement validatio

[jQuery] Re: Creating custom attributes in html

2009-04-15 Thread Kean
I see a lot of string concatenations. Use this instead. var str=[]; for(var i=0; i<200; i++) str.push(''); $(str.join('')).appendTo('div'); Also, from a performance standpoint, it's much faster to use W3c DOM methods to create nodes than using the innerHTML method to create nodes in newer js

[jQuery] Not able to jqGrid and jquery lightbox plugin in a single page

2009-04-15 Thread Devesh
Hi, I am not able to use jqGrid and jquery lightbox plugin in a single page. Its shows an error i.e. Lightbox was not able to find it's javascript script tag necessary for auto-inclusion. What does it mean ? Can someone help me ? Thanks Devesh M

[jQuery] CTRL+S to Insert Record PHP+JQUERY

2009-04-15 Thread bharani kumar
Hi All , Can u please tell , How to implement in jquery, php,, Insert record after pressed the CTRL+S in keyboard , Thanks -- உங்கள் நண்பன் பரணி குமார் Regards B.S.Bharanikumar POST YOUR OPINION http://bharanikumariyerphp.site88.net/bharanikumar/

[jQuery] Re: Plugin does not bind to jQuery object

2009-04-15 Thread Thomas Allen
This is possible, and makes sense. I'll take a look tomorrow (the main template for this site includes jQuery, and we include these scripts on forms, which is where things got mixed up). Thomas On Apr 15, 4:55 pm, Eric Garside wrote: > Upon further inspection, I'm not quite sure what to make of

[jQuery] Re: Basic Selector expression only work on Chrome, no other browsers

2009-04-15 Thread Tao
Hi Karl, Yes, I understand filter is IE-proprietary. That's why I try to use jquery selector to get the filter div list instead of div.style.filter. But it seems jquery selector cannot handle this well. As the html is created by M$ mshtml which has some filter styles in the page. What I try to a

[jQuery] Re: Creating custom attributes in html

2009-04-15 Thread RobG
On Apr 16, 10:15 am, Josh Powell wrote: > @all - thank you for your comments. What I've learned is 1) custom > attributes are referred to as DOM Expandos, No, expandos are custom DOM object *properties*, HTML elements have attributes. http://msdn.microsoft.com/en-us/library/ms533747(VS.85).a

[jQuery] Plugin development - how to access the current object from a "sub-method"?

2009-04-15 Thread Ricardo Tomasi
Supposing I have this: jQuery.fn.myPlugin = function(){ // }; jQuery.fn.myPlugin.myMethod = function(){ // ? }; $('#test').myPlugin.myMethod(); How can I access the current object or element collection from inside jQuery.fn.myPlugin.myMethod? Is it possible at all? thanks, - ricard

[jQuery] Re: Strange parent > child selector behaviour

2009-04-15 Thread Ricardo
MorningZ's right. To simplify things I'd do this: $('div') .find('>ul').addClass('primary'); .find('>li >ul').addClass('secondary') .find('>li >ul').addClass('tertiary') .find('>li >ul').addClass('quaternary') .find('>li >ul').addClass('quinary') cheers, - ricardo On Apr 15, 4:28 

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread sneaks
for anyone having similar problem heres how i resolved it: function getProductInfo(product_id) { jQuery.post( "/wp/wp-admin/admin-ajax.php", { action: "getProductInfo", 'cookie': encode

[jQuery] Re: Selector questions

2009-04-15 Thread Karl Swedberg
On Apr 15, 2009, at 6:24 PM, Dragon-Fly999 wrote: Hi, I have a couple of questions about selectors. I have the following HTML: = Some elements and elements here. ... ... Information Type 1 First Middle Last ... ... More elements and elements here. = Q

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread sneaks
the way i see it, there are quotes on the object side of the json where there should be no quotes...

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread sneaks
hi garret... here is the json responsei get: { "product_id":"03", "product_name":"Sample shoe", "product_brand":"Shoe Brand", "product_slug":"slug3", "product_description":"description3", "product_active":"1", "product_type":"shoe",

[jQuery] Re: [Autocomplete] help: keyboard selection not working

2009-04-15 Thread Tom Worster
On 4/15/09 4:21 PM, "Lance Speelmon" wrote: > Unfortunately, that did not work for me... I have tested with both > Safari4 and FF3. Any other ideas? Thanks, L try using only the style sheet supplied with the plugin. if keyboard nav works then you can work from that back to your preferred sty

[jQuery] Re: Calling a function from a non-jQuery .JS file

2009-04-15 Thread Josh Powell
> ...what is wrong with just having:- > var todayEl = document.getElementById("today"); > todayEl.innerHTML = formatDate(new Date); document.ElementById has a bug in ie6 and ie7 that will return an element with a name attribute of the same value. Use $('#today') instead. todayEl.innerHTML = "so

[jQuery] Re: Creating custom attributes in html

2009-04-15 Thread Jack Killpatrick
Nice summary, thanks. Here's some more potential food for thought: http://ejohn.org/blog/html-5-data-attributes/ http://www.1729.com/blog/HtmlAnnotations.html FWIW, in general I've steered away from using custom attributes and have generally used id="name_123" (often), class with data inside

[jQuery] Re: Autocomplete plugin for multiple form fields from a JSON source [autocomplete]

2009-04-15 Thread tatlar
Thanks Tom! Digesting now feedback after checking it out. Much obliged. On Apr 15, 5:40 pm, Tom Worster wrote: > i have an ajax backend onto a mysql table with about 25 million rows, > including three searchable indexed text columns. i want a form with three > text input fields, each with au

[jQuery] Re: Autocomplete plugin for multiple form fields from a JSON source [autocomplete]

2009-04-15 Thread tatlar
Thanks Tom! Digesting now feedback after checking it out. Much obliged. On Apr 15, 5:40 pm, Tom Worster wrote: > i have an ajax backend onto a mysql table with about 25 million rows, > including three searchable indexed text columns. i want a form with three > text input fields, each with au

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread dhtml
On Apr 15, 4:34 pm, sneaks wrote: [posting order restored] > On Apr 15, 1:28 pm, dhtml wrote: > > > On Apr 14, 9:34 pm, sneaks wrote: > > > > hi! i am trying to use jQuery.post() to send name/value to a php > > > function which then retreives data from mysql and responds withJSON > > > whic

[jQuery] Re: Autocomplete plugin for multiple form fields from a JSON source [autocomplete]

2009-04-15 Thread Tom Worster
i have an ajax backend onto a mysql table with about 25 million rows, including three searchable indexed text columns. i want a form with three text input fields, each with autocomplete. 1) if all fields are blank when the user starts to type into one of them then normal autocomplete happens on t

[jQuery] Re: Calling a function from a non-jQuery .JS file

2009-04-15 Thread kiusau
> If you want to format a local date, . . . > > var todayEl = document.getElementById("today"); > todayEl.innerHTML = formatDate(new Date); // [1] > [1]http://www.jibbering.com/faq/#formatDate This also worked, but produced a format very different from that required by the context in which the

[jQuery] Re: Creating custom attributes in html

2009-04-15 Thread Josh Powell
@all - thank you for your comments. What I've learned is 1) custom attributes are referred to as DOM Expandos, 2) they can cause IE to go into strict mode, 3) Developers often override the class or id of an element to store data instead of using a DOM Expando, and 4) There is a bug in jQuery hav

[jQuery] Re: jQuery.com homepage "News from the jQuery Blog" not up to date?!

2009-04-15 Thread MarcusT
Um, powers that be, hello? This issue remains unresolved - I still see "January 21th, 2009" as the most recent news item, when in fact when I click the RSS feed icon next to it I find that the latest is actually "This Week in jQuery, vol. 4" dated 03 April 2009 15:25 Isn't it kind of important t

[jQuery] Re: Help Me Optimize My First JQuery Script (Extinguish The Early Flames of Bad Practices)

2009-04-15 Thread Dante
That's exactly what I was looking for, Ricardo! Thank you. I suspected the code could be simplified using parent/sibling selectors; I was just unsure how to do so. On Apr 15, 6:38 pm, Ricardo wrote: > If you gave your buttons a common class you could do something like > this: > > $("li.butto

[jQuery] Re: Autocomplete plugin for multiple form fields from a JSON source [autocomplete]

2009-04-15 Thread tatlar
Hi Tom, Thanks for the reply. It is the former. I am perfectly comfortable with parsing JSON formatted data. I would be very happy to read what you have been working on. Best regards. On Apr 15, 4:47 pm, Tom Worster wrote: > On 4/15/09 2:27 PM, "tatlar" wrote: > > > I am using Jorn's awesome

[jQuery] Form validation plugin

2009-04-15 Thread koolkat
I have been using the form validation plugin with jquery 1.2.6. I would like to use the new jquery version 1.3.2 but was wondering if there is a replacement validation plugin for this version or if it could be made to work. Thank you.

[jQuery] Re: Autocomplete plugin for multiple form fields from a JSON source [autocomplete]

2009-04-15 Thread Tom Worster
On 4/15/09 2:27 PM, "tatlar" wrote: > I am using Jorn's awesome autocomplete plugin in one form field to > allow a user to quickly narrow down which station they wish to view > visit times for. However, it would be really cool to extend this so > that when the selection is narrowed to one statio

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread sneaks
heres the function (it connects to wordpress database so i cant send a url) function getProductInfo(product_id) { jQuery.post( "/wp/wp-admin/admin-ajax.php", { action: "getProductInfo",

[jQuery] Re: Strange parent > child selector behaviour

2009-04-15 Thread MorningZ
its because $('div ul.primary li > ul') selects *all* (not just the direct child) 's under the ul.primary, and then looking at each first child and applying that "secondary" class On Apr 15, 3:28 pm, Darron wrote: > I am trying to build a nice class heirarchy for a nested list menu > using t

[jQuery] Strange parent > child selector behaviour

2009-04-15 Thread Darron
I am trying to build a nice class heirarchy for a nested list menu using the following html:

[jQuery] Superfish - Hide submenu on rollover of empty sibling?

2009-04-15 Thread halifaxhi...@gmail.com
Superfish is great. The mouseout delay makes drop down menus more usable. But submenus should disappear immediately when you rollover ANY sibling. Currently, submenus only "disappear" when you rollover a sibling WITH children (because the submenus have to change). If you rollover an EMPTY sibling

[jQuery] [validate] Different error message containers for different inputs

2009-04-15 Thread unforgive...@gmail.com
Hi, I'm not sure if what I'm about to ask is really feasible, but thought I'd at least try asking. Essentially, I have a form using the JQuery Validation plugin, with a few fields and a pretty basic set of validation rules. Nothing fancy at all. I've set the location of form error messages using

[jQuery] Re: preloading a div

2009-04-15 Thread Alan FSPP
or $("#div").ajaxStart(function(){ $(this).fadeIn("fast"); }); $("#div").ajaxStop(function(){ $(this).fadeOut("fast"); }); $("#div").load(url) fade is automatic 2009/4/14 Liam Potter > > a callback function is something that runs after an action has been > completed. This is what y

[jQuery] Re: [Autocomplete] help: keyboard selection not working

2009-04-15 Thread Lance Speelmon
Unfortunately, that did not work for me... I have tested with both Safari4 and FF3. Any other ideas? Thanks, L http://www.w3.org/ TR/html4/strict.dtd"> http://ajax.googleapis.com/ajax/libs/ jqueryui/1.7.1/themes/smoothness/ui.all.css" rel="stylesheet" /> http://ajax.googleapis.com/ajax/lib

[jQuery] Help with cross-site form validation?

2009-04-15 Thread Trevor Rosen
I need to do validation on an email address via AJAX, and it has to happen cross-domain. I can get this to work fine using just jQuery's $.ajax method, but not when I try to turn it into a validator plugin method. As a validator method, it does the XHR call fine, and I see the results I expect i

[jQuery] Re: Validation and Facebox

2009-04-15 Thread Ander Aznar
Thanks for your advice Byron! I was experiencing the same problem Bob described and your solution worked perfectly. BTW, using clone(true) didn't work in my case neither. On Mar 18, 10:36 am, byron wrote: > In case anyone else stumbles upon this, I will give my solution to the > problem (hours l

[jQuery] Re: Help Me Optimize My First JQuery Script (Extinguish The Early Flames of Bad Practices)

2009-04-15 Thread Ricardo
If you gave your buttons a common class you could do something like this: $("li.button a").click(function(event){ //show the link's parent, hide the parent's siblings $(this) .parent().show() .siblings().hide(); return false; }); On Apr 14, 11:49 pm, Dante wrote: > Hello, > >

[jQuery] Selector questions

2009-04-15 Thread Dragon-Fly999
Hi, I have a couple of questions about selectors. I have the following HTML: = Some elements and elements here. ... ... Information Type 1 First Middle Last ... ... More elements and elements here. = Question 1: In the click handler of the first c

[jQuery] Re: Calling a function from a non-jQuery .JS file

2009-04-15 Thread kiusau
Thank you for the warning with regard to the use of the document.write statement and the alternative format for writing text to an HTML document. It will likely prove invaluable in the future. Roddy

[jQuery] Re: Has anyone used these jQuery books?

2009-04-15 Thread Calvin Stephens
I think compatability is important Karl. Also, thanks for the heads up on the reference guide. Cheers, Calvin On Wed, Apr 15, 2009 at 2:32 PM, Karl Swedberg wrote: > As one of the authors of jQuery Reference Guide, I'd have to recommend that > you not buy it, especially if you already have L

[jQuery] Re: Calling a function from a non-jQuery .JS file

2009-04-15 Thread kiusau
With minor modifications I was able to achieve my goal with the sample code that you provided. So that I do not feel compelled to ask this question could you confirm or disconfirm whether the below statement is correct. In order to create a jQuery method from a JavaScript function not encoded i

[jQuery] Re: Has anyone used these jQuery books?

2009-04-15 Thread MorningZ
"jQuery in Action" is another option... it's got tons of great examples On Apr 15, 5:32 pm, Karl Swedberg wrote: > As one of the authors of jQuery Reference Guide, I'd have to recommend   > that you not buy it, especially if you already have Learning jQuery   > 1.3. Some of the information in t

[jQuery] Re: Has anyone used these jQuery books?

2009-04-15 Thread Karl Swedberg
As one of the authors of jQuery Reference Guide, I'd have to recommend that you not buy it, especially if you already have Learning jQuery 1.3. Some of the information in the reference guide is outdated, and most of it can be found elsewhere. I still haven't gotten my hands on jQuery UI 1.6

[jQuery] Re: A little help needed with form processing and page redirects

2009-04-15 Thread tatlar
You want an event fired when the user clicks the submit button. Look here: http://docs.jquery.com/Events/submit#fn That example should get you going. Now there are two scenarios for you to choose from: (1) When the submit button is clicked, you want to call an ajax method, passing all the form

[jQuery] Re: Ajax request -- passing additional paramters to success method

2009-04-15 Thread Nic Hubbard
Perfect! On Apr 15, 1:57 pm, Eric Garside wrote: > $.ajax({ >         type: "GET", >         dataType: "json", >         url: tUrl, >         success: function(data){ GotNewData(data, 'custom string'); }, >         error: GetDataError, >         complete: AjaxRequestComplete >     }); > > On Apr

[jQuery] Has anyone used these jQuery books?

2009-04-15 Thread Calvin
Hi everybody, Has anyone here read/ used these books: jQuery UI 1.6 by Dan Wellman jQuery Reference Guide by Chaffer & Swedberg I am wondering which one is better for learning how to make front-end interfaces for applications. p.s- Learning jQuery 1.3 is a awesome book!

[jQuery] Re: Ajax request -- passing additional paramters to success method

2009-04-15 Thread Eric Garside
$.ajax({ type: "GET", dataType: "json", url: tUrl, success: function(data){ GotNewData(data, 'custom string'); }, error: GetDataError, complete: AjaxRequestComplete }); On Apr 15, 4:53 pm, Nic Hubbard wrote: > I am interested in this as well.  

[jQuery] Re: Plugin does not bind to jQuery object

2009-04-15 Thread Eric Garside
Upon further inspection, I'm not quite sure what to make of your page. Firebug's Net console reported the following includes in the following order: 1. jquery-1.3.2.js 2. jquery.validate.min.js 3. validate-common.js 4. asce03.js 5. validate.js 6. jquery-1.2.6.js 7. jquery-dropdown-menus.js So, f

[jQuery] Re: Plugin does not bind to jQuery object

2009-04-15 Thread mkmanning
You also have a reference to jQuery 1.2.6 as well as 1.3.2; near the bottom of the page: On Apr 15, 1:44 pm, Thomas Allen wrote: > No, that's not it. The scripts are ordered: > > script> >