I've just tried to implement the excellent UI Accordion plug-in (see
http://www.favouritethings.com/dev/Accordion.htm)
I am, however, struggling with 2 issues:
1. When you first open the accordion, it expands much more than needed
and then contracts.
2. The manner in which it expands seems very
Thanks.
On Nov 19, 2:03 pm, James Dempster <[EMAIL PROTECTED]> wrote:
> oops... or alternatively use break points and step though your coding
> using the debugger in firebug
>
> On Nov 19, 5:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > On one page, Firefox throws the "a script is t
Ok... here we go... I got it to work with this...
$("table tbody")
.mouseover(function(e)
{
$(e.target).parents('tr').addClass('over');
})
.mouseout(function(e)
{
$(e.target).parents('tr').removeClass('over');
Ok the code does not throw any errors, but it doesn't do what its
supposed to do.
Aren't we suppose to check what the parent of the target is? Because,
in effect, it is a table cell which is being hovered over and not the
row.
Any ideas?
;tr") $(e.target).removeClass("over");
});
Is that okay?
On Nov 9, 7:56 am, fambizzari <[EMAIL PROTECTED]> wrote:
> Thanks Renato, i didn't realise you were talking about that.
>
> On Nov 8, 8:58 pm, Renato Formato <[EMAIL PROTECTED]> wrote:
>
> > fam
t).is("tr") $(e.target).removeClass("over");
});
Firebug tells me:
syntax error
[Break on this error] if(e.target).is("tr") $
(e.target).addClass("over");\n
$ is not defined
[Break on this error] $(document).ready(function()
On Nov 8, 8:58 pm,
Thanks Renato, i didn't realise you were talking about that.
On Nov 8, 8:58 pm, Renato Formato <[EMAIL PROTECTED]> wrote:
> fambizzari ha scritto:> @Renato - Thanks for the example. But i didn't see it
> and i still
> > can't see it.
>
> Try
>
@Renato - Thanks for the example. But i didn't see it and i still
can't see it.
@Suni - I've never used bind (except in a copy/paster job). Can you
point me to a tutorial which explains it.
Thanks
George, I have no idea what you are talking about!
Can you explain by means of code?
Flesler, that's what we ended up doing...
$("head style").append(".siteWidth{width: " + modifiedW +"}");
But it still took the same amount of time for the page to update.
I wonder why?
This should replace all links with their link text:
$("a.noclick").each(function(){ $(this).replaceWith($(this).text());});
In the end, we've gone for pagination on the most commonly used
application and a warning on the least used application recommending
users to keep their lists short.
best way to go.
>
> JK
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of fambizzari
> Sent: Tuesday, November 06, 2007 2:29 AM
> To: jQuery (English)
> Subject: [jQuery] Re: PROBLEM: Adding hover to table rows on large
The solution i adopted was CSS (tr:hover) for non-IE6 and only allow
small tables to have hover-over using a class name to identify them.
Any better solutions?
On Nov 6, 10:45 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> The following code works fine on small tables:
>
> $("table tbo
Does anyone know of a JS solution (preferably in jquery) for
http://www.cssplay.co.uk/menus/doors_drop_line.html?
Thanks
Hi all,
Is there anyway to get round the need to include the carousel content
in an unordered list.
We'd like to use the carousel to offer customer testimonials, but you
can't include a blockquote in a list item.
Thanks
Thanks for your help guys.
Does anyone know of a vertical version of Klaus Hartl's tabs, similar
in theory to, the micorosft home page (http://www.microsoft.com/en/us/
default.aspx)
Thanks.
On Jul 31, 1:42 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> fambizzari wrote:
> > Right...
>
> > In this case, how about adding the following
>
> > /*Replicate php in_array
> > --
do
{
if (haystack[i] === needle) return true;
}
while (i--);
}
return false;
}
On Jul 31, 11:07 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> fambizzari wrote:
> > PHP developers will all know about the array
PHP developers will all know about the array_unique() function which
removes duplicate values from an array.
Up until today, we've been using the following function to replicate
this function in Javascript
function array_unique(arr)
{
var newArray = [];
var existingItems = {};
Then, another question i would have is, how do you find the y-position
of an element within the div to know how to scroll down to it.
I also need to know that.
What would be even better is to know how to scroll how to a specific
position within the div noted by, say, an id.
On Jul 25, 6:18 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I have a div that its overflow attribute is set scroll (or auto),
> basically, I need
Hi all,
Does anybody know if the js used in the ALA article Improving Link
Display for Print (http://alistapart.com/articles/improvingprint) was
re-written for jQuery?
I think that jQuery would do a much better job than that which has
been presented.
Thanks
We're trying to get set up with the Validate plug-in. This is the
scenario:
JQUERY
===
$(document).ready(function()
{
$("#myForm").validate();
});
HTML
===
...
But, when the submit button is pressed the following error is through
in the FF javascript co
ut should get it by itself I would think. Are you certain
> it's not picking up the file field? Use firebug and console.log($
> ('input'));
>
> The fastest solution may be to add a class to all of the elements you
> want to select and use that instead. ('
hing works fine if its gone.
Any more ideas?
On May 25, 7:14 pm, Daemach <[EMAIL PROTECTED]> wrote:
> Try $("fieldset").find(":input") to grab all form fields. (http://
> docs.jquery.com/DOM/Traversing/Selectors)
>
> If that doesn't work, [EMAIL PROTECTE
Unfortunately, whilst your suggestions work excellently, the following
piece of code:
$("fieldset").find("input,select,textarea,option")
does not work with
Any idea what i should do to fix it?
On May 25, 3:50 pm, fambizzari <[EMAIL PROTECTED]> wrote:
> Thanks
blur
> > (function()
> > {
> > $(this).parents('li').removeClass('on');
> >
Hi everyone,
Imagine the following HTML scenario:
Title
Message
I started using jquery a month or two ago and i've spent the time
since then working on non js content. I've now come to do something
really basic and i'm really struggling how to do it with jquery. I
guess that is the problem with "changing the way that you write
JavaScript".
Anyhow, i won't be
Thanks - funnily enough i downloaded firebug earlier on today.
Also, what's Sean talking about when he says:
"lets say the focus function gets called twice (through
malicious javascript or a quirky browser) then the toggle state of the
class will be off. But in general I prefer your implementati
I am just beginning my journey with jQuery and would like to know how
the following could be summarised:
$(document).ready
(
function()
{
$("fieldset input, fieldset select, fieldset textarea").focus
(
function()
I am (relatively) new to JavaScript and brand new to JS libraries.
Prior to jQuery, I was using Yahoo's library, but was well-impressed
with jQuery and made the move.
I have a series of custom written js functions which fire-up when the
DOM is ready and i am happily using jQuey's $
(document).rea
34 matches
Mail list logo