[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: 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 wrote: > Hi Everyon

[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] 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-el

[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 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] 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 wil

[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] Re: save ajax query to global variable

2009-07-09 Thread BaBna
As it seems you want your tb1 global, remove the "var" for declaring it. Also, your alert(tb1) is likely to be executed before tb1 is defined. You need to put your alert in the callback function if you want to be sure it works. On Jul 9, 2:47 pm, Vaidotas Zemlys wrote: > Hi, > > When trying out

[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 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(funct

[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: 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 wrote: > Hi, > > I'm using JQuery in site I'm building and I can see that it works on > my browser and a majority

[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

[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 contro

[jQuery] Re: Cannot disable div

2009-07-08 Thread BaBna
? > > Do you mean, block the content inside div? > > ----- Original Message - > From: "BaBna" > To: "jQuery (English)" > Sent: Wednesday, July 08, 2009 9:28 AM > Subject: [jQuery] Re: Cannot disable div > > Maybe because there is no disabled p

[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 wrote: > > style="display: block; height: 220px; width: 592px;"> > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > I'm trying to change d

[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 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 clicked. > M

[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 wrote: > hi there! > > this plugin extends an input text with 2 links that increase or decrease > it's value by 1. > unfortunately,

[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 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 one deta

[jQuery] Re: Tutorial evaluation

2009-07-08 Thread BaBna
ry to > a controller > > in cakephp.. > > 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... &g

[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 wrote: > Hello, > > I have a function that have this: > >                         $.ajax({ >    

[jQuery] Re: Tutorial evaluation

2009-07-07 Thread BaBna
t; > Sincerely, > -Blake > bsenft...@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 >

[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