[jQuery] select after AJAX

2009-02-08 Thread Piotr
I am trying to make chained select. I have three selects: type, category, product. I created ajax response conected to change of type or category. When I change type select (list types is static, taking from base by php), ajax give mi the list of category. It works. But after this, when I want to

[jQuery] Disabling behaviour definded in html

2008-12-28 Thread Piotr Jakubowski
Hi, I do not have a huge experience with jquery and therefore my question may seem a little bit childlish for you :). Nevertheless I have spend so much time trying to find the solution that you are my last hope. The problem is that I have the html element - let's say textfied with specified onke

[jQuery] element.css("background") returns undefined

2007-09-21 Thread Piotr Sarnacki
Hi, I'm playing around with css manipulation and I encountered strange problem. jQuery("#someElement").css("background") (or background- position) returns undefined, no matter if background-position is set or not :] background-image, background-color work fine :) Peter

[jQuery] Re: 1.1 → 1.2. Interface's problems with j Query.dequeue

2007-09-16 Thread Piotr Petrus
ed today, right? :) -- Piotr Petrus http://riddle.pl

[jQuery] Re: NEWS: jQuery 1.2 Released

2007-09-11 Thread Piotr Petrus
Can somebody throw me a link to jQuery Minified desc? :> -- Piotr Petrus http://riddle.pl

[jQuery] Re: Firing function on any form element changing?

2007-09-10 Thread Piotr Petrus
You can use $(myform).find('input, textarea, select') but var $('input, textarea, select', myform) is also correct. I'd seek an answer in myform element. If it's undefined it means it doesn't exist, so there's an error in your code or in algorithm. -- Piotr Petrus http://riddle.pl

[jQuery] Re: Expanding tree + styling

2007-09-10 Thread Piotr Petrus
Blah, I meant $('li.parent').prepend(……) -- Piotr Petrus http://riddle.pl

[jQuery] Re: Expanding tree + styling

2007-09-10 Thread Piotr Petrus
jQuery is recursive by default. $('ul.parent > li').prepend(yourElement); -- Piotr Petrus http://riddle.pl

[jQuery] Re: Problem: Event on image load in IE

2007-09-10 Thread Piotr Petrus
Have you tried .bind('load', function() {})? Load() is also responsible for ajax calls, maybe IE gets it wrong in this case -- Piotr Petrus http://riddle.pl

[jQuery] Re: selected html include the selector tag?

2007-09-09 Thread Piotr Petrus
Eridius, use .outerHTML and its workaround for Gecko, from what you've written it's clear that you need this. ;) -- Piotr Petrus http://riddle.pl

[jQuery] Re: XML > HTML

2007-09-09 Thread Piotr Petrus
Set dataType to html in .ajax() call. If you really need to use .get(), use ajaxSetup(). This will make use of data.responseText instead of data.responseXML in jQuery internally. -- Piotr Petrus http://riddle.pl

[jQuery] Re: Expanding tree + styling

2007-09-09 Thread Piotr Petrus
1) cannot be a link. 2) Add class="parent" and insert dynamically small element with graphic (for example, plus) and attach event listener expanding list to that element. -- Piotr Petrus http://riddle.pl

[jQuery] Re: $.css() values from jQuery created objects return undefined in Opera

2007-09-09 Thread Piotr Petrus
Address of website please? ;) -- Piotr Petrus http://riddle.pl

[jQuery] Re: [REMINDER] jQuery Detection Script

2007-09-09 Thread Piotr Petrus
Is it possible to exclude pages where window.parent is defined? Take a look how script behaves on GMail, I think it's too bloated way to do checks. -- Piotr Petrus http://riddle.pl

[jQuery] Re: Find textNodes and wrapping it with a tag

2007-09-08 Thread Piotr Petrus
jQuery originally works on element nodes, but text nodes are rightful members of DOM too. :) Glad I could help. -- Piotr Petrus http://riddle.pl

[jQuery] Re: Find textNodes and wrapping it with a tag

2007-09-08 Thread Piotr Petrus
Wow, now that's big. I'd try just this: $('ul > li').each(function() { if (this.firstChild && this.firstChild.nodeType == 3) { $(this.firstChild).wrap('') } }) -- Piotr Petrus http://riddle.pl

[jQuery] Re: selected html include the selector tag?

2007-09-08 Thread Piotr Petrus
$element.html is a shorthand for element.innerHTML and you're looking for element.outerHTML which is unfortunately doesn't supported by Gecko. Try googling it, it will perfectly suit your needs (actual element's HTML + inner elements' HTML). -- Piotr Petrus http://riddle.pl

[jQuery] Re: Quite big performance issue

2007-09-08 Thread Piotr Petrus
was tired of calculating this stuff by myself and taking notes on paper. ;) You should read about em values if you don't know why they're important :) I guess I'll have to rewrite this tool to plain DOM methods again. Or at least this frickin' node addition. :) -- Piotr Petrus http://riddle.pl

[jQuery] Re: Quite big performance issue

2007-09-08 Thread Piotr Petrus
r. I just don't get it how the change can be exponential because I'm using quite simple code. I'll try stripping down everything except my main problem and show it to you later if the issue is still there. Thanks for your time though, appreciate it. -- Piotr Petrus http://riddle.pl

[jQuery] Re: Quite big performance issue

2007-09-07 Thread Piotr Petrus
wrapped in closure because it's not a plugin and it won't be used anywhere else. :) -- Piotr Petrus http://riddle.pl

[jQuery] Re: code not working in IE... don't know why

2007-09-07 Thread Piotr Petrus
Have you tried replacing window.onload = function() {} with $(window).bind('load', function() {}) ? -- Piotr Petrus http://riddle.pl