[jQuery] Re: Browser Inconsistencies

2009-01-19 Thread zeckdude
thx! adding the width to the #slideshow solved my problem! I really appreciate it ricardobeat wrote: Try adding position:relative to #slideshow, or giving it proper height and width. IE has many rendering bugs you need to be aware of at development, at this point the best you can do is

[jQuery] Re: Event code in different .js files

2009-01-19 Thread Krommenaas
is this also true of document.ready? On Jan 14, 9:24 pm, Ricardo Tomasi ricardob...@gmail.com wrote: In the old-fashioned you couldn't have more than one event handler: window.onload = function(){ .. } but using jQuery's bind('load', function(){}) you're using the new standards-based

[jQuery] jQuery in IFrame causing Access Denied javascript error in MSIE 7

2009-01-19 Thread Sergei
Hello, I have a strange problem with jQuery 1.3 in MSIE 7. I am developing some code in local domains. On one of the site I create IFRAME with the SRC of another local website. Something like: I mean on a page of http://blog/ we have: iframe src=http://form/; Form site inside IFRAME loads a

[jQuery] 45+ New jQuery Techniques For Good User Experience

2009-01-19 Thread Michael Smith
Just saw this through digg, and I don't think it's been sent here before. I thought a few people might find it interesting: http://www.smashingmagazine.com/2009/01/15/45-new-jquery-techniques-for-a-good-user-experience/ Michael

[jQuery] Re: weird issue with ready event

2009-01-19 Thread graphicsxp
Thanks for the tip. That didn't do anything though. I've tried $(pop).load(fn) and $(pop)._load(fn) as there seems to be two functions called load (one relates to AJAX). Anyway, I still can't get this to work. On 16 jan, 17:14, Ricardo Tomasi ricardob...@gmail.com wrote: I've seen this

[jQuery] Re: weird issue with ready event

2009-01-19 Thread graphicsxp
actually it does work in Firefox ! The problem is in IE (7.0). Any idea ? On 19 jan, 10:46, graphicsxp graphic...@googlemail.com wrote: Thanks for the tip. That didn't do anything though. I've tried  $(pop).load(fn)  and  $(pop)._load(fn)  as there seems to be two functions called load (one

[jQuery] Re: weird issue with ready event

2009-01-19 Thread graphicsxp
Here's exactly the code I wrote : var pop = window.open(PrintList.aspx); if ($.browser.msie) { $(pop.document).ready(function() { $(#list, pop.document).html('hello'); }); } else { $(pop).load(function() { $(#list, pop.document).html('hello'); });

[jQuery] Re: [treeview] Expand the trees on the image and no link

2009-01-19 Thread jQuery Lover
Doesn't first demo example do exactly what you want??? See http://jquery.bassistance.de/treeview/demo/ === Sample 0 - navigation Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sun, Jan 18, 2009 at 3:24 PM, cv adgoo...@cwi.fr wrote: In fact I use the following

[jQuery] Re: weird issue with ready event

2009-01-19 Thread Sergei
I had a similar problem today in MSIE7 with 1.3: http://groups.google.com/group/jquery-en/browse_thread/thread/e4d9128b377c3ac9# Look into this: http://dev.jquery.com/changeset/6120 It solved my problem. On Jan 19, 7:21 pm, graphicsxp graphic...@googlemail.com wrote: Here's exactly the code

[jQuery] Re: jQuery in IFrame causing Access Denied javascript error in MSIE 7

2009-01-19 Thread Sergei
Ok seems it's problem with jQuery 1.3: http://dev.jquery.com/changeset/6120 I spend some hours solving this. Turns out it J. Resig's fault ;-( S. On Jan 19, 5:39 pm, Sergei yatse...@gmail.com wrote: Hello, I have a strange problem with jQuery 1.3 in MSIE 7. I am developing some code in

[jQuery] Re: weird issue with ready event

2009-01-19 Thread graphicsxp
thanks for helping. It turns out I was still on 1.2.6, so i've installed 1.3 but that didn't fix my problem. Actually it brought more issues as I've noticed a few new bugs in my application. I'm rolling back to 1.2 ! On 19 jan, 11:50, Sergei yatse...@gmail.com wrote: I had a similar problem

[jQuery] addEvent wrap for document.ready()

2009-01-19 Thread rundmw
I have an existing application which I would like to transition to use jQuery. The app currently uses Dean Edwards addEvent() function in many (many!) locations, mostly as addEvent(window, 'load', fn). In all of these cases, wndow.onload is not strictly required; document.ready () would not only

[jQuery] selected option not cloned

2009-01-19 Thread Emili Calonge
Hi, I'm trying to clone a select that has an option selected, but the new select (even if I use clone(true)) hasn't the correct option selected. The cloned select always has selected the first option. I don't know if this should work the way I want it to, but I think clone is supposed to make

[jQuery] Re: How to handle responses from PHP with $.ajax()

2009-01-19 Thread Agile Consulting
What is difference between Oracle and SQL Server

[jQuery] [jquery.magnify] How to create round floating magnified images?

2009-01-19 Thread Volker
Hi all, I'm quite new to jQuery and not very fluent in CSS (which I assume will be part of the solution:-). I'd like to create the following with jquery.magnify: is it possible (and mayb you can point me to examples for the how)? 1. user clicks on a part of the image 2. a !circular magnified

[jQuery] Re: Browser Inconsistencies

2009-01-19 Thread tain
btw. that test page is working in FF2, FF3, IE7 and Chrome... On Jan 19, 8:54 am, Ricardo Tomasi ricardob...@gmail.com wrote: Try adding position:relative to #slideshow, or giving it proper height and width. IE has many rendering bugs you need to be aware of at development, at this point the

[jQuery] 1.3, attributeStartsWith and '['

2009-01-19 Thread Jedrzej Majko
Hello, I have strange problem with attribute StartsWith in new version of jQuery. This code gives 'FOUND' in 1.2.6 and 'NOT FOUND' in 1.3. There's a problem with [name^='item['], [name^='item[1]'] works fine. Is this a bug, or expected behavior? Code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0

[jQuery] Superfish IE7 wrapped menu opens under other top level menu links

2009-01-19 Thread cLive ;-)
You can see this on the superfish examples page: http://users.tpg.com.au/j_birch/plugins/superfish/#examples Set your IE7 browser width to 400px, scroll down to the first menu example and mouseover the first menu item. The child menu opens underneath the wrapped top level menu. Is there an

[jQuery] Re: Browser Inconsistencies

2009-01-19 Thread tain
try setting fixed width and height of the div id=nav On Jan 19, 7:57 am, zeckdude zeckd...@gmail.com wrote: Hello all, I have a strange problem I don't know how to fix. My page is showing up just as it should in Firefox, but when I look at the same exact page in Internet Explorer, the

[jQuery] jQuery Tab not working properly in IE 6, 7

2009-01-19 Thread Rith
Dear Support, My name is rith , I am one of who using JQuery Tab. The Tab has problem with the in IE 6 and IE 7 .When i load the page in IE 6, or IE 7 i see the tab display fine ( Full image tab.png ) .But when i mouse over or click the tab , the tab image not display properly at the right

[jQuery] $.ajax - truncates data

2009-01-19 Thread pp...@fragrance-world.net
$.ajax({ type: POST, url: /_webservices/shoppingcart.asmx/AddItemToCart, dataType: xml, data: cartdata= + $(#cartXml).val() + sku= + sku, processData: false, success: function (xml) {

[jQuery] Blueprint css versus YUI grids versus ?

2009-01-19 Thread zweb
I need replacement for YUI grids. Has anyone used blueprint css or has any other suggestions.

[jQuery] Problems with finding parental a-tag

2009-01-19 Thread Christoph Neymeyr
Hi, I have a situation where I have an image with a specific class. I need to find the a-tags surrounding this items class, but could not make is, as I have different situations that are totally dynamic - unfortunately. a href=...divdivdivpimg class=thisClass/p/div/ div/div/a and a

[jQuery] Re: Modifying an XML document with jQuery

2009-01-19 Thread dandieb...@gmail.com
I have essentially the same problem. I have some XML returned from an AJAX call and need to modify the XML slightly before using it on the web page. In reference to the original post, how do you use jQuery to modify the original XML document into the desired document: Original XML: group

[jQuery] Problem Using jQuery with Other Libraries

2009-01-19 Thread DILIP KUMAR
hi there, i am new to Jquery, and find it very interesting i already had been implemented few of your articles seen at Thickbox 3.1 . There are working fine. But now i struck at one point here is my question that my web page has following js's file 1prototype.js 2scriptaculous.js 3effects.js

[jQuery] Re: Problem with submitHandler

2009-01-19 Thread arnoldroa
anyone? im using form.submit inside submitHanldler but firebug said that submit is not a function. if i do $(form).submit() i get inside a infinite loop. On 16 ene, 16:00, arnoldroa mano...@gmail.com wrote: i have this:        submitHandler: function(form) {                 if(

[jQuery] disable form submit when pressing enter key.

2009-01-19 Thread Manolet Gmail
I need to disable form submission on Enter Key press, is there anyway to do this for a single form?

[jQuery] Splitter plugin not responding to window resize in IE7

2009-01-19 Thread George Adamson
I'm using Dave Methvin's excellent splitter plugin to provide a 3-pane splitter. (http://methvin.com/splitter) Works a treat except that it does not respond to a window resize in IE7. Other browsers are ok, even IE6! I've experimented with the anchorToWindow and resizeToWidth options but they

[jQuery] Re: Problem Using jQuery with Other Libraries

2009-01-19 Thread MorningZ
I think i dont know the proper use of it How about posting what (jQuery'd noConflict) code you have tried so far? On Jan 19, 5:30 am, DILIP KUMAR vishwakarma.dilipku...@gmail.com wrote: hi there,  i am new to Jquery, and find it very interesting i already had been implemented few of your

[jQuery] Re: newby... cannot get $(div).length; to work

2009-01-19 Thread bartee
THANKS to all I had read about this and understand the problem. I am just new. Great to find a place for answers. Now I can start on my 2nd line of code :-)

[jQuery] Re: Event code in different .js files

2009-01-19 Thread MorningZ
indeed it is On Jan 19, 3:53 am, Krommenaas krommen...@gmail.com wrote: is this also true of document.ready? On Jan 14, 9:24 pm, Ricardo Tomasi ricardob...@gmail.com wrote: In the old-fashioned you couldn't have more than one event handler: window.onload = function(){ .. } but using

[jQuery] Re: disable form submit when pressing enter key.

2009-01-19 Thread Mauricio (Maujor) Samy Silva
$(document).keypress(function (evt) { if (evt.keyCode == 13) { $(':submit').attr('disabled', 'disbled'); } }); Maurício -Mensagem Original- De: Manolet Gmail Para: jquery-en@googlegroups.com Enviada em: segunda-feira, 19 de janeiro de 2009 10:30 Assunto:

[jQuery] Re: jQuery 1.3 and selector

2009-01-19 Thread lideln
Oh, nice ! Ok I'll wait for the 1.3.1 ! But I'll check my XHTML anyway. Thanks again Ricardo. ricardobeat wrote: Yeah, it's probably your HTML, the test I made was using jQuery 1.3. But 1.3 has a few selector bugs, 1.3.1 should be out this week, give it a try. - ricardo On Jan

[jQuery] Re: 1.3, attributeStartsWith and '['

2009-01-19 Thread Balazs Endresz
Hello, it's a known issue: http://dev.jquery.com/ticket/3778 There's some solution in the ticket but needs a proper patch and a bit testing. I'll try to make it tonight if I can get home in time ;) On jan. 19, 10:46, Jedrzej Majko jdr...@gmail.com wrote: Hello, I have strange problem with

[jQuery] Re: Splitter plugin not responding to window resize in IE7

2009-01-19 Thread George Adamson
I may have found a solution for this: It seems that IE7 was getting stuck on a couple of css background images. When I removed references to those images, the splitter started to respond to window resize. Very odd. Here's a demo of the symptom: http://www.softwareunity.com/sandbox/splitterpage/

[jQuery] Re: disable form submit when pressing enter key.

2009-01-19 Thread Manolet Gmail
no lo he probado pero eso.. haria que el input type=submit se desabilitara? On Mon, Jan 19, 2009 at 8:13 AM, Mauricio (Maujor) Samy Silva css.mau...@gmail.com wrote: $(document).keypress(function (evt) { if (evt.keyCode == 13) { $(':submit').attr('disabled', 'disbled'); }

[jQuery] Re: Problems with finding parental a-tag

2009-01-19 Thread Stephan Veigl
how about: $(.thisClass).parents(a); by(e) Stephan

[jQuery] Re: Problems with finding parental a-tag

2009-01-19 Thread Klaus Hartl
First of all, you need to fix your HTML. An anchor is an inline element and may not contain div, p etc. This may give you unexpected results cross-browser and scripting on top of an invalid DOM is not a good idea to begin with. --Klaus On 19 Jan., 12:11, Christoph Neymeyr christ...@uddebo.net

[jQuery] click on image doesn't fire event

2009-01-19 Thread CreativeMind
hi all, I hav a slideviewer... which works perfectly when i click on any thumbnail, main image is shown successfully...but i hav put two images (#nextImage,#prevImage) and one counter label..now when i click on next,prev images , sometime they work but not every time.. click event shows as if

[jQuery] Re: addEvent wrap for document.ready()

2009-01-19 Thread John Resig
Why not just do: function addEvent(obj, evt, fn){ jQuery(obj).bind(evt, fn); } Just defer everything to jQuery! --John On Mon, Jan 19, 2009 at 2:48 AM, rundmw run...@gmail.com wrote: I have an existing application which I would like to transition to use jQuery. The app currently uses

[jQuery] Re: disable form submit when pressing enter key.

2009-01-19 Thread Mauricio (Maujor) Samy Silva
Si. Have a look at a live example: http://jsbin.com/unomu Maurício -Mensagem Original- De: Manolet Gmail Para: jquery-en@googlegroups.com Enviada em: segunda-feira, 19 de janeiro de 2009 11:47 Assunto: [jQuery] Re: disable form submit when pressing enter key. no lo he

[jQuery] Re: 45+ New jQuery Techniques For Good User Experience

2009-01-19 Thread MorningZ
Some nice plugins mentioned there. i especially like the Facebook-style autocomplete On Jan 19, 4:40 am, Michael Smith smi...@gmail.com wrote: Just saw this through digg, and I don't think it's been sent here before.  I thought a few people might find it interesting:

[jQuery] Re: Problems with finding parental a-tag

2009-01-19 Thread Christoph Neymeyr
Thanks for the help! Stephan - this solved it, sorry that I missed this basic one. Klaus - yes, you´re of course right, just typed this to illustrate my problem to make people to get the point. Thanks for your reply though. Christoph

[jQuery] Re: Solution To Many Of Your CSS Nightmares!

2009-01-19 Thread ryan.joyce...@googlemail.com
surely declaring the css you want to take priority after your site's default stylesheet, this will solve the problem? On Jan 18, 10:59 pm, johny why johny...@gmail.com wrote: ricardo, you're right that styles undeclared in the widget-css will cascade from the site-css into the widget, even if

[jQuery] form.submit() is not a function

2009-01-19 Thread Arthur McLean
I am using the excellent Validate plug-in, and I configured the submitHandler function to double check something with the user before submitting. When done, I was calling form.submit() and getting the error form.submit() is not a function. I scratched my head over this for quite a while before

[jQuery] Documentation on comparative operators?

2009-01-19 Thread fredriley
Hi My first message on this board after some weeks learning, and fighting with, jQuery. My main question is: is there any documentation on simple comparative operators in jQuery? I'm thinking of =, , , , that sort of thing. I'm aware that these symbols aren't used in jquery, so that to test

[jQuery] Re: 45+ New jQuery Techniques For Good User Experience

2009-01-19 Thread Dirceu Barquette
Great job!!! Thanks Dirceu Barquette 2009/1/19 Michael Smith smi...@gmail.com Just saw this through digg, and I don't think it's been sent here before. I thought a few people might find it interesting:

[jQuery] Re: Solution To Many Of Your CSS Nightmares!

2009-01-19 Thread johny why
i don't see it as a problem. With or without !important, the site-css will cascade into the widget for elements undeclared in the widget-- the widget designer expects that. The important thing is for the widget's declared styles to take precedence, which !important achieves in most cases. (if i'm

[jQuery] Re: Blueprint css versus YUI grids versus ?

2009-01-19 Thread Liam Potter
I suggest learning how to write your own CSS. I really don't think css needs a framework. zweb wrote: I need replacement for YUI grids. Has anyone used blueprint css or has any other suggestions.

[jQuery] Re: Solution To Many Of Your CSS Nightmares!

2009-01-19 Thread ryan.joyce...@googlemail.com
but unless you've declared some of your default styles as !important, the widget *will* take precedence if it's called after the default CSS. the only issues i can see are relative vs. explicit pixel sizes - for ex. if you've declared pixel sizes for your fonts with some especially broad

[jQuery] Re: Column highlite

2009-01-19 Thread Liam Potter
$('#your_table_id tr:odd').children('td').css('background-color', '#EEE'); brian wrote: $('#your_table_id tr').find('td:odd').css('background-color', '#EEE'); You need to operate on each TR separately or jQuery will count each TD without regard for the row it's in. On Sun, Jan 18, 2009 at

[jQuery] Re: Problem Using jQuery with Other Libraries

2009-01-19 Thread Liam Potter
Hi Dilip, it is advised to not use multiple frameworks, but if this is un-avoidable then you can turn on no conflict Read this http://docs.jquery.com/Using_jQuery_with_Other_Libraries DILIP KUMAR wrote: hi there, i am new to Jquery, and find it very interesting i already had been

[jQuery] Re: Blueprint css versus YUI grids versus ?

2009-01-19 Thread Steven Wright
Before using a framework you should make sure you completely understand how to use CSS. That being said I recommend Blueprint. Check out this generator: http://kematzy.com/blueprint-generator/ steve -Original Message- From: jquery-en@googlegroups.com

[jQuery] Re: Documentation on comparative operators?

2009-01-19 Thread MorningZ
If you look @ the document for .is() http://docs.jquery.com/Traversing/is#expr Checks the current selection against an expression and returns true, if at least one element of the selection fits the given expression

[jQuery] swfupload

2009-01-19 Thread DCT, Heidi Anselstetter
Hi Folks, does anybody has experince with the swfupload tool? I have a version (from the application demo) uploaded to my server and it works so far. I can select the pictures to upload and I see the generated thumbnail. Now I need the possibility to use drag and drop to change the order of the

[jQuery] Send $ajax.post

2009-01-19 Thread finord
Hello, I have a problem when sending data with jQuery, if sent by clicking Submit if it works, but when trying to send it directly when the input 'name' has two values, does not run with ajax, but it does as a normal consultation. Here you put the code on the form and the ajax, ajax is

[jQuery] simple click event won't fire

2009-01-19 Thread mmvdl
Within a table each first td of every row has an a tag. But I want the whole tr to be clickable. To avoid recursion I've put a .one() event on the tr like so: $(table.vacatures tbody tr).one(click, function(){ $(this).find(a:first).click(); }); But the click on the a tag will not fire. Why?

[jQuery] jQuery 1.3 live not working correctly

2009-01-19 Thread Walther
I am having an issue with the new live events in jQuery 1.3. Specifically I am having an regarding event bubbling. I have a a list of items, each item element looks like : liabla/a/li. When the user clicks on the li element one thing should happen, and when the user clicks on the a element

[jQuery] 1.3 :not(:first) selector

2009-01-19 Thread comslash.com
I just encountered a problem when using the :not(:first) selector in 1.3 . Can i get a confirmation on if this is a bug, or should I write this differently ? // Does Not Work Now $('.class1.class2div:not(:first)').each(function(){ $(this).hide (); }); // Works With Full Selector

[jQuery] Re: When to use LiveQuery plugin

2009-01-19 Thread Terry
Is it known when one might wish to continue to use the LiveQuery plugin itself with version 1.3+ of the jQuery library? That is, if I upgrade, is there any reason to keep the LQ plugin around? On Jan 14, 3:16 pm, MorningZ morni...@gmail.com wrote: first off all...  the purpose (and advantage

[jQuery] auto submit

2009-01-19 Thread finord
Hello, I have a problem when sending data with jQuery, if sent by clicking Submit if it works, but when trying to send it directly when the input 'name' has two values, does not run with ajax, but it does as a normal consultation. Here you put the code on the form and the ajax, ajax is not much

[jQuery] [validate] $('#form').valid() and focusInvalid();

2009-01-19 Thread Reinaldo JuniorZ
Why does the valid() method don't call validator.focusInvalid()? I think that should be the default behaviour, since valid() shows all the error messages. Thank you and congratulation by this awesome plugin.

[jQuery] $.post does not post

2009-01-19 Thread AlexDeLarge
I have been having hard times with $.post lately... It has all come to a point that I set up as simple tryout as I could think of and it still doesn't work. I have a div in a page and that div has a button on it and I would like it to fireup a php-script by clicking that button but I just can't

[jQuery] Re: 1.3 :not(:first) selector

2009-01-19 Thread Karl Swedberg
On Jan 19, 2009, at 11:16 AM, comslash.com wrote: I just encountered a problem when using the :not(:first) selector in 1.3 . Can i get a confirmation on if this is a bug, or should I write this differently ? // Does Not Work Now $('.class1.class2div:not(:first)').each(function(){

[jQuery] Re: When to use LiveQuery plugin

2009-01-19 Thread Karl Swedberg
If you need to bind events that .live() currently doesn't handle, such as mouseenter, mouseleave, focus, blur, and change, you should keep Live Query around. In subsequent versions, .live() is supposed to handle these, but for now it doesn't. --Karl Karl Swedberg

[jQuery] Re: When to use LiveQuery plugin

2009-01-19 Thread Brandon Aaron
It really depends on how you are using LiveQuery. If you are using it only to bind events to new elements then you should switch over to live. That is unless one of the events you are binding is one of the event types that does not bubble. Check the documentation for the events that are currently

[jQuery] jquery 1.3 n.queue is not a function?

2009-01-19 Thread yellow1912
When I try to use jquery 1.3 on my test site, I get this error: jQuery.queue is not a function [Break on this error] var queue = jQuery.queue( this, type, data ); (firebug) The site is using livequery, form, metadata and validate plugin in, all upgraded for 1.3 support. Weird.

[jQuery] Re: 1.3 :not(:first) selector

2009-01-19 Thread comslash.com
Karl thanks for the quick response, guess I should have checked the bug tracker, just thought i was writing it wrong !

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-19 Thread John Resig
Do you have a URL for your site anywhere? --John On Mon, Jan 19, 2009 at 11:45 AM, yellow1912 yellow1...@gmail.com wrote: When I try to use jquery 1.3 on my test site, I get this error: jQuery.queue is not a function [Break on this error] var queue = jQuery.queue( this, type, data );

[jQuery] Re: jQuery 1.3 live not working correctly

2009-01-19 Thread John Resig
Do you have an example anywhere that we can look at? Also, could you post a follow-up to the jquery-dev list? Thanks. http://groups.google.com/group/jquery-dev --John On Mon, Jan 19, 2009 at 7:25 AM, Walther waltherl...@gmail.com wrote: I am having an issue with the new live events in

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-19 Thread John Resig
Also, could you post that URL to the jquery-dev list when you have it? Thanks. http://groups.google.com/group/jquery-dev --John On Mon, Jan 19, 2009 at 11:52 AM, John Resig jere...@gmail.com wrote: Do you have a URL for your site anywhere? --John On Mon, Jan 19, 2009 at 11:45 AM,

[jQuery] Re: Solution To Many Of Your CSS Nightmares!

2009-01-19 Thread johny why
ryan.joyce wrote: unless you've declared some of your default styles as !important, the widget *will* take precedence if it's called after the default CSS. --if you mean the widget styles will affect the main site rendering, not if the widget styles are correctly declared with unique id's or

[jQuery] Re: Column highlite

2009-01-19 Thread brian
Using children() would be better than find() but your suggestion would skip every other row. $('#your_table_id tr').children('td:odd').css('background-color', '#EEE'); Better, again: $('#your_table_id tr').children('td:odd').addClass('SomeClassName'); On Mon, Jan 19, 2009 at 10:55 AM, Liam

[jQuery] Re: Modifying an XML document with jQuery

2009-01-19 Thread Balazs Endresz
These worked for me. Do you have a test page? On Jan 19, 7:27 am, dandieb...@gmail.com dandieb...@gmail.com wrote: I have essentially the same problem. I have some XML returned from an AJAX call and need to modify the XML slightly before using it on the web page. In reference to the

[jQuery] Re: Column highlite

2009-01-19 Thread Liam Potter
Ahh, I just asumed he wanted zebra striped rows, didn't really pay attention to the thread title. brian wrote: Using children() would be better than find() but your suggestion would skip every other row. $('#your_table_id tr').children('td:odd').css('background-color', '#EEE'); Better,

[jQuery] var divcount = $(div#div2).length; --- returns wrong value

2009-01-19 Thread bartee
My alert always returns 1 as the divcount value ??? What's up with that.. I have read and tried bunches of things. What am I missing html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en-AU head titleJquery Test/title script type=text/javascript src=jquery-1.3.js/script

[jQuery] Re: var divcount = $(div#div2).length; --- returns wrong value

2009-01-19 Thread Liam Potter
well, you can't have 3 id's all called div2 id's have to be unique, you can have multiple classes. I've not used the length function, but I'm fairly certain it has to do with the multiple id's. bartee wrote: My alert always returns 1 as the divcount value ??? What's up with that.. I have

[jQuery] Re: var divcount = $(div#div2).length; --- returns wrong value

2009-01-19 Thread Nic Luciano
Hey Bartee, I think your problem is that .length() returns the number of elements in the object you're acting on. In you're case, there's only one object (a text node). So, it should return one. What you're actually looking for is $(div#div2).text().length; On Mon, Jan 19, 2009 at 12:25 PM,

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-19 Thread yellow1912
Hi John, Unfortunately I have it on my localhost now, will try to upload asap. However, I found out a bunch of errors, probably because of my bad jquery *_* First: in the plugin I have these line of codes, working fine in 1.2.6 but in 1.3 they prevent some even binding (see point Second)

[jQuery] Re: var divcount = $(div#div2).length; --- returns wrong value

2009-01-19 Thread Mauricio (Maujor) Samy Silva
ID attribute value must be unique in a document. If you need multiple hooks sharing the same value use class attribute. Try the following and you'll see the difference: $(function() { var divcount = $(div.div2).length; alert(start= + divcount); }); div

[jQuery] Re: Documentation on comparative operators?

2009-01-19 Thread Ricardo Tomasi
Keep in mind that jQuery is merely a framework. You're still working with plain Javascript. The learning curve for it should be smooth as butter after you get to understand what's going on behind the scenes. is() is a method, a function owned by the current jQuery object. val() returns the value

[jQuery] Re: rating using thumbs up thumbs down.

2009-01-19 Thread Pragan
Hi, anyone has any suggestion. Earlier, I have created a form using php and mysql which will store the data in the db and will display thanks message right there without refreshing the page. Same way, I am trying to show two images here, which when clicked show increase the count in the db and

[jQuery] Re: Problem Using jQuery with Other Libraries

2009-01-19 Thread sad1sm0
Yeah I would imagine using that many frameworks has to be tasking on your download time anyway. Why not think about converting everything to a common platform so they'll play nice. On Jan 19, 10:57 am, Liam Potter radioactiv...@gmail.com wrote: Hi Dilip, it is advised to not use multiple

[jQuery] Re: Splitter plugin not responding to window resize in IE7

2009-01-19 Thread Dave Methvin
Here's a demo of the symptom:http://www.softwareunity.com/sandbox/splitterpage/ Is this the fixed version? It seemed to work on resize for me in IE7.

[jQuery] [validate] Validating Ajax Loaded Form Problem - Stumped

2009-01-19 Thread beysk
Hi, I am really stumped by this. Using the validate plugin, I can't validate a form which is loaded by ajax. I have made two very simple pages to demonstrate the problem. Ajax Loaded Form (doesn't work): http://yourmac.ca/test/validate1.html (click on the text Click here to load the test

[jQuery] [validate] Validating Ajax Loaded Form Problem - Stumped

2009-01-19 Thread beysk
Hi, Sincere apologies for the repost! (I forgot to include [validate] in the subject of my previous post and I can't move forward this project until I resolve this). Repost: I am really stumped by this. Using the validate plugin, I can't validate a form which is loaded by ajax. I have made

[jQuery] Re: simple click event won't fire

2009-01-19 Thread Joe
What is a one event? On Jan 19, 6:48 am, mmvdl mm...@yahoo.co.uk wrote: Within a table each first td of every row has an a tag. But I want the whole tr to be clickable. To avoid recursion I've put a .one() event on the tr like so: $(table.vacatures tbody tr).one(click, function(){    

[jQuery] Re: Solution To Many Of Your CSS Nightmares!

2009-01-19 Thread johny why
wileyluxe wrote: Depending on how the rest of the selectors are written, a Body ID will do overwrite it. wileyluxe, can you give an example of how a site-css Body ID can overwrite the widget-css, if the widget employs !important + id's/ classes?

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-19 Thread yellow1912
I think I found out something closer to the root cause: $(selector + ' .step[title='+currentIndex+'] .stepContent').fadeOut (slow); --jQuery.queue is not a function $(selector + ' .step[title='+currentIndex+'].stepContent').fadeOut (slow); -- no error, but obviously not producing the effect I

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-19 Thread yellow1912
Oops, Im sorry but $(selector + ' .step[title='+currentIndex+'] div.stepContent').fadeOut (slow); --jQuery.queue is not a function On Jan 19, 12:22 pm, yellow1912 yellow1...@gmail.com wrote: I think I found out something closer to the root cause: $(selector + ' .step[title='+currentIndex+']

[jQuery] Re: Send $ajax.post

2009-01-19 Thread finord
The correct js code is: $(document).ready(function() { $().ajaxStart(function() { $('#loading').show(); $('#result').hide(); }).ajaxStop(function() { $('#loading').hide(); $('#result').fadeIn('slow'); }); $('#form, #fat, #fo3').submit(function()

[jQuery] Re: $(' Expert jQuery JS synatx ' ).show

2009-01-19 Thread Ami
Thank you. Very usefull. On Jan 19, 6:41 am, Brandon Aaron brandon.aa...@gmail.com wrote: It works by referencing the method with bracket or array notation. You can reference properties and methods of an object this way. For example: var obj = { test1: 'test_one', test2: 'test_two' }; alert(

[jQuery] Re: rating using thumbs up thumbs down.

2009-01-19 Thread MorningZ
Seems simple enough a task without having to spend two days wondering/ searching for a plugin img class=rate up src=thumns_up.png alt=Rate Up / img class=rate down src=thumns_down.png alt=Rate Down / $(document).ready(function() { $(img.rate).click(function () { var val =

[jQuery] Re: Cycle and CSS

2009-01-19 Thread pillpusher
I think I fixed my problems with .cycle and my CSS issues. I am using floats with my div tags. As you probably already know, there are plenty of problems with floats without introducing the cycle plugin. As I stated in my earlier post, I couldn't get things to go where I want them to. I realized

[jQuery] Re: [validate] Validating Ajax Loaded Form Problem - Stumped

2009-01-19 Thread Jörn Zaefferer
You call validate twice: Once before the form is loaded, with options. One once when the form is loaded, without options, therefore specifying no rules. The form is actually validated, but deemed as valid and therefore submitted. Jörn On Mon, Jan 19, 2009 at 7:10 PM, beysk netdinos...@gmail.com

[jQuery] Re: When to use LiveQuery plugin

2009-01-19 Thread Nguyễn Quốc Vinh
I always avoid to use LQ! I think that JavaScript has private behaviour! JS is not like CSS! Please ask yourself to find out a way which you don't must use LQ! 2009/1/19 Brandon Aaron brandon.aa...@gmail.com It really depends on how you are using LiveQuery. If you are using it only to bind

[jQuery] Re: 1.3, attributeStartsWith and '['

2009-01-19 Thread Balazs Endresz
Unforunately it's just turned out that there's anothor isssue behind this. You can follow the ticket if you want update on this, I guess it will be solved soon. On Jan 19, 10:46 am, Jedrzej Majko jdr...@gmail.com wrote: Hello, I have strange problem with attribute StartsWith in new version of

[jQuery] Re: jQuery 1.3 and selector

2009-01-19 Thread lideln
I found the issue !! It was caused by the plugin Validate. (maybe that plugin was redefining selectors ?) I'll try to see if there is an update. Thanks a lot, lideln wrote: Oh, nice ! Ok I'll wait for the 1.3.1 ! But I'll check my XHTML anyway. Thanks again Ricardo.

[jQuery] Re: [validate] Validating Ajax Loaded Form Problem - Stumped

2009-01-19 Thread beysk
Now that you point that out it seems so obvious - since nothing was happening I assumed it wasn't actually working. In reality I have a fairly complex form (Form 1) that the user completes, the data is stored in a database and the div containing the form is hidden on success. The rules for this

[jQuery] Re: Display Loading Image While Ajax Content Loads

2009-01-19 Thread jinscoe
Great! Thank you very much JQuery Lover! Much appreciated! On Jan 17, 2:52 pm, jQuery Lover ilovejqu...@gmail.com wrote: Yeap, you can bind all images with .gallery class a .load() event like this: $('img.gallery').load(function(){   $(this.).removeClass('loading').show(); });

  1   2   >