[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 gars...@gmail.com wrote: $.ajax({         type: GET,         dataType: json,         url: tUrl,         success: function(data){ GotNewData(data, 'custom string'); },         error: GetDataError,         complete: AjaxRequestComplete     }); On

[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

[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

[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 k...@englishrules.com 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

[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

[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 k...@englishrules.com wrote: As one of the authors of jQuery Reference Guide, I'd have to recommend that you not buy it, especially

[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] Selector questions

2009-04-15 Thread Dragon-Fly999
Hi, I have a couple of questions about selectors. I have the following HTML: = Some a elements and input elements here. ... ... a id=info-1-headingInformation Type 1/a div div input class=cat id=first type=checkbox/label for=firstFirst/label /div div input class=cat id=mid

[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 danh...@gmail.com

[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 gexma...@gmail.com wrote: In case anyone else stumbles upon this, I will give my solution to the

[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

[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 radioactiv...@gmail.com a callback function is something that runs after an action has been completed.

[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 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/ TR/html4/strict.dtd html head meta http-equiv=Content-type content=text/html;charset=UTF-8 / link type=text/css

[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] 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: div ul li ul li ul li/li

[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) li's under the ul.primary, and then looking at each first child ul and applying that secondary class On Apr 15, 3:28 pm, Darron darron.dri...@gmail.com wrote: I am trying to build a nice class heirarchy for a

[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) code function getProductInfo(product_id) { jQuery.post( /wp/wp-admin/admin-ajax.php, { action: getProductInfo,

[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 robertlnew...@gmail.com 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

[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 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 f...@thefsb.org wrote: On 4/15/09 2:27 PM, tatlar robertlnew...@gmail.com

[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 ricardob...@gmail.com wrote: If you gave your buttons a common class you could do something like

[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 that

[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

[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 date

[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

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread dhtml
On Apr 15, 4:34 pm, sneaks deroacheee...@gmail.com wrote: [posting order restored] On Apr 15, 1:28 pm, dhtml dhtmlkitc...@gmail.com wrote: On Apr 14, 9:34 pm, sneaks deroacheee...@gmail.com wrote: hi! i am trying to use jQuery.post() to send name/value to a php function which then

[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 f...@thefsb.org 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,

[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 f...@thefsb.org 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,

[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: 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 =

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

2009-04-15 Thread Tom Worster
On 4/15/09 4:21 PM, Lance Speelmon lancespeel...@gmail.com 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

[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, product_gender:youth,

[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: 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 a elements and input elements here. ... ... a id=info-1-headingInformation Type 1/a div div input class=cat id=first type=checkbox/label

[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':

[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 pm,

[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, -

[jQuery] Re: Creating custom attributes in html

2009-04-15 Thread RobG
On Apr 16, 10:15 am, Josh Powell seas...@gmail.com 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. URL:

[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

[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 gars...@gmail.com wrote: Upon further inspection, I'm not quite

[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/

<    1   2