[jQuery] adding filters in the middle of a selector brings Firebugs warning

2009-10-07 Thread BaBna
Hi, If I am doing this: alert($(.ivts_thead).find(tr:first).find(td).length); alert($(.ivts_thead tr:first td).length); I get in both cases the same result, the expected elements are in my object, but in the second case, I get a Firebug warning saying Unknown pseudo-calls or pseudo-element

[jQuery] Re: adding filters in the middle of a selector brings Firebugs warning

2009-10-07 Thread BaBna
Sorry, the message is Unknown pseudo-class or pseudo-element 'first'.

[jQuery] Re: SimpleModal box in the window that contains an iframe

2009-10-07 Thread BaBna
Are the Simple Modal function and jQuery also in frame B? If yes, I am not sure, and that sounds like a bad idea... If not, you should be able to do something like this: var t = top.window; var $d = t.$(document.body); $d.find(#myElement).modal(); On Oct 7, 2:36 pm, Yeuker yeu...@gmail.com

[jQuery] Re: Problems with elements shifting when scripts are activated in IE8 (jscrollpane script)

2009-10-07 Thread BaBna
Hey there, I don't think it has anything to do with the javascript here, it's your CSS or HTML structure: you've got DIV and P on the same level, and you must miss some float or overflow property on some of your DIV. Basically, your div with the jScrollPaneContainer class is not pushed below by

[jQuery] Re: how to know script's self path?

2009-08-27 Thread BaBna
First, why did you change the title of my post and added your unrelated question there? Second, in PHP, PHP_SELF doesn't send the name of the actual php script in which it is called but the page running in the browser, i.e. if you call PHP_SELF from a file included in your index.php, PHP_SELF

[jQuery] innerWidth doesn't measure scrollbars in Safari/Chrome

2009-08-27 Thread BaBna
Rechanging the subject to its original title... On Aug 27, 12:02 pm, BaBna thomas.na...@gmail.com wrote: First, why did you change the title of my post and added your unrelated question there? Second, in PHP, PHP_SELF doesn't send the name of the actual php script in which it is called

[jQuery] innerWidth doesn't count scrollbars in Safari/Chrome

2009-08-26 Thread BaBna
Hi, Does anyone knows a method to measure the scrollbar's width, which works in Safari/Chrome. The innerWidth function doesn't seem to take the scrollbar's width into account when measuring the innerWidth of the child element of a scrollbared element. Thanks!

[jQuery] Live on load

2009-07-09 Thread BaBna
Does anyone know if a plugin exists, which could detect any new node in the DOM? Something like live, but where the trigger would be the creation of the element. If it was possible with live, I guess that would be something like that: live(load,.myClass,function(){ alert(A new element with the

[jQuery] Re: Check if jQuery is disabled on a browser

2009-07-09 Thread BaBna
http://www.sitepoint.com/blogs/2007/02/23/handling-javascript-disabled-browsers/ http://roshanbh.com.np/2008/04/how-to-know-handle-disabled-javascript.html On Jul 9, 4:57 pm, shehan digitalshe...@gmail.com wrote: Hi, I'm using JQuery in site I'm building and I can see that it works on my

[jQuery] Re: Decrement on click?

2009-07-09 Thread BaBna
It's beacuse you call your count var, which is always 8. Either you redefine count in your function or you decrement it: $(#dataset-b tr).click(function(){ count = $(.count).html(); ... OR $(#dataset-b tr).click(function(){ count--;

[jQuery] Re: Decrement on click?

2009-07-09 Thread BaBna
I meant: It's because you call your var count, which is always 8... On Jul 9, 6:34 pm, BaBna thomas.na...@gmail.com wrote: It's beacuse you call your count var, which is always 8. Either you redefine count in your function or you decrement it: $(#dataset-b tr).click(function

[jQuery] Re: Tutorial evaluation

2009-07-08 Thread BaBna
.. this will be a challenge i bet.. On Wed, Jul 8, 2009 at 10:06 AM, bharathbhooshan ambati bharathbhooshan.amb...@gmail.com wrote: All the best.. Keep on posting dude... On Wed, Jul 8, 2009 at 12:16 AM, BaBna thomas.na...@gmail.com wrote: Hi, I have

[jQuery] Re: having a hard time finding the parent...

2009-07-08 Thread BaBna
What about $('li.active').parents(ul).find(.whatever)? On Jul 8, 2:10 pm, vaaaska vask...@gmail.com wrote: Haha...nice title? ;) I have this list structure and when the page loads I reveal the active page...all the other pieces are revealed when you click. Everything works great except this

[jQuery] Re: why is this href firing???

2009-07-08 Thread BaBna
I don't really see where your link is, but if you had .click(function (e){e.preventDefault();} to your link, that should disable it. On Jul 8, 3:54 pm, Jan Limpens jan.limp...@gmail.com wrote: hi there! this plugin extends an input text with 2 links that increase or decrease it's value by 1.

[jQuery] Re: treeview: using links that don't toggle

2009-07-08 Thread BaBna
Would this work? $(function(){ $(.collapsable a).click(function(e){ e.preventDefault(); }); }); On Jul 8, 1:42 pm, Cedd Burge cedd.bu...@nhs.net wrote: Hi. I have a treeview with links in that navigate to other pages when clicked. I didn't want these to cause toggling when they were

[jQuery] Re: Cannot disable div

2009-07-08 Thread BaBna
Maybe because there is no disabled property for DIV? http://www.w3schools.com/tags/tag_DIV.asp On Jul 8, 4:25 pm, expresso dschin...@gmail.com wrote: div class=jcarousel-skin-ie7 div class=jcarousel-container jcarousel-container-horizontal style=display: block; height: 220px; width: 592px;

[jQuery] Re: Cannot disable div

2009-07-08 Thread BaBna
you mean, block the content inside div? - Original Message - From: BaBna thomas.na...@gmail.com To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, July 08, 2009 9:28 AM Subject: [jQuery] Re: Cannot disable div Maybe because there is no disabled property for DIV? http

[jQuery] Re: iTunes for flash games - done in jQuery

2009-07-08 Thread BaBna
Quite impressive, good job! Just spent 20 minutes on one of the games :P 2 things: at some stage in the sign up process, there are 2 buttons to accept/confirm or not in a dialog box, and I couldn't see the text (below the end of the box). I use FF3 on PC. And also I could move the floating

[jQuery] Tutorial evaluation

2009-07-07 Thread BaBna
Hi, I have just finished a beginner's interactive tutorial about jQuery for my colleagues, and I wonder if anyone could give any feedback on it - it's my very first training material. http://babna.eu/jQuery/ Thanks! Thomas

[jQuery] Re: Tutorial evaluation

2009-07-07 Thread BaBna
...@earthlink.net On Jul 7, 2009, at 11:46 AM, BaBna wrote: Hi, I have just finished a beginner's interactive tutorial about jQuery for my colleagues, and I wonder if anyone could give any feedback on it - it's my very first training material. http://babna.eu/jQuery/ Thanks

[jQuery] Re: jQuery - Ajax and Load question

2009-07-07 Thread BaBna
You need to define your callback function. Maybe something like this? $.get(index.php, { id: productId , qtd: quantidade }, function(data) { doWhateverWith(data); }); On Jul 7, 10:42 pm, Glazz brunofgas...@live.com.pt wrote: Hello, I have a function that have this: