[jQuery] Re: Problems with elements shifting when scripts are activated in IE8 (jscrollpane script)
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 the blocks before it.
[jQuery] Re: SimpleModal box in the window that contains an iframe
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 Everyone, > > I am using Eric Martains Simple Modal dialog box. Here is my > problem. I have a page, (which we will call page A) that contains an > iframe (which we will call page B). I can modify page B, the iframe, > but I can not modify page A, the containing page. > > I would like to display the modal dialog box in page A, but have the > code and modal div html in page b. Is this possible. > > This is a tough problem to describe, but hopefully i have done a > decent job. Any questions, please ask and I will get back to you > asap. > > Thanks so much for your help, > > Yeuker
[jQuery] Re: adding filters in the middle of a selector brings Firebugs warning
Sorry, the message is "Unknown pseudo-class or pseudo-element 'first'".
[jQuery] adding filters in the middle of a selector brings Firebugs warning
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 'first'". This happens each time I am adding any :filter to any selector which uses more than one single expression. Does that mean that I should create my selectors as I did in the first case? That wouldn't be very handy... Thanks! Thomas
[jQuery] innerWidth doesn't measure scrollbars in Safari/Chrome
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 but the page running in the browser, i.e. > if you call PHP_SELF from a file included in your index.php, PHP_SELF > will return index.php, and not the name of the file you are actually > calling it from. I think it's the same in JavaScript, you can't get > the name of the actual JS file (I am not 100% sure), but you can get > the URL of the page with document.location.href. > > On Aug 26, 2:06 pm, tinker wrote: > > > Hi there, > > > I wish to get the path and filename of the current running js file > > itself. I thought there must be the similar way just like php's > > $_SERVER['PHP_SELF'] does but I cannot find any clue. As you know, > > 'location' returns path and filename of html file not js file. Anyone > > knows how to do that? I have been stuck by this question for weeks. I > > wait for good answer. Thank you. > > > Tink
[jQuery] Re: how to know script's self path?
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 will return index.php, and not the name of the file you are actually calling it from. I think it's the same in JavaScript, you can't get the name of the actual JS file (I am not 100% sure), but you can get the URL of the page with document.location.href. On Aug 26, 2:06 pm, tinker wrote: > Hi there, > > I wish to get the path and filename of the current running js file > itself. I thought there must be the similar way just like php's > $_SERVER['PHP_SELF'] does but I cannot find any clue. As you know, > 'location' returns path and filename of html file not js file. Anyone > knows how to do that? I have been stuck by this question for weeks. I > wait for good answer. Thank you. > > Tink
[jQuery] innerWidth doesn't count scrollbars in Safari/Chrome
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
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, I ran into seemingly very simple problem. I > did a search on internet and did not get any satisfactory result. I am > suspecting that the mistake is very simple, so anyone more experienced > can help me. > > What I am trying to do is load data from server, then present it in > the table, and plot it later. Since I am intending to use flot plugin, > and it accepts arrays as an argument, I thought that I load the file, > save it to some array, and then plot it when time comes (when user > presses something, etc.) So my javascript code goes like this: > > > script> >