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
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)
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
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
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
On Monday 04 May 2009, Sam Sherlock wrote:
> http://docs.jquery.com/Design_and_Identity
Thanks a lot! Does the trick..
tj
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
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
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
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
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
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
>
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.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
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
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
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:
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
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:
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
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
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.
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
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
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!
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
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
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
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]
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
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
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
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
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
For starters, change the src value in these lines:
script>