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
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
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
ed today, right? :)
--
Piotr Petrus http://riddle.pl
Can somebody throw me a link to jQuery Minified desc? :>
--
Piotr Petrus http://riddle.pl
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
Blah, I meant $('li.parent').prepend(……)
--
Piotr Petrus http://riddle.pl
jQuery is recursive by default. $('ul.parent > li').prepend(yourElement);
--
Piotr Petrus http://riddle.pl
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
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
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
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
Address of website please? ;)
--
Piotr Petrus http://riddle.pl
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 originally works on element nodes, but text nodes are rightful
members of DOM too. :)
Glad I could help.
--
Piotr Petrus http://riddle.pl
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
$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
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
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
wrapped in closure because it's not a
plugin and it won't be used anywhere else. :)
--
Piotr Petrus http://riddle.pl
Have you tried replacing
window.onload = function() {}
with
$(window).bind('load', function() {})
?
--
Piotr Petrus http://riddle.pl
21 matches
Mail list logo