[jQuery] Re: listnav, but for tables?

2009-05-04 Thread Tor
Hi, sorry for replying late, what would be interesting would be to be able to add a letter navigation / filter block to an existing juery datatables setup, or a table configured with tablesorter. I assume it would involve selection on tr, but also triggering a repagination. Two modes would be inte

[jQuery] Access to the outer object from $.each.

2009-05-04 Thread ShurikAg
I have the code bellow as bellow: jQ.fn.Form = function(){ //check if the element is a form if(!jQ(this).is("form")){ alert("Expecting form element!"); return this; } jQ(":input", this)

[jQuery] Re: jQuery-way for filtering self + all children

2009-05-04 Thread Brandon Aaron
Yeah, I see what you mean. What about .findAndSelf(selector)? Trying to stick with existing naming conventions... Do you have some sample scenarios to go along with this need? Like actual HTML, etc. Would you mind filing a new enhancement ticket for this? http://dev.jquery.com/newticket -- Brandon

[jQuery] Re: parent element jumps when child fades in or out

2009-05-04 Thread Jordon Bedwell
Try making the element display:inline; instead of block. Or speed up the animation. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of chadwithuhc Sent: Sunday, May 03, 2009 11:57 PM To: jQuery (English) Subject: [jQuery] parent element j

[jQuery] Re: How to select all text in a div except ul

2009-05-04 Thread mkmanning
Sorry, maybe my response was somewhat confusing, but I don't believe you'll get a concatenated string (as the OP's followup indicates). After using .filter(), you'll get an array-like object (it's still the jQuery object) which contains the text nodes. Calling .text() on those won't actually conc

[jQuery] Re: image for public usage

2009-05-04 Thread Tim Johnson
On Monday 04 May 2009, Sam Sherlock wrote: > http://docs.jquery.com/Design_and_Identity Thanks a lot! Does the trick.. tj

[jQuery] grid-based page editor

2009-05-04 Thread Milan Andric
Hello, I’m looking for a javascript grid-based page editor, for lack of a better term. Some javascript code that takes a set of vanilla html div blocks and allows you to order them, move them, expand contract and maintains the grid system in a fixed width interface, like 12 column 960. The javasc

[jQuery] Re: jQuery-way for filtering self + all children

2009-05-04 Thread Pappy
While it will be nice to pass in a selector to andSelf, it's a shame you'll have to repeat the selector in both the 'find' and 'addSelf'. I'd still rather there be only one function necessary. It's an awfully common pattern. Honestly, I wish 'find' had been this way from the start, and there was

[jQuery] Re: jQuery-way for filtering self + all children

2009-05-04 Thread Brandon Aaron
FYI... There is an open enhancement ticket that proposes adding an optional selector to the .andSelf() method. http://dev.jquery.com/ticket/4446 -- Brandon Aaron On Mon, May 4, 2009 at 5:11 PM, Pappy wrote: > > Just curious... what's the jQuery-way of saying "Give me all children > that match a

[jQuery] jQuery-way for filtering self + all children

2009-05-04 Thread Pappy
Just curious... what's the jQuery-way of saying "Give me all children that match a filter and include myself if I happen to match as well."? I've been using - element.find("*").andSelf().filter([myfilter]) but that seems kludgy. Is there a better way? If not, I'll just wrap this as "findInclus

[jQuery] Re: How to select all text in a div except ul

2009-05-04 Thread nick
That still seems to only return an object rather than a string. This works though... alert($('div').clone().children().remove().end().text()); Is there a better way to get a string than that? On May 2, 6:28 pm, mkmanning wrote: > Don't use .text(), you'll get an array-like object of text nod

[jQuery] Re: image for public usage

2009-05-04 Thread Sam Sherlock
see these http://docs.jquery.com/Design_and_Identity http://blog.jquery.com/2006/11/07/jquery-button-contest-winners/ - S 2009/5/4 Tim Johnson > > Since jQuery is one of my "tools" - I'd like an appropriately > "public" image to use on my website. > > Are any available? > thanks > tim >

[jQuery] image for public usage

2009-05-04 Thread Tim Johnson
Since jQuery is one of my "tools" - I'd like an appropriately "public" image to use on my website. Are any available? thanks tim

[jQuery] Solution: extended nextUntil to wrap multiple sibling elements inside a common container element :)

2009-05-04 Thread Kristian
jQuery.fn.nextUntil = function(expr, includes){ var match = []; includeFirst = includes.first ? true : false; includeLast = includes.last ? true : false; // We need to figure out which elements to push onto the ar

[jQuery] Re: Calling an element tag and the value inside one of it's attributes

2009-05-04 Thread Blaine
Expanding on my example below, with the each function. First final all elements. Then do whatever you want with the element. $("span[printData]").each( function( key, elementRef){ alert( $(elementRef).text() ); }); On May 4, 2:16 pm, Andy H wrote: > Here is an actual example.  Would anyone kno

[jQuery] Re: Calling an element tag and the value inside one of it's attributes

2009-05-04 Thread Blaine
You need to read the jquery selector docs at http://docs.jquery.com/Selectors/attributeHas#attribute Below is the code that will get your data. $("span[printData]").text(); On May 4, 12:33 pm, Andy H wrote: > For some reason this post disappeared.  Can anyone answer this? > > Thanks! > > On

[jQuery] Re: Question in JSON

2009-05-04 Thread MorningZ
if you had: var json = {"4":{"6":"1"},"3":{"1":"1","2":"1"}} and this div: then this code: $.each(json, function(Parent, Values) { $("#Results").append("Parent: " + Parent + ""); $.each(values, function(key, val) { $("#Results").append("-- Key: " + key + ", Value:

[jQuery] Re: unwanted delay with css()

2009-05-04 Thread Ricardo
On May 1, 10:25 am, bluejohn wrote: > Hi, > > I'm running an A/B test using a 3rd party javascript testing app.  I'm > loading the jquery script with the tool. > > >   $(document).ready(function(){ >       $(".cartInStock").css({display : " none "}); >   }); >   > > The problem is that the orig

[jQuery] Re: Calling an element tag and the value inside one of it's attributes

2009-05-04 Thread Andy H
Here is an actual example. Would anyone know why this isn't working? What I find weird is if I do a single line (alert($("span").attr ("printElement"));) it works fine. But if I try to use the each() function following it, nothing happens. Any help would be great. Thanks! HTML:

[jQuery] Re: jquery object and functions

2009-05-04 Thread Jordon Bedwell
We'd have to see more of the source code than to diagnose the issue, it's far beyond that local piece. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of introvert Sent: Monday, May 04, 2009 2:55 PM To: jQuery (English) Subject: [jQuery] R

[jQuery] Re: jquery object and functions

2009-05-04 Thread introvert
I get the same error. On May 4, 9:51 pm, "Jordon Bedwell" wrote: > Try: > > $(this).find('img').attr({'src':img[n][0],'alt':img[n][1]}); > > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > > Behalf Of introvert > Sent: Monday, May 04, 2009 2

[jQuery] Re: jquery object and functions

2009-05-04 Thread Jordon Bedwell
Try: $(this).find('img').attr({'src':img[n][0],'alt':img[n][1]}); -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of introvert Sent: Monday, May 04, 2009 2:38 PM To: jQuery (English) Subject: [jQuery] jquery object and functions Hello.

[jQuery] Re: need some suggestion about adding active class for one page link

2009-05-04 Thread jQnoob
thanks so much for the reply! I was able to apply the class but was unable to figure out how to remove the existing active class on other links. I'll try this out. Again, thanks so much! On May 4, 7:48 am, Nathan wrote: > If I understand you both correctly. > > You'll need to add a class of a

[jQuery] Re: empty() is faking ?

2009-05-04 Thread Olivier Percebois-Garve
That explains my issue very well and will save me a lot of headaches. (and gives a few ideas for a debug plugin) thank you -Olivier Ricardo wrote: Could not make much sense out of your video either :D The thing is: when you log an object or element in firebug, it's just a reference to the ob

[jQuery] jquery object and functions

2009-05-04 Thread introvert
Hello. I'm having problems with the following code: var img = []; // var o = this.find('img'); o.attr('src', img[n][0]).attr('alt', img[n][1]); The error I get is: o.attr("src", img[n][0]).attr is not a function What am I doing wrong? Many thanks in advance!

[jQuery] Re: empty() is faking ?

2009-05-04 Thread Ricardo
Could not make much sense out of your video either :D The thing is: when you log an object or element in firebug, it's just a reference to the object itself, not a snapshot of it at that instant in time. It will always show the object as it is *now*. Try this in the console: x = {a:1}; console.l

[jQuery] Re: cluetip plugin: how to implement a cluetip picture to a homepage logo?

2009-05-04 Thread flyfisherman
Sorry for that I did not see a missed that folder js... It works now, looks nice in Safari Win, Opera Win. But in IE 8 and Firefox 3.03 the logo has now that awful link border. How can I change that? Txs Markus On 4 Mai, 21:09, Karl Swedberg wrote: > For starters, change the src value in these

[jQuery] Re: jQ Methods Load Order

2009-05-04 Thread kiusau
Thank you for responding, Ricardo. On May 4, 11:20 am, Ricardo wrote: > My bet is that jQuery and some of the other (many) scripts are colliding, > since the '$' object is being overwritten. I am not sure that I understand when you say that the '$' is being overwritten. Also, this is the first

[jQuery] Question in JSON

2009-05-04 Thread Dman
Hello, I recently learnt jQuery but I am having problems on working with JSON. I am loading the JSON data from PHP file using $.getJSON. The JSON returned is {"4":{"6":"1"},"3":{"1":"1","2":"1"}} and array for reference is Array ( [4] => Array ( [6] => 1 ) [3]

[jQuery] jquery & validation in cakephp

2009-05-04 Thread ZedR
I am validating form fields on blur event in jquery. How do I validate more than 1 field in the controller action called from ajax with $params['form']. Code I m trying is: //ajax action in controller function ajax_validate() { Configure::write('debug', 0); if($this->Request

[jQuery] jQuery/Webkit bug?

2009-05-04 Thread phpn1b
I wrote a plugin that works great in every browser except Webkit (Safari, Chrome), and the problem I'm experiencing with Webkit is intermittent. What appears to happen is that the first time a Webkit browser sees the page, it miscalculates the position of a div centered using CSS. Reloading the pa

[jQuery] Re: looking for a jquery comparison to this mootools image menu

2009-05-04 Thread scott
Check out http://www.alohatechsupport.net/webdesignmaui/maui-web-site-design/create_image_menu_with_jquery.html for a good alternative. On Apr 28, 12:37 pm, B wrote: > please see the link.http://www.phatfusion.net/imagemenu/ > > Anyone know of a jquery option that is similar to this mootools im

[jQuery] Re: Wrapping p siblings following h1 in divs

2009-05-04 Thread Kristian
I needed the same solution. Been stuck for hours trying to solve this... I really hope this get added to the standard manipulators in a next release and gets documented too ;) On 16 Apr., 23:14, Claes H wrote: > On Thu, Mar 26, 2009 at 4:01 AM, Ricardo wrote: > > > jQuery.fn.nextUntil = functio

[jQuery] Please review my micro-plugin for a perceived hole in the jQuery API

2009-05-04 Thread ken
Does anyone see a problem with this? Has anyone else had to implement something similar? Why wasn't something like this included with jQuery? /** * An AJAX extender for jQuery.fn. * * jQuery's low-level ajax implementation can handle every scenario EXCEPT the situations where we want to apply

[jQuery] Re: cluetip plugin: how to implement a cluetip picture to a homepage logo?

2009-05-04 Thread Karl Swedberg
For starters, change the src value in these lines: script>