[jQuery] Site check: sustainablevaluecalculator.com

2008-01-20 Thread Bernd Matzner
Hi there, a project of ours, sustainablevaluecalculator.com, is now in public beta. The website introduces a new model for calculating corporate sustainability - so probably less interesting to the general public, but I still hope we've done a good job in making it easy to understand and follow.

[jQuery] Re: Using JQuery with PHP Frameworks

2008-01-07 Thread Bernd Matzner
I have used both CodeIgniter and Zend Framework with jQuery using progressive enhancement and ajax and can recommend both. CodeIgniter is nice for getting started using a MVC framework. ZF is more powerful and good to integrate in existing applications. There's a nice CodeIgniter tutorial at http

[jQuery] Re: offset() causes error in IE

2007-12-14 Thread Bernd Matzner
Hi, took me precisely one month to figure out what caused the error. I was using "box" for an id, which obviously is reserved in IE. Strangely enough, it caused jQuery's offset() to fail with elements within a div named , while doing an offsetParent on the HTML object worked. This article discu

[jQuery] Re: loading xml in IE6/IE7 on a CD

2007-12-13 Thread Bernd Matzner
Hi Benjamin, any progress on your xml loading problem in IE locally? I'll be fiddling with it some more tonight, so I'll let you know anything I find out. Bernd

[jQuery] Re: loading xml in IE6/IE7 on a CD

2007-12-12 Thread Bernd Matzner
Hi Benjamin, I'm currently struggling with a similar error. Possibly the xml data isn't transmitted as XML? $.ajax({ type: 'GET', url: xmlFile, dataType: 'xml', success: function(){}, error: function(x, s, e){} }); If I use JSON, things are working nicely. Any chance to change your xmlfile to j

[jQuery] offset() causes error in IE

2007-11-14 Thread Bernd Matzner
Hi, I have a page in which I'm trying to use offset() on a checkbox (using jQuery 1.2.1) In FF, everything works fine, but I'm getting an "Object doesn't support this property or method" in IE6 and IE7. The debugger indicates that the error occurs where jQuery tries to do "box=elem.getBoundingCli

[jQuery] Thanks for bringing back eq() in 1.2.1

2007-09-17 Thread Bernd Matzner
It really makes things easier when selecting elements with variables. Bernd

[jQuery] Re: NEWS: jQuery 1.2 Released

2007-09-16 Thread Bernd Matzner
Hi Peter, you don't need the plugin for that. $('input[type="file"] will do. see http://docs.jquery.com/Selectors/attributeEquals#attributevalue bernd

[jQuery] Re: jquery 1.2 feedback

2007-09-12 Thread Bernd Matzner
> I'm using Jorn's Form Validation in a monster form. Using jQuery > 1.2minified version returns all validation in =~ 16 sec. Using > uncompressed > version returns in 6 sec. Hi, somewhat unrelated to the thread: 6 or even 16 secs seem like an eternity. What would be the disadvantages of using s

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-24 Thread Bernd Matzner
Hi John, > The .eq() method wasn't removed in 1.1.4, it was deprecated. thanks for clarifying. I misunderstood. I had searched jquery.js for "eq(" and couldn't find it, so I assumed it had been removed. Now I see it's still there, and I learned something new about how these functions are created

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-24 Thread Bernd Matzner
> I'd rather work on UI Tabs aka Tabs 3 at the moment... :-) I heard that! Looking forward to it ;-) > But ok, I'll fix that, I only need to figure out a way to support both > 1.1.4 and less than 1.1.4 versions. I think it would be enough to post a notice on your tabs page about it not working

[jQuery] Re: Developing for Opera

2007-08-24 Thread Bernd Matzner
Hi Joel, > I think the unstyled content quirk can be avoided by ensuring that all CSS > and links to same come before all your JavaScript links in the HTML source > order. Have you tried that? That was a terrific tip - a good remedy to about 95% of the problem I had with a specific site. In addi

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-24 Thread Bernd Matzner
Thanks to everyone on the dev team for the new release! @Klaus: are you planning to update your tabs plugin to the new release? It uses eq(), which I understand are deprecated now. Bernd

[jQuery] Re: Developing for Opera

2007-08-23 Thread Bernd Matzner
> it's actually pretty easy to get everything to > work in Opera I found the opposite to be the case. When applying certain Javascripts to a page, Opera suddenly loses styles. I couldn't really narrow it down specifically, but one case would be a script that changes the height of a page element,

[jQuery] Testing and Validating extension tips

2007-08-21 Thread Bernd Matzner
... and while we're at it: Paul Annesley, another avid jQuery user, left an interesting Firefox extension link in an Ajaxian comment: http://www.sitepoint.com/dustmeselectors/ Nice one to find unused css selectors. And being a validation fetishist, I would like to recommend this http://www.tota

[jQuery] Testing IE6 and IE7 with Virtual PC

2007-08-21 Thread Bernd Matzner
Hi, two new VPC images for IE6 and IE7 on Win XP SP2 are now available: http://www.microsoft.com/downloads/details.aspx?FamilyID=21eabb90-958f-4b64-b5f1-73d0a413c8ef&DisplayLang=en With these images you can test web applications in each browser on a pre-activated XP SP2 virtual machine in your o

[jQuery] Re: Strange bug with slide function and input elements

2007-08-19 Thread Bernd Matzner
Hi Jeroen, the slideUp and slideDown animations are happening at the same time, because you're calling them one after another (and each takes a while to complete). One simple, yet not really elegant way of working around it is this: Exclude the paragraph in the clicked element from the list of pa

[jQuery] Re: Proper use of the hoverIntent plug-in?

2007-08-19 Thread Bernd Matzner
Hi Spencer, first of all let me ask you why you would want to use the hoverIntent plugin for this particular use case. After all, the Hours and Location buttons are clearly separated, so I don't see how a user could accidentally open one of the menus. At least you should lower the timeout, so tha

[jQuery] Re: stupid dev tricks: marking "current page" links

2007-08-16 Thread Bernd Matzner
> > As for the each() function - I've given it some more thought, but I can't come up with a more elegant solution (except perhaps for filter(), but I doubt that it improves anything performance-wise). That's because we have to check if the current link is in the current location, not the other w

[jQuery] Re: stupid dev tricks: marking "current page" links

2007-08-16 Thread Bernd Matzner
Hi Stephan, I did a quick test case with the following links: A | B | http://localhost/index.html";>C | D The Stephan/Karl solution will only highlight link B regardless of which link I click, whereas my solution highlights A-C when on the index.html page regardless of the GET vars attached, an

[jQuery] Re: stupid dev tricks: marking "current page" links

2007-08-16 Thread Bernd Matzner
Hi Stephan, Karl, how about plain and stupid checking if the current url is in the link? $('a').each(function(){ if( window.location.href.indexOf( $(this).attr('href') ) >= 0 && $(this).attr('href').length > 1 ) { $(this).css('background-color','#004040') .css('col

[jQuery] Re: jQuery Validation Fails in IE

2007-08-15 Thread Bernd Matzner
> I was able to work around it by removing the umlauts "ÄÖÜ" from the > Validate plugin regex. I'm suspecting this happens when the page is > UTF8-encoded, Yes, that was the reason. I found the issue was discussed in the comments section of Jörn's page http://bassistance.de/jquery-plugins/jquery

[jQuery] Re: How to test if plugin X is loaded ?

2007-08-15 Thread Bernd Matzner
You could also use a try/catch clause try { $('#id').tableSorter(); } catch(err) { // do something else or nothing } Bernd

[jQuery] Re: Updated Plugin: jQuery Timers. jQuery-oriented setTimeout/setInterval

2007-08-15 Thread Bernd Matzner
Hi, > Google take the *very* strong view of licence prolifiration and warned > me that if I didn't change back to one of the 8 licences that they > have listed my project would be thrown off their site. Interesting. Doesn't the MIT license, which jQuery itself is licensed under, provide a max

[jQuery] Re: new Plugin every: jQuery-oriented setTimeout and setInterval

2007-08-14 Thread Bernd Matzner
Hi Blair, great plugin idea - that will be really useful to have - what is it that the solutions that might be helpful to one specific project always come out at precisely the right time? ;-) I second Jonathan's naming suggestions. Also love the WTFPL... Bernd

[jQuery] Re: Making An Intergrated Plugin

2007-08-14 Thread Bernd Matzner
> Inside the plugin method "this" is already a jQuery object, thus you > And you usually shouldn't forget to maintain chainability by returning > the object: Thanks for reminding, I keep forgetting about these basic jQuery principles - after all, that's what jQuery is about... Grüße in die Sred

[jQuery] Re: Making An Intergrated Plugin

2007-08-13 Thread Bernd Matzner
Hi Eridius, yes, "this" refers to the object passed to the plugin, in your case $('#hover_menu').hover_menu(); which would be shorter than $('div[id=hover_menu]').hover_menu() (function($) { $.fn.hover_menu = function(){ $(this).children('ul').children('li').hide(); }; })( jQu

[jQuery] Re: jQuery Validation Fails in IE

2007-08-13 Thread Bernd Matzner
Hi, I have just had a similar problem - this actually happens only with IE6, IE7 is fine. I was able to work around it by removing the umlauts "ÄÖÜ" from the Validate plugin regex. I'm suspecting this happens when the page is UTF8-encoded, which is the case with your page and the page where I exp

[jQuery] Re: [Announce] jQuery Reference Guide available for pre-order

2007-08-10 Thread Bernd Matzner
> Is there to be a PDF version of this? Yeah, too bad there's not an ebook available (yet?). Hope it's as good the the Learning jQuery book ;-), which, btw, was just reviewed at http://blogs.pathf.com/agileajax/2007/08/book-review-lea.html and featured at http://ajaxian.com/archives/review-of-lea

[jQuery] Re: New Plugin: HoverAccordion

2007-08-05 Thread Bernd Matzner
Hi Dragan, > Of course, you can look at my example, witch more reasambly Apple.com menu. the menu I was referring to is on the top right-hand side of the Mac page, whereas yours is referring to the menu on the lower left-hand side. That particular accordion is a little different as the item that

[jQuery] Re: Resig's Accordion Lite

2007-08-04 Thread Bernd Matzner
On 5 Aug., 04:20, "Mitchell Waite" <[EMAIL PROTECTED]> wrote: > When I use your accordion in IE7 (Example #1) when you click on a head the > entire accordion opens up then snaps to the new menu. > In FF it just acts weird. So you might want to take another look at your > example. Hi Mitchell,

[jQuery] Re: Resig's Accordion Lite

2007-08-04 Thread Bernd Matzner
Hi John, thanks for pointing out that the step function will change. Obviously, there really is good use for it if, so it'll be great if it could make it into future builds of jQuery one way or another. Thanks for your hard and thoughtful work, Bernd

[jQuery] Re: Resig's Accordion Lite

2007-08-04 Thread Bernd Matzner
Hi John, Dragan, thanks for the great solutions to those annoying bumping effects. Great stuff. I updated my hoverAccordion plugin to make use of these. It's available at http://berndmatzner.de/jquery/hoveraccordion/ There's another thread dedicated to this plugin: http://groups.google.com/group

[jQuery] Re: New Plugin: HoverAccordion

2007-08-04 Thread Bernd Matzner
> You'll see on the apple site there is no bump at all. It just slides > without effecting any other areas of the menu. I think this is > because we are showing/hiding heights and the apple site is using > absolute/static/relative positioning to get the effects. Thoughts? Hi there, after John

[jQuery] Re: Announce: Masked Input Plugin 1.0

2007-07-26 Thread Bernd Matzner
Terrific, Josh! Thanks for your work on this baby. Took some time to figure out how the Eye script custom +/- placeholder is supposed to work, but I guess it's just a matter of adding a tooltip hint on valid input (fortunately, I don't need glasses, so I guess that's why I'm not familiar with that

[jQuery] jQuery 1.1.3 - CSS/XPath selector bug?

2007-07-03 Thread Bernd Matzner
Hi there, until 1.1.2, this worked: $('[EMAIL PROTECTED]"html"]') Now I'm not sure if $('//[EMAIL PROTECTED]"html"]') would be syntactically correct, but this problem applies to both. However, with 1.1.3 I'm getting an "z has no properties" error in jQuery's filter function. This works when

[jQuery] New Plugin: HoverAccordion

2007-06-26 Thread Bernd Matzner
Hello, I'm really excited: My first try at building a jQuery plugin! This is another accordion, but in this case, it's designed to open up by just moving your mouse over an item, just like on the http://www.apple.com/mac/ website. Can be used together with the excellent hoverIntent plugin to a