[jQuery] Re: contents().height() in FF

2008-02-04 Thread Ariel Flesler
Hi Sebioff, I already reported it here: http://dev.jquery.com/ticket/2273 As for 'axis', the default is 'y', but in the demo $.scrollTo.defaults.axis is set to 'xy'. That line is commented and I expected it to be seen. I can add a message though, saying 'in this case, axis is defaults to xy',

[jQuery] Re: getting the ID number of a cloned table row

2008-02-04 Thread andrea varnier
On 4 Feb, 12:51, Bruce MacKay [EMAIL PROTECTED] wrote: The function I'm using is as follows. Two questions: 1. I get an error at the alert - intCurrentRowID is not defined. What is my error here? ParseInt() returns an integer if the number is at the beginning of the string, and undefined

[jQuery] jCarousel - How do I hide the list before display

2008-02-04 Thread caroig
Hi, Is there a way of hiding the list before the carousel is fully generated. I often get to see the list of images before the carousel effect is produced. I've tried setting display to none in my css and then executing jQuery .show after the carousel, but seems doesn't work well. many thanks

[jQuery] Viewport selectors

2008-02-04 Thread Mika Tuupola
http://www.appelsiini.net/projects/viewport I recently needed to locate images inside and outside of viewport. So I extracted selectors I had in Lazy Load and added some new ones. Result is viewport selectors plugin. Gives you new jQuery selectors such as: $(:in-viewport)

[jQuery] Re: work with what this.id gave me

2008-02-04 Thread marcus
that looks much better. thank you. andrea varnier schrieb: On 3 Feb, 23:12, marcus [EMAIL PROTECTED] wrote: because i think this is somehow ugly i just wanted to know if there is maybe a better way to do this. you can put the object directly in the variable var chosen = $(this); and

[jQuery] Detecting ctrl+click on an element

2008-02-04 Thread Giovanni Battista Lenoci
The subject says it all... How I can detect a crtl+click on an element? Thank you. -- gianiaz.net - Giovanni Battista Lenoci P.le Bertacchi 66 23100 Sondrio (SO) - Italy

[jQuery] Re: Cycle CountUp

2008-02-04 Thread Michael Price
caruso_g wrote: Is it possible to set a time countdown but making it global, i.e. that any visitor will see the remaining time? Something like a countdown to a special offer, and so on. I guess you could synchronise your countdown's start variable with the server side clock - say an offer

[jQuery] Re: How to bind to a dynamically created object

2008-02-04 Thread wyo
On Feb 3, 5:39 pm, Brandon Aaron [EMAIL PROTECTED] wrote: Ugh ... large tables always needs lots of optimizations. First ... you'll want to minimize the number of .append()s. Concat all your HTML into an array and then append. Something like this: var html = []; ... Thanks. cause issues

[jQuery] Re: [validate] validating dynamically created fields

2008-02-04 Thread Steffan A. Cline
on 2/2/08 3:33 PM, Steffan A. Cline at [EMAIL PROTECTED] wrote: on 2/1/08 1:49 PM, Jörn Zaefferer at [EMAIL PROTECTED] wrote: Steffan A. Cline schrieb: on 2/1/08 1:10 PM, Jörn Zaefferer at [EMAIL PROTECTED] wrote: Steffan A. Cline schrieb: I have a form in multiple

[jQuery] Re: Detecting ctrl+click on an element

2008-02-04 Thread andrea varnier
On 4 Feb, 14:38, Giovanni Battista Lenoci [EMAIL PROTECTED] wrote: The subject says it all... How I can detect a crtl+click on an element? try this, supposing #target is yout target var clickFn = function(){ alert(ctrl + click); $(this).unbind('click', clickFn); }

[jQuery] Re: Cycle CountUp

2008-02-04 Thread caruso_g
Is it possible to set a time countdown but making it global, i.e. that any visitor will see the remaining time? Something like a countdown to a special offer, and so on. On Feb 3, 8:35 pm, Ken Gregg [EMAIL PROTECTED] wrote: Cool. I need to put a time display on an intranet page. This answers

[jQuery] Re: Detecting ctrl+click on an element

2008-02-04 Thread Giovanni Battista Lenoci
andrea varnier ha scritto: try this, supposing #target is yout target var clickFn = function(){ alert(ctrl + click); $(this).unbind('click', clickFn); } $(document) .keydown(function(event){ if (event.keyCode == 17){

[jQuery] Re: Detecting ctrl+click on an element

2008-02-04 Thread Giovanni Battista Lenoci
andrea varnier ha scritto: try this, supposing #target is yout target var clickFn = function(){ alert(ctrl + click); $(this).unbind('click', clickFn); } $(document) .keydown(function(event){ if (event.keyCode == 17){

[jQuery] set focus on change

2008-02-04 Thread Matt Williams
I want to run a validation function after a user enters data. If the validation fails, I want do an alert telling them so and set the focus back to that field. But even at the most basic level, I can't get the focus to stay / go back to the field that was changed. Interesting that it does seem to

[jQuery] Problems with $(document).height() and jQuery 1.2.2

2008-02-04 Thread rich
On most of my projects I have some js to push the footer to the bottom on pages with little/no content (compares document height and viewport height). When I upgraded to jQuery 1.2.2 it stopped working. It seems like I'm getting unexpected results from $(document).height(). Am I missing

[jQuery] Re: Cycle CountUp

2008-02-04 Thread Mike Alsup
Cool, Glen! Thought maybe I had a bug though, since the transitions are definitely not 3000ms apart. But I see in the page source that your timeout is 1000. :-) Mike On Feb 2, 2008 8:12 PM, Glen Lipka [EMAIL PROTECTED] wrote: Interesting tidbit: I as looking at the questions on

[jQuery] ajaxSubmit and NiceJForms plugins

2008-02-04 Thread zorba
Hello. The NiceJForms plugin is called like following: $.NiceJForms.build(); I build a form dinamically so that I have to call again NiceJForms to apply it to the new elements. Here is the problem, if I do: var options = { //some stuff success:

[jQuery] Re: jCarousel - How do I hide the list before display

2008-02-04 Thread rich
I had this problem once before. I ended setting a fixed height on the parent div and setting overflow:hidden. -rich On Feb 4, 8:03 am, caroig [EMAIL PROTECTED] wrote: Hi, Is there a way of hiding the list before the carousel is fully generated. I often get to see the list of images before

[jQuery] Re: Detecting ctrl+click on an element

2008-02-04 Thread andrea varnier
On 4 Feb, 17:20, Jeffrey Kretz [EMAIL PROTECTED] wrote: Another way would be to use the ctrlKey property of the Click event: $('#element').click(function(e) { if (e.ctrlKey) { do_something(); } });

[jQuery] Re: Detecting ctrl+click on an element

2008-02-04 Thread Jeffrey Kretz
Another way would be to use the ctrlKey property of the Click event: $('#element').click(function(e) { if (e.ctrlKey) { do_something(); } }); jQuery also normalizes this into the metaKey attribute which

[jQuery] Help populating an array via JSON

2008-02-04 Thread Mike Miller
Hi, I have a javascript function as follows: function StateSuggestions() { this.states =[]; $j.getJSON(client/ajax/getMedList.php, function(data){ alert(inside getJSON + data.length); this.states = data; alert(this.states.length); //Value says 10 for (i = 0;

[jQuery] Re: [validate] validating dynamically created fields

2008-02-04 Thread Jörn Zaefferer
Steffan A. Cline schrieb: Would it be something like this in the head? jQuery.validator.addClassRules({ brochure: { accept: pdf }, movie: { accept: mov|mpg|mpeg|fla|mp4 }, photo: { accept: jpg|gif } }); Then in the body? input type=file name=somethingdynamic class=photo /

[jQuery] Re: Author of UI-Tabs Plug-in?

2008-02-04 Thread Klaus Hartl
On Feb 4, 5:35 pm, Lion29 [EMAIL PROTECTED] wrote: That doesn't make sense to me. Each tab represents a section in the document (which is identified with a fragment identifier). Imagine you had in-pagetabs. It wouldn't make any sense if all thesetabswould point to a single fragment, e.g.

[jQuery] Re: [Validation] v1.2.1pre - Validating an empty field and

2008-02-04 Thread Jörn Zaefferer
Rus Miller schrieb: [...] I moved up to your latest release and the issue of validating an empty field is still there. http://monovisiondesign.com/client/jquery/validate-url/form.php Thanks for the testcase! I've missed a small change in the remote method, its now fixed:

[jQuery] Re: Validation Plugin - Associate array naming with a single error label

2008-02-04 Thread Jörn Zaefferer
Dave Stewart schrieb: Jorn, I've done some work on selectors for groups, and it's actually quite easy to select a group or sub group for validation, although I don't know the details of your implementation, so I wont suppose to imply anything. As usual I've uploaded some demo code for you to

[jQuery] Re: [validate] Validation Plugin - how to remove a control form validation

2008-02-04 Thread Jörn Zaefferer
Dave Stewart schrieb: What do you think? That it took me quite some time to actually start thinking. The answer is rather easy: Custom method! Actually implementing that custom method requires a bit boolean mangling, therefore I've created an example based on your form:

[jQuery] Re: Superfish - CSS questions ?

2008-02-04 Thread Simon
Hi Joel, Thanks you VERY much for your answer (Much faster than mine, I'm reading a lot of JS stuff for the moment ;-)) Superfish is really great, I've been looking a lot around, and it's the best for me! BUT, I still don't get some few things :-) You can have a look here =

[jQuery] Re: yet another beginner's diary (pls review!)

2008-02-04 Thread [EMAIL PROTECTED]
Wow, you remembered! Thanks, Rick :)) I think Daniel's point was fair - though I have no intention of writing a jQuery manual! I'll try to organise it better. It's good to know you only needed a couple of months to become less confused about it ... here's hoping! (sorry if this a double post,

[jQuery] Re: How to prevent user from clicking links or buttons while submitting

2008-02-04 Thread brooke
Thanks all for your suggestions. I am going to try them this morning and will let you know how it goes! On Feb 2, 6:42 pm, pedalpete [EMAIL PROTECTED] wrote: Hey klaus, I tried as you directed and placed it within the jquery form plugin, but it doesn't seem to be working, I am able to click

[jQuery] Re: [Validation] v1.2.1pre - Validating an empty field and

2008-02-04 Thread Rus Miller
Yep. You got it. Thanks for great work! Is a spinner coming anytime soon? On Feb 4, 12:50 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: Rus Miller schrieb: [...] I moved up to your latest release and the issue of validating an empty field is still there.

[jQuery] Re: Detecting ctrl+click on an element

2008-02-04 Thread andrea varnier
On 4 Feb, 16:15, Giovanni Battista Lenoci [EMAIL PROTECTED] wrote: I was making some test, and I have little problem.. If I bind a function to an element with jquery style method: $('#target').bind('click', function() { dosomething(this); ) }); in my dosomething function I can retrieve the

[jQuery] JQuery takes 80% of my core2Duo proc on DOM element inserts

2008-02-04 Thread Ashish
Hi , I am very new to jquery. I am using jquery 1.2.2 . I use jquery tablesorter to insert around 400 rows to a table. The data is collected using an Ajax call. When new rows are inserted to the table the CPU utilization shoots up to 80%. All browsers freeze until the table is populated :( I

[jQuery] Re: Viewport selectors

2008-02-04 Thread Karl Swedberg
Great idea, Mika! Thanks for sharing this. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 4, 2008, at 8:13 AM, Mika Tuupola wrote: http://www.appelsiini.net/projects/viewport I recently needed to locate images inside and outside of viewport.

[jQuery] Re: Author of UI-Tabs Plug-in?

2008-02-04 Thread Lion29
@Klaus: On Feb 3, 7:42 pm, Klaus Hartl [EMAIL PROTECTED] wrote: On Feb 2, 2:58 pm, Lion29 [EMAIL PROTECTED] wrote: 1. Right now thetabsfunction that upon every ajax load the new content is ADDED to the DOM (even if the new loaded content is in conflict with already loaded - same ids for

[jQuery] IE7 not adjusting width of select box

2008-02-04 Thread Kevin Thorpe
I'm having a spot of bother with select boxes in IE7. I have one select box which empties and refills a second when the selected item changes using an AJAX call. This works fine in Opera and FireFox but IE7 doesn't adjust the width of the second select box to match the new contents. There must

[jQuery] Re: jQuery Cycle Plugin delay problem

2008-02-04 Thread McEdonskiy
BIG Thanx Mike I change code: $(document).ready(function() { $('#news').cycle({ fx:'scrollLeft', slideExpr: 'p', speed: 1000, delay: 100,

[jQuery] Use jQuery after a jQuery load

2008-02-04 Thread fufolewe
I've a little question maybe someone could give me a hint My problem is: i want to build a site with a navigation (with jQuery = no problem) which loads some content in a main-div-field. This is absolute no problem with e.g. load( url, data, callback ) or $.ajax( { type: POST, url:

[jQuery] Re: yet another beginner's diary (pls review!)

2008-02-04 Thread Rick Faircloth
I'm still trying to get the hang of the syntax. I could spend more time doing tutorials, but I've been able to ask simple questions and get good, timely answers from the list. They are a helpful, bunch! jQuery is in a fast state of growth, with the core constantly being updated, which is good,

[jQuery] ui accordian behaviour mods

2008-02-04 Thread Jay
Good morning all, The default behavior for the accordion is to close all the open panels when opening a new one. It would be much nicer to have an option for this. It would be quite useful to peruse a list with many panels and have the ability to open some of them and leave them open so you

[jQuery] Validation 1.2 and UI Date Picker issue

2008-02-04 Thread Eridius
I think I found a bug in the validation 1.2 or ui datepicker plug-in. I also have the ui datepicker attacked to two of the form elements. Now when I try to validation a form and the fields that are calendars are not fielded in, the calendar popped up for the first calendar element. Now I am

[jQuery] Re: Help populating an array via JSON

2008-02-04 Thread Josh Nathanson
This is because of the asynchronicity...you will only have the correct data length within the callback function from the getJSON call. Any code along the same block as the getJSON call will be executed without regard to the returned data. What you can do is abstract the code where you are

[jQuery] getting the ID number of a cloned table row

2008-02-04 Thread Bruce MacKay
Hello folks, I'm trying to duplicate a row of an existing table using a function adapted from http://www.nabble.com/Add-Table-row-to12989886s27240.html#a13300133 My problem is that I cannot identify the identifier of the last row (of the original table). The last row of my table has the

[jQuery] Re: Loading GIF Slideshow w/o Modal

2008-02-04 Thread Pickledegg
Thats clever, thanks Ange. So on mouse over the image tags 0207 are loaded. It looks like I'll have to figure a way of loading various additional images (ie the next 6 ) when they click again and so on, and a way to get around loading the same images again when they click back etc. Food for

[jQuery] Re: work with what this.id gave me

2008-02-04 Thread andrea varnier
On 3 Feb, 23:12, marcus [EMAIL PROTECTED] wrote: because i think this is somehow ugly i just wanted to know if there is maybe a better way to do this. you can put the object directly in the variable var chosen = $(this); and then chosen.empty(); I prefer to put a dollar in the variable

[jQuery] Re: IE won't change the 'name' attribute :|

2008-02-04 Thread andrea varnier
fixed. I was working with a cloned element. I was doing $(#something).clone().appendTo(#someone); then selecting the freshly cloned element and modifying it. I learned that it is way better to work with variables. now my code looks like var $cloned = $(#something).clone(); $cloned.find(what I

[jQuery] Re: Another jdMenu problem... IE specific...

2008-02-04 Thread Aceman3000
Hi Jonathan, thank you again for the new version. It works nice, but I encountered a small bug and a missing feature; Bug (or feature): You can´t click parent menulinks because in line 100 (in the binding function) you return false; I commented out this line, so it works fine for me now. Maybe

[jQuery] Re: yet another beginner's diary (pls review!)

2008-02-04 Thread [EMAIL PROTECTED]
Oh dear! Thank you for taking the trouble to read reply, Daniel. learn it, then write about it. Precisely what I have been doing! Not very well, it seems Fail enough times and eventually you'll have a foundation to write about and share with others. My intention was never to write a

[jQuery] Re: yet another beginner's diary (pls review!)

2008-02-04 Thread Rabbit
Reads like a confused monologue. Before you start writing, really think about what you want to convey. If someone reads your blog, will they come away with anything new or useful? I find it often helps to explicitly answer my own questions when I write. In other words, write to learn. If you

[jQuery] Re: JQuery takes 80% of my core2Duo proc on DOM element inserts

2008-02-04 Thread Jake McGraw
Perhaps you could set up a queue using window.setInterval() and limit your appends to 40 or so rows every couple of seconds? Also, do you have an example page where your script can be viewed? - jake On Feb 4, 2008 1:57 PM, Ashish [EMAIL PROTECTED] wrote: Hi , I am very new to jquery. I am

[jQuery] Re: Another jdMenu problem... IE specific...

2008-02-04 Thread Jonathan Sharp
Gah! That doesn't sound like much fun! Get better! (I hear reading a jQuery book or two does wonders for the recovery!) Cheers, -Jonathan On 2/4/08, Chris Jordan [EMAIL PROTECTED] wrote: Jonathan, Thanks for the update! Sorry I didn't see it until now. I've been in the hospital (just had

[jQuery] Re: Another jdMenu problem... IE specific...

2008-02-04 Thread Chris Jordan
Jonathan, Thanks for the update! Sorry I didn't see it until now. I've been in the hospital (just had gastric bypass surgery), and I'm finally at home recovering. Again, thanks for the wonderful plug-in! Chris On Jan 31, 2008 11:01 AM, Jonathan Sharp [EMAIL PROTECTED] wrote: Hi Chris, Just

[jQuery] Re: set focus on change

2008-02-04 Thread Scott Trudeau
Well, in that specific code, you should be able to just $('#testField').focus(); because you are only working with a single field. That said, I think maybe $(this).focus() is what you want for the generic case? (can't recall what $(this) is inside an event callback). Scott On Feb 4, 2008 10:26

[jQuery] Re: yet another beginner's diary (pls review!)

2008-02-04 Thread Rick Faircloth
Hi, Daniel... You're telling Cherry almost the opposite of what she (she?) was told by someone on the list yesterday. She was complaining that there wasn't enough info out there from her perspective to accomplish simple tasks. There's documentation and plug-in usage, but she said she was

[jQuery] Re: set focus on change

2008-02-04 Thread Matt Williams
I should clarify a bit more. The real implementation will be on multiple fields and is for date validation / correction (i.e., changes dashes to slashes). $('#myDateField').change(function() { $.DateCorrection(this) }); If the date errors in this function, I have (function takes el as parameter

[jQuery] Re: Help populating an array via JSON

2008-02-04 Thread Mike Miller
Thanks for the tip. I have now added the following 2 functions to my code: function setStates(obj) { this.states = obj; } function getStates() { return this.states; } function StateSuggestions() { $j.getJSON(client/ajax/getMedList.php, function(data){ setStates(data); }); }

[jQuery] ajaxSubmit and NiceJForms plugins

2008-02-04 Thread zorba
Hello. The NiceJForms plugin is called like following: $.NiceJForms.build(); I build a form dinamically so that I have to call again NiceJForms to apply it to the new elements. Here is the problem, if I do: var options = { //some stuff success:

[jQuery] Re: yet another beginner's diary (pls review!)

2008-02-04 Thread [EMAIL PROTECTED]
Wow, Rick, you remembered! Thank you :)) Daniel's point was fair enough I think, although there is absolutely no sense in my trying to write an authoritative guide to jQuery ... obviously ;) I'll try and reorganise it. And thank you VERY much for your message! Cherry On Feb 4, 3:52 pm, Rick

[jQuery] Re: Author of UI-Tabs Plug-in?

2008-02-04 Thread Klaus Hartl
In addition, I'm not sure if you really need the tabs plugin if you just need to load content into a single div...: var $a = $('ul a').bind('click', funtion() { $a.removeClass('selected'); $(this).addClass('selected'); $('#load-here').load(this.href); return false; }); --Klaus

[jQuery] Re: Detecting ctrl+click on an element

2008-02-04 Thread Giovanni Battista Lenoci
Jeffrey Kretz ha scritto: Another way would be to use the ctrlKey property of the Click event: $('#element').click(function(e) { if (e.ctrlKey) { do_something(); } }); jQuery also normalizes this into the

[jQuery] Re: jCarousel - How do I hide the list before display

2008-02-04 Thread caroig
Ok thank Rich - I'll give that a try - I'd hoped I could hide it all until it's built. On Feb 4, 4:23 pm, rich [EMAIL PROTECTED] wrote: I had this problem once before. I ended setting a fixed height on the parent div and setting overflow:hidden. -rich On Feb 4, 8:03 am, caroig [EMAIL

[jQuery] Re: set focus on change

2008-02-04 Thread Matt Williams
Just to follow up and hopefully help anyone else with this problem. The issue is not jQuery or FF really, but just how javascript is handled. Basically onBlur happens after the code is executed, meaning that after this.focus(), it is still blurred. So the solution is this: setTimeout(function ()

[jQuery] Re: [validate] Validation Plugin - how to remove a control form validation

2008-02-04 Thread Dave Stewart
Hey Jorn, Actually the main form image are part of the Art and Science of CSS book (hell, they published it, so I guess you can) but you could just specify no bg image and have coloured blocks instead. The highlight code is mine, but I've updated the first line to cleaner jQuery to read

[jQuery] Zebra striping in tables

2008-02-04 Thread Snef
Hi, I know how to do some 'zebra-striping' on tables with jQ, but i have a little problem. I have some (unknown amount) tables om a page and I want to 'stripe' the tables seperately, so that all striping is the same in each table. With a simple: $(table tr:even).css(background, #cc) the

[jQuery] replacement image to fade in + out again - how?

2008-02-04 Thread [EMAIL PROTECTED]
Me again :/ OK, I accessibly replaced my h1 with this clunky snip: $('h1').append('img src=\/images/headertext.gif\ alt=\alt text\ title=\title text\ longdesc=\http://something.com/ fullinfo.html /'); There's a visible lag pre-loading on this machine (220kb connection) so I'd appreciate

[jQuery] Re: [Validation] v1.2.1pre - Validating an empty field and

2008-02-04 Thread Rus Miller
Great. Thanks. [subliminal message] Spinner! Spinner! [/subliminal message] On Feb 4, 2008 5:36 PM, Jörn Zaefferer [EMAIL PROTECTED] wrote: Rus Miller schrieb: Yep. You got it. Thanks for great work! Is a spinner coming anytime soon? Not in the 1.2.1 release, I don't yet have a

[jQuery] Re: Firefox: how to center the selected text in textarea

2008-02-04 Thread [EMAIL PROTECTED]
On Feb 1, 10:29 pm, Ariel Flesler [EMAIL PROTECTED] wrote: Hi lihao Is there any method under Firefox that the caret and the selected text can automatically jump to the center of the textarea so that people dont need to scroll down/up to find it?? Not that I know of, but you could force

[jQuery] copy li values to an array

2008-02-04 Thread Paul Jones
I know the following would work if I wanted to copy the values of *each* li to a separate array element. html head title/title script type = text/javascript src=jquery.js/script script type = text/javascript var array1 = new Array() ; $(document).ready(function() {

[jQuery] An Eclipse Plugin for JQuery, other than jQueryWTP ?

2008-02-04 Thread kozEfx
anyone using jQueryWTP in eclipse? the install directions destroyed my eclipse environ and i had to re- install--even though i replaced the modified plugin with a copy of the original. it was odd. I'll settle for a dreamweaver plugin, if anyone knows of one, but would rather have eclipse one.

[jQuery] Re: jCarousel infinite loop problem w/ multiple carousels on display: none

2008-02-04 Thread Josh V
todd, how are you building two carousels on the same page? are you using the same css file to build them? how can i build two carousels with while referencing their own stylesheets. On Jan 31, 4:17 pm, Todd [EMAIL PROTECTED] wrote: I actually was able to figure out what the issue was. Since

[jQuery] Re: Drag n Drop

2008-02-04 Thread Richard D. Worth
Are you using Interface or jQuery UI? If Interface, it's no longer supported (could explain your question going unanswered). If jQuery UI, you'll want to ask on the jQuery UI mailing list: http://groups.google.com/group/jquery-ui/ - Richard On Feb 2, 2008 3:58 PM, [EMAIL PROTECTED] [EMAIL

[jQuery] Re: copy li values to an array

2008-02-04 Thread Jonathan Sharp
Hi Paul, This should do the trick: $('li').each(function(i){ array1[ Math.floor( i / 3 ) ] = $(this).html(); }); Cheers, -Jonathan On 2/4/08, Paul Jones [EMAIL PROTECTED] wrote: I know the following would work if I wanted to copy the values of *each* li to a separate array element.

[jQuery] Re: Zebra striping in tables

2008-02-04 Thread Smith, Allex
Couldn't you just use $(this) and then do whatever selector? $(table).each(function() { $(this).find('tr:even').css(background-color, #ff); }); Maybe I don't understand the question. Allex -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On

[jQuery] Passing dyanamic parameters

2008-02-04 Thread mermer
I'm trying to work out the best ways to pass parameters to JQuery AJAX functions if I don't know the value of the parameters in advance, because the web page has been created dynamically. Take the example, where a user wants to search for details on a range of books. They enter a serarch term

[jQuery] Re: Generating a Mousedown event programmatically - similar to click() generation..

2008-02-04 Thread B
Hi, I am having the same problem with triggering the draggable from a javascript function. If possible could you please share your source hack? Thanks On Jan 29, 2:49 pm, edwardbaafi [EMAIL PROTECTED] wrote: http://docs.jquery.com/Eventshas mousedown, mouseup, mousemove, etc Yes, you are

[jQuery] Re: Could JQuery or Thickbox be eating my image onerror and onload events?

2008-02-04 Thread [EMAIL PROTECTED]
I ran into something very similar...turned out to be an order-of- operations problem...yours could be the same. Try binding the event from your script, and make sure you set the load before the src. The following does not work in IE when the image is in the browser cache (but it works in FF),

[jQuery] Re: [validate] Validation Plugin - how to remove a control form validation

2008-02-04 Thread Jörn Zaefferer
Dave Stewart schrieb: Hey Jorn, Actually the main form image are part of the Art and Science of CSS book (hell, they published it, so I guess you can) but you could just specify no bg image and have coloured blocks instead. The highlight code is mine, but I've updated the first line to

[jQuery] Re: inArray inst working in my script

2008-02-04 Thread Karl Rudd
inArray doesn't return a boolean, it returns an index and -1 if the value is not in the array. jQuery.inArray( value, array ) Determine the index of the first parameter in the Array (-1 if not found). from: http://docs.jquery.com/Utilities/jQuery.inArray#valuearray So you need to

[jQuery] filter vs find

2008-02-04 Thread Kynn Jones
Could someone explain to me the difference between filter and find. Their descriptions sound very similar to me. What are the criteria to choose one over the other? TIA! kynn

[jQuery] Re: copy li values to an array

2008-02-04 Thread Karl Swedberg
Hi Paul, I may have misunderstood what you were going for, but here is a different approach, just in case you were looking for an array like ['abc', 'def', 'ghi']: var txt = '', array1 = []; $('ul:first li').each(function(i){ txt = txt + $(this).html(); if (i % 3 == 2) {

[jQuery] Re: inArray inst working in my script

2008-02-04 Thread Sebastián Würtz
Sebastián Würtz escribió: jQuery.getCSS = function(url, media, rel, title) { estilos_href = new Array(); $.each( document.styleSheets, function(i, n){ estilos_href[i] = n.href; }); nuevo_estilo = jQuery(document.createElement('link')).attr({ href: url,

[jQuery] Re: Validation 1.2 and UI Date Picker issue

2008-02-04 Thread Jörn Zaefferer
Eridius schrieb: I think I found a bug in the validation 1.2 or ui datepicker plug-in. I also have the ui datepicker attacked to two of the form elements. Now when I try to validation a form and the fields that are calendars are not fielded in, the calendar popped up for the first calendar

[jQuery] Re: [Validation] v1.2.1pre - Validating an empty field and

2008-02-04 Thread Jörn Zaefferer
Rus Miller schrieb: Yep. You got it. Thanks for great work! Is a spinner coming anytime soon? Not in the 1.2.1 release, I don't yet have a schedule for further releases. I'll keep it in mind. And by the way, 1.2.1 bundles both the delegate plugin and the necessary part of the

[jQuery] Re: Email validation broken in plugin v1.2?!

2008-02-04 Thread Seth - TA
Jörn - Thanks for doing that. Is 1.2.1 out? I saw in the trunk that the validate.js says 1.2.1pre. Is it usable? Thanks. Seth On Jan 31, 6:27 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: Scott González schrieb: Please, don't do that. The modified regex you provided is way over simplified.

[jQuery] Re: Generating a Mousedown event programmatically - similar to click() generation..

2008-02-04 Thread B
Hi, I am trying to also trigger the draggable from within a javascript function. If possible can you please share your source hack. Thanks On Jan 29, 2:49 pm, edwardbaafi [EMAIL PROTECTED] wrote: http://docs.jquery.com/Eventshas mousedown, mouseup, mousemove, etc Yes, you are able to

[jQuery] Re: An Eclipse Plugin for JQuery, other than jQueryWTP ?

2008-02-04 Thread Smith, Allex
What about Aptana? Community Edition is free. http://www.aptana.com/studio -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kozEfx Sent: Monday, February 04, 2008 12:03 PM To: jQuery (English) Subject: [jQuery] An Eclipse Plugin for JQuery,

[jQuery] UPDATER

2008-02-04 Thread [EMAIL PROTECTED]
Is there any function like AJAX.UPDATER in Prototype ?? Or how can I automaticly do AJAX.req in time interval for.ex. 2 minutes ?

[jQuery] Re: filter vs find

2008-02-04 Thread Karl Swedberg
filter will select a certain subset (zero or more) of the already selected elements. find will select a set of (zero or more) elements that are descendants of the already selected elements. Here is an example: div class=peanuts p class=elephants/p /div div class=elephants

[jQuery] Re: jquery newbie test

2008-02-04 Thread Josh Nathanson
Access...confirmed. =] - Original Message - From: CFMike To: jquery-en@googlegroups.com Sent: Monday, February 04, 2008 4:00 PM Subject: [jQuery] jquery newbie test Please ignore. I am new to the jquery list. I am just testing my access. Thank you for your patience.

[jQuery] Re: jquery newbie test

2008-02-04 Thread Aaron Heimlich
Your test has succeeded! On Feb 4, 2008 6:00 PM, CFMike [EMAIL PROTECTED] wrote: Please ignore. I am new to the jquery list. I am just testing my access. Thank you for your patience. -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com

[jQuery] Re: filter vs find

2008-02-04 Thread Jeffrey Kretz
Filter applies the current selection, while Find searches child elements. $('td').filter(expr) will remove any TDs that don't match the filter criteria. $('td').find('span') will find spans inside tds. This is functionally similar to $('td span'); JK _ From:

[jQuery] Re: Generating a Mousedown event programmatically - similar to click() generation..

2008-02-04 Thread edwardbaafi
Hi B, I would think this is an important feature so the fact that you are looking to do the same thing means I am not alone.. I'd like to submit this as a feature but am still trying to figure out the state of trigger's undocumented parameter fn:

[jQuery] Re: Generating a Mousedown event programmatically - similar to click() generation..

2008-02-04 Thread edwardbaafi
Here's an example using the hacked source that starts dragging one element when you click (mousedown) on another element. Notice the null value passed as the undocumented fn parameter: html xmlns=http://www.w3.org/1999/xhtml;head meta http-equiv=Content-Type content=text/html; charset=UTF-8 /

[jQuery] jquery newbie test

2008-02-04 Thread CFMike
Please ignore. I am new to the jquery list. I am just testing my access. Thank you for your patience.

[jQuery] Re: copy li values to an array

2008-02-04 Thread Karl Swedberg
Oops. I forgot to take out the ul:first part of the selector. I had put that in there when I was testing on a random page in Firebug, so you can safely take it out. Also, if your LIs just have text in them, you can use $(this).text() instead of $(this).html() --Karl On Feb 4, 2008, at

[jQuery] Re: Zebra striping in tables

2008-02-04 Thread Karl Swedberg
One way to solve your dilemma is to use tr:nth-child(even). That will select all table rows that are an even child of their parent element. This should work: $(table tr:nth-child(even)).css(background, #cc); --Karl _ Karl Swedberg www.englishrules.com

[jQuery] Re: JQuery Size YUI Compressor mod_deflate/GZIP

2008-02-04 Thread Geoff Millikan
Joel, Wow, I had no idea that packed JavaScript had to be unpacked on each page load! Ouch! So if I'm reading the data right on the JavaScript Library Performance Test Roundup it seems as though the way to go is defiantly the Yahoo minified script with GZIP at 131ms cached (731ms uncached).

[jQuery] Re: jCarousel - How do I hide the list before display

2008-02-04 Thread rich
Ah, ok. I thought you were looking to hide that quick flash of the image list before they 'stack' up. On Feb 4, 3:01 pm, caroig [EMAIL PROTECTED] wrote: Ok thank Rich - I'll give that a try - I'd hoped I could hide it all until it's built. On Feb 4, 4:23 pm, rich [EMAIL PROTECTED] wrote:

[jQuery] Re: replacement image to fade in + out again - how?

2008-02-04 Thread [EMAIL PROTECTED]
I gave up and made an animated image [shrugs]. On Feb 4, 11:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Me again :/ OK, I accessibly replaced my h1 with this clunky snip: $('h1').append('img src=\/images/headertext.gif\ alt=\alt text\ title=\title text\

[jQuery] dynamic classes

2008-02-04 Thread jg
I'm trying to trigger a form to show below a given comment in a list of comments but because I'm using a collection, the classes need to be dynamic. I'm not sure how to target a given comment. Right now, when I click on any of the buttons, the forms show for all the comments. Hope that makes

[jQuery] Re: how to bind one action to multiple events?

2008-02-04 Thread [EMAIL PROTECTED]
Update: A more accessible hover function. I did my homework, then did this: // a more accessible hover function jQuery.fn.extend({ hover: function(fnOver, fnOut) { return this.bind('mouseenter mouseover focus', fnOver).bind('mouseleave mouseout blur', fnOut); }

  1   2   >