Re: [jQuery] IF. What am I doing wrong?

2009-12-05 Thread Rafał Pocztarski
2009/12/3 shapper : > >  alert($.cookies.get("WCA.Player")); >  var cookie = $.cookies.get("WCA.Player"); >  if (cookie == null || cookie == 'Play') { >     $("#JPlayer").play(); >  } Try using === instead of == Rafał Pocztarski

[jQuery] Re: jQuery Validate and Dialog Confirm. submit() not working.

2009-12-05 Thread spud
I have not written up a test to verify this, but I suspect that your problems is that the code following "Ok" is calling submit() on a full jQuery object of the form -- which has the validation script attached to it, so it gets caught in an endless loop. What you really want to do is to call the s

Re: [jQuery] Re: Content loaded via Ajax and global JS

2009-12-05 Thread John Imbong
I didn't know that. Thanks for the correction. John On Sat, Dec 5, 2009 at 11:59 PM, Karl Swedberg wrote: > On Dec 5, 2009, at 10:47 AM, John Imbong wrote: > > Yes, the *live *function should do it. In case that still won't work for > you, just work up the vine and install the plugin *livequery

[jQuery] Re: jQuery $this question - NEED HELP PLEASE!

2009-12-05 Thread seasoup
Let's step through it > THE SCRIPT: > >         this.vidPopUp = function(){ I take it that we're in an object at this point? > >                 $(".vidList li").click(function(){ Give me all of li descendents of DOM nodes with a class of "vidList" and add a click event on them >              

[jQuery] Re: jQuery Accordion problem - Links not working

2009-12-05 Thread goldlilys
Tried their solution for my site at http://goldlilys.110mb.com/Goldlilys/test3.html as a simple case. But adding a class on the "a" header crashes the entire accordion. What am I doing wrong that a simple solution doesn't even work? On Dec 2, 10:28 am, Scott Sauyet wrote: > On Dec 2, 12:05 pm, h

[jQuery] Re: jQuery Accordion problem - Links not working

2009-12-05 Thread goldlilys
Tried using that solution on my site at http://goldlilys.110mb.com/Goldlilys/test3.html as a simple case and the accordion suddenly doesn't work. Only the header gets clicked but the content div crashed. Basically, what am I doing wrong that a simple case doesn't even work? On Dec 2, 10:28 am, Sc

[jQuery] Re: $("select[name='kitten3']").append(new Option(group_array[i],id_array[i]));

2009-12-05 Thread MorningZ
Try $("select[name='kitten3']").append('' + group_array[i] + '"); On Dec 5, 12:33 pm, jabberwok wrote: >  $("select[name='kitten3']").append(new Option(group_array[i],id_array > [i])); > > this code works fine in firefox but not ie > > I get new node added to the select but they are blank, no v

[jQuery] jQuery $this question - NEED HELP PLEASE!

2009-12-05 Thread tripl3infinity
I wrote the following code to interact with a joomla video player plugin. Basically the video player embeds videos based on a single line of code like such: {flv avcss="vidMedia" width="720" height="576" autostart="true"}combiC_lumberApp{/flv}. I have multiple videos on the page, but they are hidd

Re: [jQuery] [Superfish] Left side dropdown menu

2009-12-05 Thread Charlie
the subs are absolute positioned , to have them open on left side you can change: .sf-menu li:hover ul,.sf-menu li.sfHover ul {     left:            0; } to: .sf-menu li:hover ul,.sf-menu li.sfHover ul {     right:    0; } another convenience of the API is being able to  use the  on

[jQuery] Re: Superfish: width of top level links - great with js off - too wide with js on

2009-12-05 Thread Dasher
Thanks Charlie. Removing "padding-right:2.25em;" for ".sf-menu a.sf-with-ul" in the css arrows section did the trick. Changed .sf-menu a.sf-with-ul { min-width:1px; padding-right:2.25em; } to .sf-menu a.sf-with-ul { min-width:1px; } Looks the same with js on and off now. Thank you Charlie.

Re: [jQuery] How do I trigger an event when a user presses a key within a text field?

2009-12-05 Thread Charlie Griefer
On Sat, Dec 5, 2009 at 1:16 PM, laredotorn...@zipmail.com < laredotorn...@gmail.com> wrote: > Hi, > > What is the event that I trigger if a user enters (or deletes) a > character within a textfield with id = "username"? > > Thanks, - Dave > Bet you can find it in here: http://docs.jquery.com/Eve

[jQuery] $("select[name='kitten3']").append(new Option(group_array[i],id_array[i]));

2009-12-05 Thread jabberwok
$("select[name='kitten3']").append(new Option(group_array[i],id_array [i])); this code works fine in firefox but not ie I get new node added to the select but they are blank, no value attribute or text in the display it's not a problem with the arrays as I have alerted them out fine in ie Help

[jQuery] How do I trigger an event when a user presses a key within a text field?

2009-12-05 Thread laredotorn...@zipmail.com
Hi, What is the event that I trigger if a user enters (or deletes) a character within a textfield with id = "username"? Thanks, - Dave

[jQuery] Re: Change opacity for all divs except one

2009-12-05 Thread aaronjacobstew...@gmail.com
Although the description is somewhat unclear, if you wish to allow the user to have several thumbnails selected, all at full opacity, you should adapt Maurico's nice script a little; the .click function should add the selected thumbnail to an array or list which can be used in the chain to filter t

[jQuery] [Superfish] Left side dropdown menu

2009-12-05 Thread Sam
Hi, I have 3 level menu. I want the sub menus to be open in left direction instead of right. Because the menu is in top right corner of the website, and when submenu are displayed. They goes outside the website window and browser shows the scroll bar, which doesnt look nice. I hope, u guys underst

[jQuery] Re: Content loaded via Ajax and global JS

2009-12-05 Thread aaronjacobstew...@gmail.com
Two ways. One is to extend your ajax callback to un-bind all existing button handlers and then re-bind them now that your new content has been inserted. OR the elegant way; use the .live method instead of .bind, it is designed for just such occasions. http://docs.jquery.com/Events/live#typefn go

[jQuery] thumbPopup within news ticker

2009-12-05 Thread Medes
Hi, I have created a new ticker (used code) which contains thumb nails what i want to do is when you move mouse over the images it would show the real size (400 * 400) of the image. but it works onley once the list is loaded, i mean the tooltip (popup) works only for those photos in the news ticker

[jQuery] Re: Changing background color of table cells

2009-12-05 Thread evanbu...@gmail.com
That works great, Karl. Thanks. Love the book, btw. On Dec 5, 1:54 pm, Karl Swedberg wrote: > I'd try something like this: > > $('#Directorships td:nth-child(1)').filter(function() { >    return $(this).text() == 'D'; > > }).addClass('bgHighlight'); > > Change the 1 in :nth-child(1) to whateve

[jQuery] Re: Content loaded via Ajax and global JS

2009-12-05 Thread mysterious79
Thanks for the suggestion. The similarity between the .live() example in the jquery documentation and my sample situation is uncanny. I'll give it a shot. I'm trying to avoid adding too many plugins to the site, but livequery looks intriguing as well. Thanks again. On Dec 5, 7:59 am, Karl Swedber

Re: [jQuery] Changing background color of table cells

2009-12-05 Thread Karl Swedberg
I'd try something like this: $('#Directorships td:nth-child(1)').filter(function() { return $(this).text() == 'D'; }).addClass('bgHighlight'); Change the 1 in :nth-child(1) to whatever column you want. nth-child is 1-indexed, so the first cell in a row would be :nth-child(1), the second :n

[jQuery] Changing background color of table cells

2009-12-05 Thread evanbu...@gmail.com
I have a table with an id of Directorships and I want to add the class bgHighlight to any cell with a value of 'D'. This code below works fine for an entire table but I just want to apply this logic to a single column of the same table rather than the whole table. Thanks. $('#Directorships tr').e

[jQuery] accordion menu: can't get links to link

2009-12-05 Thread Marion
I'm trying to write a very simple accordion menu. The markup is a list of links and sub-lists (of links). The behavior I want is that when you click on a link, you follow the link, and when you click on a list li, you toggle the visiblity of the sub-list. The problem I have is that while the cli

Re: [jQuery] Jquery unique ID

2009-12-05 Thread Charlie Griefer
http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js "> $(document).ready(function() { $('div.testClass').each(function(i) { $(this).attr('id', 'test' + i) }); }); A B C $('div.testClass').each(function(i) <-- will loop over each instance of a div

Re: [jQuery] Re: Content loaded via Ajax and global JS

2009-12-05 Thread Karl Swedberg
On Dec 5, 2009, at 10:47 AM, John Imbong wrote: Yes, the live function should do it. In case that still won't work for you, just work up the vine and install the plugin livequery instead, which is where live came from. John Actually, the .live() method didn't come from the livequery plug

Re: [jQuery] Re: Content loaded via Ajax and global JS

2009-12-05 Thread John Imbong
Yes, the *live *function should do it. In case that still won't work for you, just work up the vine and install the plugin *livequery *instead, which is where live came from. John On Sat, Dec 5, 2009 at 10:41 PM, jpcozart wrote: > Check out the live function. It can solve this problem. > > http

[jQuery] Jquery unique ID

2009-12-05 Thread kbuntu
I'm a designer and totally lost when it comes to php or java script. Perhaps somebody can help me. I have several images when hover over it will display a DIV called testing. The content is dynamically generated by wordpress. My problem is when I hover over an image it displays all the div's with

Re: [jQuery] Change opacity for all divs except one

2009-12-05 Thread Vlad GURDIGA
Maybe something like this would work? $(function() { $("#thumbs div").click(function() { $(this).toggleClass("selected"); if ($("#thumbs").data("user already selected their first favorite")) { if ($(this).hasClass("selected")) { $(this).fadeTo("slow", 1); } else {

[jQuery] data() for an element in another frame

2009-12-05 Thread gurdiga
I'm sorry to cross-post, but it has been two months without any answer from jquery-dev group, so, Hello, It looks like the data() method is not working "as expected" when used with elements from another frame (or iframe). Let's say we have an iframe. If we say inside it something like: $("body"

[jQuery] How to monitor scrolling of a page?

2009-12-05 Thread rtpHarry
Hey, I am investigating to see if its possible to track how far down the user scrolls on a page. Ideal situation is track if they got to a percentage of the page height like 90% or even if they reached the bottom of the page. The intention is to integrate it into Google Analytics so that I can s

Re: [jQuery] Re: Can I use "$(document).ready(function(){ " in the same page more than a once time in the same page

2009-12-05 Thread webmaster-uajms
thanks 2009/12/4 Michael Geary > It really makes little difference at all. jQuery makes an array of all your > "ready" callbacks, and when the document is ready it loops through that > array and calls each function. So other than that tiny bit of overhead, the > net effect is exactly the same wh

[jQuery] Re: Content loaded via Ajax and global JS

2009-12-05 Thread jpcozart
Check out the live function. It can solve this problem. http://docs.jquery.com/Events/live On Dec 5, 2:38 am, mysterious79 wrote: > This probably isn't a jquery question precisely, but jquery is being > used as my method for making ajax requests. > > I'm running into a recurring problem where fu

Re: [jQuery] Re: Why mootools animations is more smooth than jquery?

2009-12-05 Thread waseem sabjee
test with the minified version :) On Sat, Dec 5, 2009 at 2:22 PM, Acaz Souza wrote: > Hi everyone, i will do some tests with this librarys, i will elevate > the CPU usage and tests in the major browsers. > > On 5 dez, 09:57, waseem sabjee wrote: > > to be honest no library is 100% efficient. >

[jQuery] Re: Why mootools animations is more smooth than jquery?

2009-12-05 Thread Acaz Souza
Hi everyone, i will do some tests with this librarys, i will elevate the CPU usage and tests in the major browsers. On 5 dez, 09:57, waseem sabjee wrote: > to be honest no library is 100% efficient. > its like a template that anyone can download. what counts as what you do > with it and if suits

Re: [jQuery] plugin namespace

2009-12-05 Thread Jessica S
ben2233 wrote: > > I think I over-simplified the situation. I'm writing a widget (which > dynamically generates contents of a "div" element on the page, in this > case) that gets plugged into various parts of the website. And the > entire website is reliant on jQuery, so the jQuery code and pl

Re: [jQuery] Re: Why mootools animations is more smooth than jquery?

2009-12-05 Thread waseem sabjee
to be honest no library is 100% efficient. its like a template that anyone can download. what counts as what you do with it and if suits your needs. in some cases you would create your very own template if nothing suits your needs. so if you require 100% smoothness in everything you would require

[jQuery] Re: Why mootools animations is more smooth than jquery?

2009-12-05 Thread Acaz Souza
Hi everyone, i´m from brazilian, my english is too bad. Sorry for bad questions. But, ok ok, This depends on the computer hardware, engine of the browser, how the plugin is written and more... But, another question, The algorithm of animation that has been made in jquery to give the best quality

Re: [jQuery] Change opacity for all divs except one

2009-12-05 Thread Mauricio (Maujor) Samy Silva
Hi Jared The script is quite simply. Study it. jQuery: (document).ready(function(){ $('#thumbs div').click(function() { $(this).find('img').css('opacity', 1); $(this).siblings().find('img').css('opacity', 0.5); }); }); HTML: Hope this help you Maurício -Mensagem Orig

Re: [jQuery] Validate - date() Question from plug-in via bassistance.de

2009-12-05 Thread Jörn Zaefferer
Its been an outstanding issue for a long time. There are too many possible approaches to tackle it, and I couldn't yet decide on one to implement. Date parsing and validating is something I'd rather see in an extra library, with a leightweight custom method for the validate plugin to delegate to it

Re: [jQuery] [validate] Error using rules('remove')

2009-12-05 Thread Jörn Zaefferer
The rules method applies to individual elements, not the whole form. Call it directly on the age-field, and it should work. Jörn On Fri, Dec 4, 2009 at 1:34 PM, Eva wrote: > Hi all, > > I get an error when using rules('remove') from Jörn Zaefferer's > Validate plugin. > > The error is: > > elem

[jQuery] Re: Superfish: width of top level links - great with js off - too wide with js on

2009-12-05 Thread Dasher
Hey Charlie, Thanks for that. Unfortunately that makes no difference to the width of the top level items for me - only the drop down sub items. So it doesn't appear to be that In combination, commenting out this line does not have any affect on the top level width either: $('ul.sf-menu > li > a