Re: [jQuery] blockui crushes IE6
Wow - that's a lot of scripts! I had the same problem. Appears that IE6 crashes if it's in standards mode (removing the DOCTYPE solves the problem). Mike has just (today) released 1.0.1 which seems to fix the problem. Get it from the BlockUI site. Seb amircx wrote: > > hey. i got this code: http://pastebin.ca/401900 > when im submit the form in ie6 its about 85% times crushes... > > just let you know > -- View this message in context: http://www.nabble.com/blockui-crushes-IE6-tf3428165.html#a9555739 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] BlockUI over ActiveX plugin
Hi Mike, I'll send it to you off-list, as it's a development site... Seb On 13 Mar 2007, at 10:43, Mike Alsup wrote: Is it possible to get BlockUI to overlay an ActiveX control in IE? I am using the XStandard XHTML editor plugin for a CMS; form submission is via an AJAX call, while displaying a BlockUI message over the page. In Firefox and Safari, the BlockUI message appears over the plugin; but in IE, the ActiveX control remains on top and hides the BlockUI message, remaining clickable. I thought maybe something with an iframe, but not sure what... Seb, blockUI uses an iframe at z-index 1000. Is there a url where I can see the problem? Mike ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ smime.p7s Description: S/MIME cryptographic signature ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] BlockUI over ActiveX plugin
Is it possible to get BlockUI to overlay an ActiveX control in IE? I am using the XStandard XHTML editor plugin for a CMS; form submission is via an AJAX call, while displaying a BlockUI message over the page. In Firefox and Safari, the BlockUI message appears over the plugin; but in IE, the ActiveX control remains on top and hides the BlockUI message, remaining clickable. I thought maybe something with an iframe, but not sure what... Seb smime.p7s Description: S/MIME cryptographic signature ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Testing... please ignore...
Sorry, had some problems with my spam service. Just checking this gets through now it's turned off... Seb ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] List slow?
I don't know if it's just me, or if anyone else has had problems, but I've had no messages from the list all day, and then a few minutes ago I had a few that were 10 hours old... If it's just me, I'll investigate further... Seb ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Safari Crashing
Is there any way you could re-release this as 1.1.3? The people who use jQuery are very likely to update their websites with any new point release, but maybe not with a re-release of the same version. I've already come across a number of sites (mostly demos of plugins) that crash Safari because they're using the initial 1.1.2 release. And for most of them, it won't be an issue they'll know about because they're not using Safari... Seb On 5 Mar 2007, at 18:01, Seb Duggan wrote: > Yes, fixes my problem too... > > > Seb ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Safari Crashing
Yes, fixes my problem too... Seb On 5 Mar 2007, at 17:42, Brad Perkins wrote: > John, > > Yes, installing the latest build fixes the problem. > > Thanks for the speedy reply and for such an awesome library! > > best, > > Brad Perkins ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Parent and Single Parent Element Selection
Maybe something like: $('.colorPick').change(function() { $(this).parent().parent().addClass('assigned'); }); where colorPick is the class assigned to your select menu. You could also use: $('.colorPick').change(function() { $(this).parents('tr').addClass('assigned'); }); but my gut tells me that's not quite as efficient, as it will look for 'tr' elements all the way up to the top of the DOM tree. Seb On 5 Mar 2007, at 17:09, Kevin Fricovsky wrote: > > Morning, > > I have a question for the jquery group. > > My question is - what's the best way to get a single parent element of > the current object. > > Right now I have an html table with multiple rows. In the first TD of > each row I have a select list (a dropdown). > > I have a select() event attached to the option list and when the user > selects an option the background color for that row (TR) is changed. > (well, actually all TR backgrounds are changing right now that's > why I'm > writing everyone). > > So, the only problem I'm having is getting the single parent TR. > > Right now my update statement is updating every TR in the table versus > just the parent. > > The code is something like this: > > $("../../../../tr",this).addClass("assigned"); > > The "this" is the select element. > > Even if I do use an indexer on this statement like this $(...)[0] - > the > problem there is the system currently doesn't know the index of the > row > it's on. > > So I can either add the index in a hidden value or I thought maybe > there's an easier way of doing this via JQuery. > > Thx for your help. > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Safari Crashing
I've had similar problems with 1.1.2 on Safari, not just with AJAX calls. I've reverted to a recent nightly build of jQuery, and it's behaving itself... Seb On 5 Mar 2007, at 17:02, Brad Perkins wrote: > Are there any known issues where jQuery would crash Safari? > > I'm testing using jQuery 1.1.2. With Safari 2.0.4, the browser window > disappears as soon as I make an AJAX call. I've observed this on two > different Macs? > > I also note that a recent WebKit build on the same machine doesn't > crash. Firefox and Camino work fine too. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] prependTo element's own parent
I want to take an element, and prepend it to its own parent element. How would I do this? Seb ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Submit a form (POST) to a Thickbox panel
I see how to do this with a normal HTML page, but how do I submit the data via POST and get the resulting page into a Thickbox iframe? Seb On 4 Mar 2007, at 19:16, Erik Beeson wrote: > Use Thickbox in iframe mode and bounce the content off your server. > On 3/4/07, Seb Duggan <[EMAIL PROTECTED]> wrote: >> I'm working on a CMS application, and want to create a preview >> button. >> >> What I want it to do is take the form content, pass it to a preview >> page which will be loaded into a Thickbox (or similar) overlay, but >> not submit the main form. >> >> The content of the form is likely to be too long to send as GET data, >> so POST will be required. >> >> >> Any ideas? >> >> >> Seb >> >> >> ___ >> jQuery mailing list >> discuss@jquery.com >> http://jquery.com/discuss/ >> > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Submit a form (POST) to a Thickbox panel
I'm working on a CMS application, and want to create a preview button. What I want it to do is take the form content, pass it to a preview page which will be loaded into a Thickbox (or similar) overlay, but not submit the main form. The content of the form is likely to be too long to send as GET data, so POST will be required. Any ideas? Seb ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery 1.1.2
I've noticed a problem in Safari too, this time with the datePicker plugin (also written by Kelvin - sorry!). When clicking the date picker icon, Safari immediately crashes every time when using the 1.1.2 release. However, I've tested with every single nightly build, from Feb 18 to Feb 28, and they all work perfectly. So, I don't know what's different in the released version?? I thought it might be a packing problem, but the problem also exists with the uncompressed file. All very strange... Seb On 28 Feb 2007, at 07:22, Jonathan Bloomer wrote: > Just to let you know the latest release seems to have caused an issue > with the jScrollpane plugin whereby it crashes Safari on mac, for now > I would stick with the previous release of jQuery until the plugin has > been updated. I have notified Kelvin of the problem, hope he can fix > it it's a great plugin! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Toggling
This should do it (not tested): $(".parent").click(function() { $(this).next(".sub").toggle(400); return false; }); Seb On 24 Feb 2007, at 15:39, poncjusz wrote: Hi everyone I've html code: Something Something Something Something Something Something Something and jquery code: $(document).ready(function() { $(".sub").hide(); $(".parent").click(function() { $(".sub").toggle(400); return false; }); }); everything is ok until there is more then 1 link with parent class, when I click on link with parent class all divs with sub class slidingDown :/, what I should do? I want different behaviour: when I click on parent link only the nearest sub should slideDown. Thanks in advance for help Tomek ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery rocks
Hi Tyler, One of the great things with jQuery is how quickly you'll find yourself giving other people advice... What you're asking about is one of the first things I tried to do in jQuery, although your HTML structure is slightly different from mine (mine was simple nested unordered lists). Anyway, the code you want is: $('dt a').click(function(){ $(this).parent().next().siblings('dd:visible').slideUp('slow'); $(this).parent().next().slideToggle('slow'); return false; }); What this does is: The $(this).parent().next() bit locates the element connected to the clicked link; and therefore its dd siblings are all the other dd elements. So we close them if they're visible, and then toggle the one we clicked. Seb On 24 Feb 2007, at 13:38, TE Gossman wrote: > hi all jquery newbie here, > >I'm working on a jquery accordion menu here: > http://70.133.226.219/dwtIndex.htm > It's the button menu on the left. > It's written just using John R's DL demo from the screencast tutorial, > with only one change that nothing is open initially. > > I can't figure out how to make the button's toggle when clicked, > rather than if they are open, close and open again. > I've seen some code hints but can't quite figure out exactly how to > add those to the existing code. > Thanks for any help. > > Another great idea that I think would receive some attention is if > somebody could code up something like this: > http://www.presidentielles.net/ > > The accordion panels cycle in the main content area on the left, on a > timer like an automated slideshow. This one seems to be written using > moo.fx. Takes just a few seconds before they begin the slideUp on the > timer. Cool... > > If there a forum/message board anywhere dedicated to jquery? > I think it makes more sense than a mailing list (said to the fans of > the mailing list). :) > The magazine idea was kind of a dud, great concept but there's only > ever been one excellent edition, a magazine is usually put out > regularly, a bit of a dissapointment :( > > Anyways thanks to everyone for all of their contributions to > everything jQuery! > tyler > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Thickbox and FF Mac
I see what you mean about the resizing, but this happens even without resizing the window. If you set the window so it's bigger than the content (before loading the page!) the Thickbox background overlay only goes down as far as the bottom of the content, not the bottom of the window (as in the screenshot). On 23 Feb 2007, at 10:39, Schnuck wrote: > it might sound stupid but i believe thickbox is meant to be working > like this. sure, it re-centers the image in realtime when resizing the > window but it does not do that with the overlay. same happens on the > official thickbox page in firefox AND safari. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Thickbox and FF Mac
I've got a site which uses a Thickbox gallery at: http://www.dnesd.com The pictures down the right hand side link to a Thickbox gallery. It all works fine, except for in Firefox Mac (2.0.0.1), where for some reason the background doesn't cover the whole window. For those who don't have a Mac, this is what it looks like: http://sebduggan.com/testing/dnesd_ffmac.png Anyone have any ideas why this is happening? Seb ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Big problem with FF2, flickering on all animate effect
On 22 Feb 2007, at 08:46, Sanyi wrote: I already use 1.1.1 jQuery. Brandon's point was that it has been fixed SINCE the 1.1.1 release. (1.1.1 was still broken - I had the same problem). I updated to the latest nightly build, and it works perfectly! Seb___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Setting an image caption width
Great stuff, Klaus! The more I learn about jQuery, the more I wish I'd discovered it before! Seb On 14 Feb 2007, at 14:06, Klaus Hartl wrote: > > make it: > > (function($) { > $.fn.imgCaption = function() { > return this.each(function() { > var img = $('img', this); > $('' + img.attr('title') + '').css({width: > img.width() + 'px'}).appendTo(this); > }); > }; > })(jQuery); > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Setting an image caption width
Not sure I agree on the title attribute not being suitable, but I see your point on the alt. Nevertheless, I want to change this: Into this: Some text I want to use as the caption Nad have come up with a similar problem to before. This is what I have, and I know the $(this) doesn't work here, but I don't see how else to do it (and the 'after' method doesn't seem to take a function as an argument). $('.captimg').after('' + $(this).attr('title') + ''); What do you reckon? Seb On 13 Feb 2007, at 22:40, Klaus Hartl wrote: > The alt attribute should be something different than the caption (and > the title attribute as well by the way). Consider you were > displaying a > user image and the name of the user would be the caption in this case. > > > John Doe > > If images are disabled, it would look like: > > User: John Doe > > In your case it would look like: > > John Doe John Doe > > which is not at all reasonable. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Setting an image caption width
Perfect, Klaus! Thanks, that does exactly what I want it to. Now to rewrite the HTML, so the float div is generated automatically, and the caption is generated from the alt attribute... Seb On 13 Feb 2007, at 21:03, Klaus Hartl wrote: > Stupid me, I forgot a return statement (too much Ruby lately)... and > also the unit seems to be required: > > $('div.image p').css('width', function() { > return $(this).prev().width() + 'px'; > }); > > > > -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Which file to download from SVN?
Thanks Karl - that's very useful. And yes, the FF flicker is now fixed! Seb On 13 Feb 2007, at 16:21, Karl Swedberg wrote: Hi Seb, If you want to do an SVN checkout, the instructions at http:// docs.jquery.com/Downloading_jQuery should help. If you just want to quickly grab a file, feel free to take one of the flavors on my test server. They are all Rev 1316 from 2/9/07, and they should have the flicker fix in them: http://test.learningjquery.com/scripts/jquery.js http://test.learningjquery.com/scripts/jquery.lite.js http://test.learningjquery.com/scripts/jquery.pack.js Cheers, --Karl ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Setting an image caption width
Thanks Klaus. Yes, I'm using jQuery 1.1. However, this still doesn't seem to work. Try the sample code with a longer caption, and this: $('div.image p').click( function() { alert( $(this).width() ); }); Now, clicking the caption will report its actual width. It's not being limited to the width of the image... Seb On 13 Feb 2007, at 13:59, Klaus Hartl wrote: > Seb, from the code you supplied the error is that "this" in your > assignment doesn't refer to the selected p. If you're using jQuery > 1.1. > you can do this: > > $('div.image p').css('width', function() { $(this).prev().width > (); } ); > > With a little more semantic HTML (create a relationship between image > and caption by using a dl) > > > > A caption for the image > > > the code has to look like: > > $('dl.image').css('width', function() { $('img', this).width(); } ); > > If you don't use jQuery 1.1 you would have to use an each loop, let me > know if that's the case. > > > -- Klaus > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Setting an image caption width
I've got a number of pictures with captions that will be floated right in the main body text. The HTML looks like this: A caption for the image Because the images will vary in width, I don't want to hard-code the width into the stylesheet. But I don't want the caption ever to be wider than the image. So I tried the following: $('div.image p').width( $(this).prev().width() ); In theory, this should set the width of the caption paragraph to the same as the width of the image preceding it; but it doesn't work. What have I done wrong? Seb ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Which file to download from SVN?
OK, I'm not very well up on SVN... I've read that the latest build on SVN might fix the problem of flickering in FF Mac, so thought I'd download it to test... Which file/branch/etc. should I be trying? Seb ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Multi-level concertina menu
Hi Olaf, Not actually a problem - in the finished implementation, all the links will be operational, so if you click on a link with JS off, you'll be taken through to a physical page with that menu expanded. Similarly, if you drill down through the menus and follow a link, that submenu will be expanded when you reach the target page. But that's handled server-side, not by jQuery. Seb On 12 Feb 2007, at 12:09, Olaf Bosch wrote: > Seb Duggan schrieb: > >> I have two problems: >> >> 1. In Firefox on the Mac, on clicking a link, the toggled menu >> flashes up in full for an instant, before sliding open as it should. >> It works perfectly in Safari, IE Win 6+, Opera 8+, FF Win. >> >> 2. It almost works in IE 5.5, apart from the menus doing a jig to the >> side when they finish opening. Is there a way to prevent IE 5.5 from >> executing the jQuery scripts? (I could always do a server-side check >> that doesn't write the
Re: [jQuery] Menu flicker in FF Mac (was: Wait for event to complete)
Oops... sorry, problem with my IMAP drafts... Ignore this post! Seb On 12 Feb 2007, at 11:34, Seb Duggan wrote: > I've actually streamlined my concertina menu code now, and decided > that it wasn't actually necessary to have one event wait for the > previous one (couldn't get it to work, anyway...) > > My code now works with a nested menu structure, with no extra > classes needed in the HTML, and will expand/close menus at any level > in the nest. The code is simple: > > $('#menu li ul').prev().click(function(){ > $(this).parent().siblings().children('ul:visible').slideUp > ('fast'); > $(this).next().slideToggle('normal'); > return false; > }); > > It closes all other open menus at the same level as the clicked item, > then toggles the clicked menu. An example: > > http://www.sebduggan.com/testing/jquery-menu.htm > > I have two problems: > > 1. In Firefox on the Mac, on clicking a link, the toggled menu > flashes up in full for an instant, before sliding open as it should. > It works perfectly in Safari, IE Win 6+, Opera 8+, FF Win. > > 2. It almost works in IE 5.5. > > > > > On 6 Feb 2007, at 21:19, Rey Bango wrote: > >> Actually Seb, >> >> Use this: >> >> $('.topMenu').click(function(){ >> >> $('ul.level1:visible').slideUp('normal'); >> $(this).next().slideDown('normal'); >> >>return false; >> >> }); >> >> Rey... >> > > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Menu flicker in FF Mac (was: Wait for event to complete)
I've actually streamlined my concertina menu code now, and decided that it wasn't actually necessary to have one event wait for the previous one (couldn't get it to work, anyway...) My code now works with a nested menu structure, with no extra classes needed in the HTML, and will expand/close menus at any level in the nest. The code is simple: $('#menu li ul').prev().click(function(){ $(this).parent().siblings().children('ul:visible').slideUp('fast'); $(this).next().slideToggle('normal'); return false; }); It closes all other open menus at the same level as the clicked item, then toggles the clicked menu. An example: http://www.sebduggan.com/testing/jquery-menu.htm I have two problems: 1. In Firefox on the Mac, on clicking a link, the toggled menu flashes up in full for an instant, before sliding open as it should. It works perfectly in Safari, IE Win 6+, Opera 8+, FF Win. 2. It almost works in IE 5.5. On 6 Feb 2007, at 21:19, Rey Bango wrote: > Actually Seb, > > Use this: > > $('.topMenu').click(function(){ > > $('ul.level1:visible').slideUp('normal'); > $(this).next().slideDown('normal'); > >return false; > > }); > > Rey... > ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Multi-level concertina menu (was: Wait for event to complete)
Thanks Rey... I've actually streamlined my concertina menu code now, and decided that it wasn't actually necessary to have one event wait for the previous one (couldn't get it to work, anyway...) My code now works with a basic nested menu structure, with no extra classes needed in the HTML, and will expand/close menus at any level in the nest. The code is simple: $('#menu li ul').prev().click(function(){ $(this).parent().siblings().children('ul:visible').slideUp('fast'); $(this).next().slideToggle('normal'); return false; }); Line 1 locates all sub-menus within the nesting, and attaches the event to the immediately preceding element. Line 2 steps up to the link's enclosing , finds all its siblings with a visible sub-menu, and slides them closed. Line 3 toggles the visibility of the clicked link's sub-menu. Line 4 stops the clicked link from being followed. An example, with up to 3 levels of nested menus: http://www.sebduggan.com/testing/jquery-menu.htm I have two problems: 1. In Firefox on the Mac, on clicking a link, the toggled menu flashes up in full for an instant, before sliding open as it should. It works perfectly in Safari, IE Win 6+, Opera 8+, FF Win. 2. It almost works in IE 5.5, apart from the menus doing a jig to the side when they finish opening. Is there a way to prevent IE 5.5 from executing the jQuery scripts? (I could always do a server-side check that doesn't write the
Re: [jQuery] Wait for event to complete
Oops... apologies for the email garbage... On 6 Feb 2007, at 19:29, Seb Duggan wrote: > > -- > Content-Transfer-Encoding: 7bit > Content-Type: text/plain; > charset=US-ASCII; > format=flowed > ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Wait for event to complete
I'm just starting up with jQuery, and have run into a problem with my navigation menu. It's a vertical accordion menu, with each section opening when clicked, and any other open sections close. Also, a section will close if it's open and clicked. So, I have the following code attached to the elements in the menu: $('.topMenu').click(function(){ $(this).next().addClass('active'); $('ul.level1').filter(':visible').not('.active').slideUp('normal'); $('.active').slideToggle('normal'); $(this).next().removeClass('active'); return false; }); The HTML looks like this: Section 1 Link 1 Link 2 Section 2 Link 1 Link 2 Section 3 Link 1 Link 2 This flags the clicked link; closes all the sections at the same level that are not the flagged link; toggles the clicked link; then removes the flag; and finally returns false so the browser doesn't follow the link. My problem is that, as the code stands, the closing and opening take place at the same time; I want the open sections to close, and then when that's finished the clicked section should toggle. I initially thought the callback feature would handle this; but after trying to work out why it didn't work, found that the rest of the script continues. I also thought chaining might be the answer, but couldn't get it to work as I wanted... How can I get the slideToggle to wait for the slideUp to complete? Seb___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/