[jQuery] Re: Making jQuery turn up on time (document.ready and firing too early)

2007-11-25 Thread John Resig
> This still gets borked if the user has the file in cache though, I > think. I've never heard of this before - putting your code at the end of a body is a foolproof way to do it. Having the event fire early in IE6 has to do with how the server is configured (if it's a long page and 'chunking' is

[jQuery] Re: reset toggle

2007-11-25 Thread Glen Lipka
Are you trying to do something like this? http://www.commadot.com/jquery/faq.php I can think of a few ways to make your code more jQuery-ish. Glen On Nov 25, 2007 6:00 PM, befidled <[EMAIL PROTECTED]> wrote: > > I've currently got a list where each list element fades in a > corresponding div wh

[jQuery] Re: Bug in jQuery selector or am I just not understanding?

2007-11-25 Thread Dave Methvin
> I thought the cascading selectors would have chosen the dp_properties > class that is the first child level of the selected div. . .not the > dp_properties class buried two levels down (but appearing first in the > DOM listing). jQuery selectors work pretty much the same way they do in CSS. Th

[jQuery] Re: Bug in jQuery selector or am I just not understanding?

2007-11-25 Thread Brett
That code is a bit hard to read I would have written the html to be more semantic, instead of using lots of div tags. Still, the exact code if that was in css should be div div div div.dp_properties - so you can see why it reads a bit confusing. I like the idea of defining a tag and usin

[jQuery] reset toggle

2007-11-25 Thread befidled
I've currently got a list where each list element fades in a corresponding div when clicked. It's set to toggle so that it will fade out the same div when clicked again. I've set it up to also hide all divs so that they don't overlap each other. my code is below...my question is, is there a more

[jQuery] Making jQuery turn up on time (document.ready and firing too early)

2007-11-25 Thread Brett
Many of us know here that making jQuery run on the right time has been a bit of a hassle in the past, mainly due to how document.ready is interpreted differently, and sometimes jQuery can fire when the DOM isn't complete - so , all that nice jquery code you have will not be able to work correctly.

[jQuery] Bug in jQuery selector or am I just not understanding?

2007-11-25 Thread Mark Lacas
Why does the code below show the values for the two alerts to be: bilbo and layout_1 ? I would have expected: bilbo and bilbo. I thought the cascading selectors would have chosen the dp_properties class that is the first child level of the selected div. . .not the dp_properties class buried two

[jQuery] Re: jQuery Form Plugin > Doesn't execute on returned forms?

2007-11-25 Thread Geoff Millikan
I think you guys are cool. I really appreciate that you guys are spending your time helping others like this. I hope you get some reward for this other than seeing people communicating more effectively on the 'net. Anyway, I read the " Why do my events stop working" FAQ 3 or 4 times, read the "

[jQuery] Re: jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")] is not a function

2007-11-25 Thread MorningZ
I ran into this error today and realized i had the ease method spelled wrong (had 'easeOutBonce' <- no "u") Fixing the misspell got rid of the error that is in the subject line of this thread :-) On Nov 9, 10:28 am, George GSGD <[EMAIL PROTECTED]> wrote: > Can you give me some example

[jQuery] Re: Simple Question: Using Variables in jQuery

2007-11-25 Thread Brett
The way you've described it, if you want to have the same name on two elements, you might be using a class instead of an id. instead of content try content - which will freely let you use it multiple times safely. On Nov 24, 4:07 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 23, 4:

[jQuery] cluetip additional functionality

2007-11-25 Thread barefoot1972
The jquery.com suggest a feature would not let me login. So I am posting it here. I added focus/blur event handling to cluetip. So it can be used in conjunction with forms or other elements that you might not want to hover or click. added to: jquery.cluetip.js =BIND EVENTS --

[jQuery] Getting the index of a cell in a row.

2007-11-25 Thread jonhobbs
Hi, I hope somebody can help me. I'm trying to write a function which will tick every checkbox in a column when you tick the checkbox in the header. The plan is to attach an evetn to every checkbox in the header which when you check it will find the column bumber of the cell it is in and plug th

[jQuery] Re: Form question

2007-11-25 Thread nathandh
If anybody's interested, here's what I came up with: $('#billing input').each(function(i) { $(this).val( $('#shipping input').eq(i).val() ); }); Works like a charm.

[jQuery] Re: JQuery Tabs not loading on first click

2007-11-25 Thread sukhminder
Thanks Klaus - worked perfectly. On Nov 23, 9:34 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > On 23 Nov., 12:39,sukhminder<[EMAIL PROTECTED]> wrote: > > > > > > > Tabs are not loading on the first click. I have a link which is like: > > > Headlines > li> > > > when user clicks on this it calls th

[jQuery] Re: Form question

2007-11-25 Thread nathandh
Actually, here's the whole thing for context: $('input#same').toggle(function() { $(this).attr("checked", "checked"); $('#billing input').attr("disabled", "disabled"); $('#billing input').each(function(i) { $(this).val( $('

[jQuery] textarea cursor position

2007-11-25 Thread Andrew Ma
Hello, I'm looking for a snippet of code or a plugin that will give me the current position of the cursor within a textarea. Does anyone have one that they can share?

[jQuery] Re: IE Help.

2007-11-25 Thread Austin Pickett
Heh.. didn't mean to double post, just when I posted first it didn't update for a while so i thought I did something wrong :\ On Nov 25, 2:12 am, Austin Pickett <[EMAIL PROTECTED]> wrote: > Thanks for the link, I checked it out however what they gave had no > effect on me :\ > Alright, I'll post

[jQuery] Re: ANNOUCE: jQuery lightBox plugin

2007-11-25 Thread Leandro Vieira Pinho
Hi Erlend, Thanks to give me the attention to iframe possibility in question about Flash. I´ll analise it in future versions. The preloading image is normal. I didn´t alter it. An option to turn off the effects is comming too :) Regards On Nov 19, 2007 10:43 AM, Erlend Schei <[EMAIL PROTECTED

[jQuery] Re: jQuery minified size could be wrong?

2007-11-25 Thread Karl Swedberg
Hi Marco, Your host's server needs to support gzip or mod_deflate in order to get the benefit of that small file size. The jquery.com home page links "Minified and Gzipped" to a blog entry by Julien LeComte, which explains the gzip thing: http://www.julienlecomte.net/blog/2007/08/13/ --K

[jQuery] Re: close clueTip by selecting element in clueTip box

2007-11-25 Thread Karl Swedberg
You could try something like this: $('someListItem').click(function() { $('#cluetip').hide().removeClass().children().empty(); }); Replace "someListItem" with the actual selector you need. Let me know if this works for you. --Karl _ Karl Swedberg www.englishrules.com www.lea

[jQuery] jQuery minified size could be wrong?

2007-11-25 Thread Web Specialist
jQuery page allows us to download jQuery minified and Gzipped with 14.1kbusing this link: http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.2.1.min.js But after download it that plugin haves 46kb. John, what's wrong? Cheers Marco Antonio

[jQuery] Re: document.getElementById('elid') != $('#elid') ?

2007-11-25 Thread Karl Rudd
The jQuery $ "function" returns a "wrapper" type object, which acts like an array, even if there's only one object in it. So you can do: sel = $('#product_id_01'); sel[0].options.length = 0; Karl Rudd On Nov 26, 2007 6:33 AM, kitsched <[EMAIL PROTECTED]> wrote: > > I was trying to populate a s

[jQuery] Re: Problem with jquery toggler conflicting with another jquery script

2007-11-25 Thread Rick Faircloth
Thanks, Benjamin. Rick From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Sterling Sent: Sunday, November 25, 2007 2:57 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Problem with jquery toggler conflicting with another jquery script Rick, Looks

[jQuery] Re: fadeIn/Out problem

2007-11-25 Thread krcko
yeap, your site is down, but i've found hoverIntent.js in jquery's SVN repository (i think jquery ui use it, but not sure, i've used windows' search, and didn't browse the sources). great plug-in, thanks!

[jQuery] close clueTip by selecting element in clueTip box

2007-11-25 Thread Tim
i am using clueTip with ajax to grab a list from a db. i would like the clueTip to close when the user selects an item from the list. i'm guessing there is an easy way to do this, but i've tried for a while now without any success. i tried calling cluetipClose() with the onclick event, but sinc

[jQuery] Re: == onload function with the fadeIn effect. How? ==

2007-11-25 Thread nathandh
> == Desired result: > I want a html file to be loaded into a div element. When the file is > injected, I want it to fade in. Also, if you want to bind events/handlers to any elements in the html file you've just loaded, check out the livequery plugin: http://brandonaaron.net/docs/livequery/";>

[jQuery] Re: does jquery 1.2.1 support xpath????

2007-11-25 Thread Steve Clason
Gordon wrote: > I'm not sure but I believe that xpath might have been moved from the > core in 1.2 to a plugin, on the grounds that most people use CSS > selectors. > Is true. http://docs.jquery.com/Release:jQuery_1.2 -- Steve Clason Boulder, Colorado, USA (303) 818-8590

[jQuery] Form question

2007-11-25 Thread nathandh
Hello, I'm working on a user profile page that has fields for shipping address and billing address, with a checkbox that says, "Same as shipping?" You know the kind... where instead of filling out the billing address, it autopopulates from the shipping fields you just filled out. What would be

[jQuery] document.getElementById('elid') != $('#elid') ?

2007-11-25 Thread kitsched
I was trying to populate a select's options when I noticed that I can use: sel = document.getElementById('product_id_01'); sel.options.length = 0; but I can't use: sel = $('#product_id_01'); sel.options.length = 0; If anyone could provide a short explanation I'd be really grateful. Thank you.

[jQuery] Re: Problem with jquery toggler conflicting with another jquery script

2007-11-25 Thread Benjamin Sterling
Rick, Looks like you can get that menu from http://youngpup.net/projects/transmenus/ On 11/24/07, Rick Faircloth <[EMAIL PROTECTED]> wrote: > > > Hi, Robert (is it Robert?) > (Seems a little strange to say hi to "quik3r"...but, whatever...) > > Anyway, I'm sorry I don't know enough about JS or jQu

[jQuery] jeditable - issue dynamically resetting submitdata

2007-11-25 Thread spherop
I am using jeditable plug and it's working well but i am stuck with something i need to do. basically, i need to dynamically update the submitdata attribute of various editable text inputs according to events happening on the client. specifically, the user clicks on different thumbnails, and the

[jQuery] Re: fadeIn/Out problem

2007-11-25 Thread Brian Cherne
It appears my web site is down (at least for me). I added a "release" zip file to the jquery plug-in page for hoverIntent, but it's not showing up now that I've logged out (not sure what's going on with that). Let me know if you need the code for hoverIntent... I'll send you a zip file. Brian. On

[jQuery] Re: == onload function with the fadeIn effect. How? ==

2007-11-25 Thread Benjamin Sterling
$("#text-to-show") . load("text_to_show.htm", function(){ // the callback when the htm file is loaded $(this).fadeIn(); }); That should do you; note: you may need to give #text-to-show a style of display:none to start out. On 11/25/07, Monkeytail <[EMAIL PROTECTED]> wrote: > > > == Desired resul

[jQuery] Re: fadeIn/Out problem

2007-11-25 Thread krcko
i've missed that one, thank you! you saved me lot of gray hairs :) On Nov 25, 12:24 pm, Wizzud <[EMAIL PROTECTED]> wrote: > You might want to look into using the hoverIntent plugin > ...http://jquery.com/plugins/project/hoverIntent > > On Nov 24, 9:46 pm, krcko <[EMAIL PROTECTED]> wrote: > > > H

[jQuery] == onload function with the fadeIn effect. How? ==

2007-11-25 Thread Monkeytail
== Desired result: I want a html file to be loaded into a div element. When the file is injected, I want it to fade in. == Problem: I am a rookie when it comes to jQ (and js). I can't figure out how to extend the onload function with the fadeIn effect. == This is my jQ code: $(document).ready(fu

[jQuery] Re: jQuery Form Plugin > Doesn't execute on returned forms?

2007-11-25 Thread Karl Swedberg
On Nov 25, 2007, at 10:22 AM, Mike Alsup wrote: Do I have to somehow reinitialize the jQuery Form Plugin to recognize the returned form? Sort of, but the other way around. You need to bind the new form after it is inserted into the DOM. Hi Geoff, See this FAQ item for more details: htt

[jQuery] Re: :contains selector question

2007-11-25 Thread Karl Swedberg
Hehe. Glad you're awake now. :-) --Karl On Nov 25, 2007, at 11:04 AM, Benjamin Sterling wrote: I knew that Karl, just seeing if you were paying attention. ;) I totally forgot I was doing that, guess that is what I get when trying to code with very little sleep. Thanks. On 11/25/07, Karl

[jQuery] Re: :contains selector question

2007-11-25 Thread Benjamin Sterling
I knew that Karl, just seeing if you were paying attention. ;) I totally forgot I was doing that, guess that is what I get when trying to code with very little sleep. Thanks. On 11/25/07, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > > On Nov 25, 2007, at 9:08 AM, Benjamin Sterling wrote: > > Kar

[jQuery] Re: AJAX memory leak

2007-11-25 Thread Eric Teubert
Well .. I found out this happens even without jQuery, one _has to_ refresh the website to clear the RAM. Eric

[jQuery] Re: :contains selector question

2007-11-25 Thread Karl Swedberg
On Nov 25, 2007, at 9:08 AM, Benjamin Sterling wrote: Karl, That is what I expected get too, just needed to clarify. If you just want to select table cells, why not do $ ('td:contains(Cell)') ? I am doing an article on selectors and selector speeds and was experimenting on what approach i

[jQuery] Re: jQuery Form Plugin > Doesn't execute on returned forms?

2007-11-25 Thread Mike Alsup
> Do I have to somehow reinitialize the jQuery Form Plugin to recognize > the returned form? Sort of, but the other way around. You need to bind the new form after it is inserted into the DOM.

[jQuery] Re: jQuery Form Plugin > document.myform.submit()

2007-11-25 Thread Mike Alsup
You should not be using ajaxSubmit and ajaxForm together. Pick one or the other. In your case you should drop ajaxForm and use ajaxSubmit like this: function submitme() { $('#wizard1').ajaxSubmit({ target: '#output1' }); return false; } Mike On Nov 24, 2007 11:50 PM, Geo

[jQuery] Re: IE Help.

2007-11-25 Thread Austin Pickett
Thanks for the link, I checked it out however what they gave had no effect on me :\ Alright, I'll post the code of which I'm actually working with. $(document).ready(function() { $('.show_comments').click(function(){ $('#showdiv').slideToggle('fast'); }); }); That's all it is

[jQuery] Event Handler behavior question

2007-11-25 Thread steve
Hi, This probably is closer to just being a plain Javascript question, but since I'm using jquery to wrap it, I figured I'd ask it here. I'm using the hover( fn,fn1) function to bind the hover event to my table's TR elements upon page, load by using ready(). The HTML itself actually specifies

[jQuery] Re: problems about jquery.validate

2007-11-25 Thread Jacky
Hi Jörn, thanks your reply and great works. On 11月25日, 上午3时01分, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Hi Jack!> can jquery.validate use custom validator? And another problem is > about > > email validator,it can't pass validate with my email address > > [EMAIL PROTECTED] exactly validate

[jQuery] jQuery Form Plugin > Doesn't execute on returned forms?

2007-11-25 Thread Geoff Millikan
I have a form that is submitted via the jQuery Form Plugin to a PHP page which then returns another form in its place. The second form looks identical to the first however this second form will not submit via the jQuery Form Plugin. It's as if the jQuery Form Plugin script at the top of the orig

[jQuery] Re: Styling left hand column of table.

2007-11-25 Thread jonhobbs
HI Karl, That is exactly the answer i was looking for. Thank You On Nov 24, 5:49 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi Jon, > > You're almost there! What you want is to add a class to every td that > is the first child of its parent. Using td:first will select only the > very first

[jQuery] Re: jQuery Form Plugin > document.myform.submit()

2007-11-25 Thread Geoff Millikan
How interesting, the form submits, and the AJAX is returned (I can see it in FireBug) but not in the DIV tags. It appears that using a function to submit the form breaks the jQuery Form Plugin. Example at the below link. Click on the "dial up" button to submit the form. http://mammoth.t1shopp

[jQuery] Re: IE Help.

2007-11-25 Thread Austin Pickett
Hrm, Thanks for the link, I gave it a try didn't help me much, but essentially this is the only problems I encounter: $(document).ready(function() { $('.show_comments').click(function(){ $('#showdiv').slideToggle('fast'); }); }); Is the code, and it works fine in FF however i

[jQuery] Re: LiveQuery (Discuss Please)

2007-11-25 Thread nathandh
> Obviously, that was only a simple example. The more general case, wanting to > bind some event handler to a selector regardless of when it appears on the > page, is extremely common. So again, I'm trying to understand why the rate > of adoption has been so slow. Any thoughts? I've been using jQ

[jQuery] Re: IE Help.

2007-11-25 Thread Benjamin Sterling
Austin, Do you have a test case for us to look at? Also, you can test for most issue in Opera since they are using the same javascript engine as ie7, I am finding this to be a huge help. On 11/24/07, bingo <[EMAIL PROTECTED]> wrote: > > > hi Austin, > > I am not sure what's the problem..but make

[jQuery] problem setting up idTabs on ajax success callback in IE6 sp2

2007-11-25 Thread ogurec
Hi, when i try to initialize idTabs on successful ajax request it fails in IE6, but works in FF2, Opera 9 and Safari for Windows. Anyone else had such problem? Is there a solution? Thanks in advance.

[jQuery] Re: :contains selector question

2007-11-25 Thread Benjamin Sterling
Karl, That is what I expected get too, just needed to clarify. If you just want to select table cells, why not do $('td:contains(Cell)') ? > I am doing an article on selectors and selector speeds and was experimenting on what approach is faster[1] and when I got to this selector, I would have exp

[jQuery] Re: fadeIn/Out problem

2007-11-25 Thread Wizzud
You might want to look into using the hoverIntent plugin ... http://jquery.com/plugins/project/hoverIntent On Nov 24, 9:46 pm, krcko <[EMAIL PROTECTED]> wrote: > Hi to all, i'm having problems with fade in/out animation. I have > buttons and i want to make hover fade-in effect. > > this is html:

[jQuery] Re: does jquery 1.2.1 support xpath????

2007-11-25 Thread Gordon
I'm not sure but I believe that xpath might have been moved from the core in 1.2 to a plugin, on the grounds that most people use CSS selectors. On Nov 24, 10:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I find something strange in last release. Xpath expressions doesn't > work > For e