[jQuery] Re: A better way to do this?

2008-08-24 Thread MorningZ
".find()" should help $(this).find("ul > li > a").each( )

[jQuery] Re: Check checkbox based on ID list

2008-08-24 Thread Michael Geary
If you're able to do that, why not have the server just put the attribute in the HTML in the first place? -Mike > From: hubbs > > I figured it out, I just had my server write the jQuery attributes: > > $("#12").attr("checked", "checked"); > > On Aug 22, 11:58 am, hubbs <[EMAIL PROTECTED

[jQuery] Re: Add a class only to the first parent

2008-08-24 Thread FrenchiINLA
$('.menu:first').addClass("bar"); On Aug 24, 3:24 pm, Massimiliano Marini <[EMAIL PROTECTED]> wrote: > Hi all, > > I need some help, I want to apply a class with 'addClass' at all of > the first and not to the second > > Example: > > >   1 >   2 >   >     >       3 >       4 >   > > > >

[jQuery] Re: Appreciation

2008-08-24 Thread ripple
Wasn't expecting Devo, but I thought more like Motley Crue.     --- On Sun, 8/24/08, Michael Geary <[EMAIL PROTECTED]> wrote: From: Michael Geary <[EMAIL PROTECTED]> Subject: [jQuery] Re: Appreciation To: jquery-en@googlegroups.com Date: Sunday, August 24, 2008, 9:54 PM Not only that, but we ha

[jQuery] Appreciation

2008-08-24 Thread john6630
As a newbie, I want to express my appreciation to the code authors and the members who provide such fantastic support. As a newbie, I also joined the javascript group and am amazed at the difference. Here all is positive and supportive while over there they are negative and contentious (not to men

[jQuery] Re: Appreciation

2008-08-24 Thread Michael Geary
Not only that, but we have a theme song! Here we come, Scripting down the street, Just trying to be friendly, To everyone we meet, Hey hey we're jQuery, People say we query around, But we're too busy coding, To put anybody down. (You were expecting Devo?) -Mike

[jQuery] Re: Livequery and iFrames

2008-08-24 Thread hubbs
I worked on another, simpler example of reloading the listing with a link, and I get the same unwanted results. In the iframe: $("#refreshB").click(function() { $.ajax({ type: "GET", url: "http://www.mysite.com";, beforeSend: function() {

[jQuery] Re: How do I cache a page once it has been loaded via AJAX?

2008-08-24 Thread GasGiant
When I am loading content for view as things are clicked or expanded, I just hide the content until it is ready to be viewed, then toggle it into view.

[jQuery] Re: Accordion + load dynamic JSON data

2008-08-24 Thread David D.
Heh, Yeah AFTER posting then it hit me...I just have to attach an onClick to the and begin the loading process :-/ duh. Oh well, thanks anyways. :-p JQuery rocks! Dave On Aug 24, 7:09 pm, "David D." <[EMAIL PROTECTED]> wrote: > Hi there, > > I just started making great use of the JQuery UI c

[jQuery] Re: Selecting text nodes

2008-08-24 Thread Tom B.
Thanks for the quick response, Karl. I'm not sure if this would quite do it--It looks like you can get an array of the contents of the text nodes, and you could do a .replace() on those array elements, but I'm not sure how you would then insert the new text back into the text nodes. It seems lik

[jQuery] Re: Add a class only to the first parent

2008-08-24 Thread Massimiliano Marini
> $('.menu:first').addClass("bar"); Thanks to you and Olaf, the right way was: $(".menu:first > li").addClass("bar"); I know it was so easy, but thanks 1k :) -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ "It's easier to invent the future than to predict it." -- Alan Kay

[jQuery] Re: Add a class only to the first parent

2008-08-24 Thread Olaf Bosch
Massimiliano Marini schrieb: I need some help, I want to apply a class with 'addClass' at all of the first and not to the second ah sorry after reading better ;) $("#foo > .menu > li:not(.expanded)").addClass("bar"); or so $("#foo > .menu > li").addClass("bar"); see what better for you,

[jQuery] Re: A better way to do this?

2008-08-24 Thread Dana
Gracias amigo, that did the trick! I knew it was simple ;-) On Aug 24, 4:27 pm, MorningZ <[EMAIL PROTECTED]> wrote: > ".find()" should help > > $(this).find("ul > li > a").each( > > )

[jQuery] Re: Can't get css png fix plugin to work....

2008-08-24 Thread Aaron
what do I have to do to get the script to work??? all I done was add it to the html page using

[jQuery] Sortables Update Still Showing Old Sort Position (With New Position)

2008-08-24 Thread madacc
Here's the code: $("#sort1").sortable({ connectWith: ['#sort2', '#sort3'], revert: true, items: '.groupItem', handle: '.itemHeader', placeholder: 'moduleSortHelp

[jQuery] Accordion + load dynamic JSON data

2008-08-24 Thread David D.
Hi there, I just started making great use of the JQuery UI components and must admit, they are *awesome*. I am however having some trouble trying to figure out how to modify my accordion code so that I can support dynamic loading of content. So for example when the user clicks to load the accord

[jQuery] Livequery and iFrames

2008-08-24 Thread hubbs
I am trying to track down a problem, and I am wondering if it has to do with iFrames. I use livequery to rebind some the jQuery UI draggable event to a list of links. I have an ajax refresh button, which refreshes the list, and livequery rebinds the draggable events, which works great. But, I h

[jQuery] Re: Add a class only to the first parent

2008-08-24 Thread Olaf Bosch
Massimiliano Marini schrieb: I need some help, I want to apply a class with 'addClass' at all of the first and not to the second How can I achieve this? Is possible without using the each() function? Any help, suggestions, examples are welcome. $("#foo > .menu").addClass("bar"); you hav

[jQuery] Re: Doc's site down?

2008-08-24 Thread Matt W.
Themeroller is unusable today.

[jQuery] Using instead of with Superfish

2008-08-24 Thread Joe
Hi, Thanks to Joel for creating Superfish. It has eliminated many headaches for me. My implimentation is almost complete, but my lack of javascript knowledge is showing (the CSS is tough enough for me). I have a like so: first category item 1 ite

[jQuery] Re: Doc's site down?

2008-08-24 Thread Oliver Beattie
So slow at the moment, they keep timing out. > (I would love to know who the host is so I will be sure to avoid > them). It seems jQuery's host is "RimuHosting" http://rimuhosting.com/ — but they only offer VPS/Dedicated so it's not as if this can be pinned as the host's fault… looks like jQuery

[jQuery] Re: Can't get css png fix plugin to work....

2008-08-24 Thread Aaron
well this is what I done: I put in html:http://www.mydomain.com/sharedscripts/alphapngfixforIE.js";> that was it. Do I have to do more then just inlcuding it?? On Aug 23, 3:24 am, "Rene Veerman" <[EMAIL PROTECTED]> wrote: > did you initialize the script after loading it? > > On Fri, Aug 22, 2

[jQuery] Add a class only to the first parent

2008-08-24 Thread Massimiliano Marini
Hi all, I need some help, I want to apply a class with 'addClass' at all of the first and not to the second Example: 1 2 3 4 How can I achieve this? Is possible without using the each() function? Any help, suggestions, examples are welcome. -- Massimiliano Mari

[jQuery] Re: [validate] Form doesn't show in IE

2008-08-24 Thread Jörn Zaefferer
You've got an illegal trailing comma somewhere in the code that gets loaded when clicking on Kontakt oss. Firebug doesn't give a useful line number, but this message should help to spot it: trailing comma is not legal in ECMA-262 object initializers [Break on this error] },messages: {\n Enable s

[jQuery] Release: Tooltip Plugin 1.3

2008-08-24 Thread Jörn Zaefferer
Hi, I'd like to announce a small update for the http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/";>jQuery tooltip plugin. The support for image maps is back, the deprecated $.fn.Tooltip is gone (just use tooltip() instead), and two new features: A fade option, which takes the duration t

[jQuery] Re: attr('onclick','') problem on ie6

2008-08-24 Thread Ariel Flesler
That simply doesn't work on IE. Use bind() instead. -- Ariel Flesler http://flesler.blogspot.com/ On Aug 24, 8:41 am, Sarbesh <[EMAIL PROTECTED]> wrote: > Hi, > > i'm new to jquery and i'm having some problem. > > the code below works fine in FF3.0 but doesn't work with IE 6.0. > i used it to sh

[jQuery] Re: jquery is not defined (newbie)

2008-08-24 Thread pedalpete
Looks like you are not properly refrencing the jquery script. You should have an entry in your header that looks like [code] [/code] except the src should point to YOUR jquery file. On Aug 24, 10:12 am, Scott Phillips <[EMAIL PROTECTED]> wrote: > I am trying to get datepicker plugin (http:/

[jQuery] Re: Selecting text nodes

2008-08-24 Thread Karl Swedberg
I wrote a plugin that may help: http://plugins.learningjquery.com/textchildren/ --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Aug 24, 2008, at 4:20 PM, Tom B. wrote: Does anyone have code for a text node selector? I saw this post: http://groups.google.

[jQuery] Re: Doc's site down?

2008-08-24 Thread john6630
The site was excrutiatingly slow for me yesterday and today. Fortunately I have bookmarked other sites which provide documentation. But it is really a bad advertisement for jQuery when its own site performs so badly!! Maybe someone could setup a "for pay" site with a nominal annual fee and get a b

[jQuery] A better way to do this?

2008-08-24 Thread Dana
Hey All, What's a better way to write: $(this).children('ul').children('li').children('a').each(function() { // Stuff here... }); I tried: $(this).children('ul > li > a').each(function() { // Stuff here... }); But its not returning the correct results. Im sure this is easy, c

[jQuery] Selecting text nodes

2008-08-24 Thread Tom B.
Does anyone have code for a text node selector? I saw this post: http://groups.google.com/group/jquery-en/browse_thread/thread/2dda27130338f1af/b04adcf147e15ab1 but the function textNodes didn't seem to work with the current version of jQuery. I'm a bit new to jQuery, but I ultimately want to d

[jQuery] Re: jQuery 1.2.6 event.altKey is undefined

2008-08-24 Thread Tzury
thanks again, you may close the ticket I opened yesterday regarding this (http:// dev.jquery.com/ticket/3284) On Aug 24, 9:51 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote: > It has already been fixed in SVN. If you don't want to use the SVN version > then simply reference the altKey property lik

[jQuery] Re: jQuery 1.2.6 event.altKey is undefined

2008-08-24 Thread Tzury
> It has already been fixed in SVN. If you don't want to use the SVN version > then simply reference the altKey property like this: > event.originalEvent.altKey thanks for the information - that props copying line was the problem. anyway, in my case for the matter of backward (and forward) compat

[jQuery] Re: SUPERFISH Supersubs problem in mozilla firefox

2008-08-24 Thread andy
I had initially set the font-size using pixels in 3 places in the css. I switched those over to em units. However, this problem is still happening in Firefox. I also have been going over every bit of code in the js, the css, and the html, and I am stumped. The example on the superfish page usin

[jQuery] Re: jQuery 1.2.6 event.altKey is undefined

2008-08-24 Thread Tzury
The latest version that behave correctly is 1.2.4. How could I submit a fix for this issue? On Aug 23, 8:50 pm, Tzury <[EMAIL PROTECTED]> wrote: > problem: > event.altKey is undefined. > > environment: > Linux/ FF 3.0.1 / jQuery-1.2.6 > > remark: > when I am using older version (1.1.4) everythin

[jQuery] Re: jQuery 1.2.6 event.altKey is undefined

2008-08-24 Thread Brandon Aaron
It has already been fixed in SVN. If you don't want to use the SVN version then simply reference the altKey property like this: event.originalEvent.altKey -- Brandon Aaron On Sun, Aug 24, 2008 at 1:06 PM, Tzury <[EMAIL PROTECTED]> wrote: > > The latest version that behave correctly is 1.2.4. > H

[jQuery] weird behavior with show()

2008-08-24 Thread clrockwell
Hello all, I could really use some insight in this. I am using the following jquery to show a menu on hover. The issue is that if you do not hover the link until the menu is completely shown, it pops up underneath. It's probably best if you just see what it does: http://www.chrisrockwell.com/cs

[jQuery] [validate] Form doesn't show in IE

2008-08-24 Thread flopp
I'm using jquery with validation and form plugin. All my forms works in FF, but in IE the site is blank. URL: http://test.mittskift.no/ Click on "Kontakt oss" in the top-menu.

[jQuery] Re: Safari 3 working locally but not on the web.

2008-08-24 Thread Dave Methvin
Looks like a fun site! The Google ads code that you have is script after the head is closed but before the body is opened. That won't validate. Also, there are several tags that aren't closed properly if you're using an XHTML doctype. Maybe Safari is picky about that? http://validator.w3.org/

[jQuery] Re: How dynamically create iframe and add/remove data from it

2008-08-24 Thread pedalpete
Personally, I try not mixing jquery components with standard javascript (like your document.createElement), with the exception of within functions. Somebody else can probably comment on what is appropriate. I'd write this something like [code] $('#container').append(''); $('#commentiframe').attr(

[jQuery] Re: Interface plugin SortableAddItem on dynamic content...

2008-08-24 Thread Scott González
Interface hasn't been supported for a very long time, so you're not going to find any help on this. You should consider using jQuery UI http://ui.jquery.com On Aug 20, 10:39 pm, sergeh <[EMAIL PROTECTED]> wrote: > hey guys, > > been trying to make this work but haven't been successful yet, I wa

[jQuery] Re: Doc's site down?

2008-08-24 Thread Sudara
Hi there! Anyone else have somewhat regular issues with http://docs.jquery.com/ being regularly slow and/or unavailable over the last few months? Especially during PST mornings, it seems to consistently drag. Sudara

[jQuery] Re: Getting name of element in $.each, when used on object?

2008-08-24 Thread Josh Rosenthal
And... yeah. That does it. Embarrassing, but I guess I've not used for..in before, and didn't realize what it did. I do now :-) Much obliged. On Aug 24, 9:13 am, Evan <[EMAIL PROTECTED]> wrote: > Try this: > > var i = 0; > var s = ''; > for (var prop in o) > { >    if (i > 0) >       s += '&'

[jQuery] Re: Cache problem

2008-08-24 Thread Karl Swedberg
Shot in the dark here... make sure script tag has type="text/javascript" if that's not the issue, server configuration? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Aug 20, 2008, at 4:57 PM, regent wrote: My js files are being cached as HTML Documents

[jQuery] Re: nth-child() vs. even/odd

2008-08-24 Thread Karl Swedberg
On Aug 23, 2008, at 11:11 PM, Dave Methvin wrote: In contrast, :nth-child(even) selects the even children of the element(s) in the jQuery object. Just to clarify, :nth-child(even) selects all elements in the jQuery object that are the even children of their parent. For example, $('td:nth-c

[jQuery] Re: Issue Related to Interface.js plugin with on jQuery 1.2.6 in Internet Explorer.6

2008-08-24 Thread Scott González
Yes, jQuery UI should contain all the functionality you're looking for. If there are unsupported features, feel free to create tickets asking for the desired functionality. On Aug 20, 2:24 pm, AQuery <[EMAIL PROTECTED]> wrote: > Thanks for the info, > > Does UI plugin has all the features that

[jQuery] Re: attr('onclick','') problem on ie6

2008-08-24 Thread ripple
Your totally removing the onclick, so when your trying to modify it, it no longer exists.   function show_hidden_row(id,a_id){     $(id).show();      $(a_id).attr("onclick","hide_shown_row('"+id+"','"+a_id+"')");   $(a_id).html(''); }   --- On Sun, 8/24/08, Sarbesh

[jQuery] Re: Best practices for including Jquery

2008-08-24 Thread ripple
I rarely see a situation where the javascript should be or needs to be placed anyplace else but the head of the document(Well, except for advertising).   But I think it also might have to factor into how a webpage is built. If you have a header, left nav, right nav, but only need a script for the

[jQuery] Re: jQuery.forms javascript in response ignored ?

2008-08-24 Thread Mike Alsup
If it's a large amount of code then put in on pastie.org or somewhere like that. But it is much easier to help you if you can create a simple example and host it so we can see it in action and use a debugger. Mike On Aug 24, 4:41 am, Alexey <[EMAIL PROTECTED]> wrote: > No. It's not hosted yet.

[jQuery] attr('onclick','') problem on ie6

2008-08-24 Thread Sarbesh
Hi, i'm new to jquery and i'm having some problem. the code below works fine in FF3.0 but doesn't work with IE 6.0. i used it to show and hide table row when user click the show/hide icon id and a_id are dynamic ids. id will be something like #23, and a_id like #id_23 function show_hidden_row

[jQuery] Re: jQuery countdown

2008-08-24 Thread Sarbesh
instead of "div" you can use "span" Je mag weer spelen over !

[jQuery] Re: jQuery countdown

2008-08-24 Thread Sarbesh
instead of "div" you can use "span" Je mag weer spelen over ! hopefully this will do it..

[jQuery] Re: Getting name of element in $.each, when used on object?

2008-08-24 Thread Evan
Try this: var i = 0; var s = ''; for (var prop in o) { if (i > 0) s += '&'; s += prop + '=' + o[prop]; ++i; } alert(s); On Aug 24, 5:12 pm, "Josh Rosenthal" <[EMAIL PROTECTED]> wrote: > Hey Folks, > > Probably a rather basic question here, but my attempts at figuring it out > hav

[jQuery] Re: idiot alert!!! stupid jeditable question

2008-08-24 Thread Mika Tuupola
On Aug 18, 2008, at 3:08 PM, Chris Hall wrote: Sorry for the stupid question, but can someone help me understand what I need to do to with jeditable (great plugin!) so when my text area data is submitted the line breaks are converted to br tags, but when the user edits the same text area again

[jQuery] Getting name of element in $.each, when used on object?

2008-08-24 Thread Josh Rosenthal
Hey Folks, Probably a rather basic question here, but my attempts at figuring it out have come to no success. I'm using $.each to loop through the attributes of an object, and write them out into a string. The object contains a series of parameters that will be passed through a url (for a geoser

[jQuery] Best practices for including Jquery

2008-08-24 Thread bradvin
I have been wondering where others feel its best to include jquery and other .js files in the html. Include it in the HEAD or at the end of the html document just before you close the BODY tag? There are arguments for including it at the end of the document so that the dom is fully loaded by the

[jQuery] Re: autocmplete working ( kinda)

2008-08-24 Thread Jörn Zaefferer
Try to delimit columns within the response with a pipe |. Eg. William Huestis|Un - Employed|51544 William Edwards|Un - Employed|51482 Jörn On Sat, Aug 23, 2008 at 1:23 AM, larksys <[EMAIL PROTECTED]> wrote: > > Ok, here's a link to a test page; > > http://www.taxsearchinc.com/test/index.cfm > >

[jQuery] Re: jQuery.forms javascript in response ignored ?

2008-08-24 Thread Alexey
No. It's not hosted yet. I can post whole html/scripts both on the page and from the server- response Will it help ? On Aug 23, 9:55 am, Mike Alsup <[EMAIL PROTECTED]> wrote: > Can you post a link to a test page? > > > I do $("").ajaxSubmit(...,mySuccessCallback) > > > In the sever response I hav

[jQuery] Re: Cache problem

2008-08-24 Thread regent
Anybody?

[jQuery] Re: Check checkbox based on ID list

2008-08-24 Thread GLP
Something like this perhaps ? I do this based on the value attribute, if it's on = check it. The 'data' part is JSON. It's should be easy to convert this to an array. It's actually a workaround for IE troubles I have: $.each(data, function(){ var myid='#check'+

[jQuery] jQuery countdown

2008-08-24 Thread [EMAIL PROTECTED]
Hello, I am unsing the pluging http://plugins.jquery.com/project/countdown but when i include it into my site he adds enter above and after the div. This is how i use it: Je mag weer spelen over ! With this result: Je mag weer spelen over 00:24 ! How can i edit it so that there aren't any ent

[jQuery] Re: Simple syntax help please!

2008-08-24 Thread Jack Killpatrick
If you have control over the html that's being emitted, you might want to take a look at the metadata plugin for this: http://plugins.jquery.com/project/metadata You can then do something like (not tested): var h = window.location.host; var data, mLink, mSubject, mText; $(a.special).each(