[jQuery] Accordion Problems

2008-05-21 Thread fambizzari
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

[jQuery] Re: HELP: Debugging Issue

2007-11-19 Thread fambizzari
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

[jQuery] Re: PROBLEM: Adding hover to table rows on large tables

2007-11-08 Thread fambizzari
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');

[jQuery] Re: PROBLEM: Adding hover to table rows on large tables

2007-11-08 Thread fambizzari
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?

[jQuery] Re: PROBLEM: Adding hover to table rows on large tables

2007-11-08 Thread fambizzari
;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

[jQuery] Re: PROBLEM: Adding hover to table rows on large tables

2007-11-08 Thread fambizzari
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,

[jQuery] Re: PROBLEM: Adding hover to table rows on large tables

2007-11-08 Thread fambizzari
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 >

[jQuery] Re: PROBLEM: Adding hover to table rows on large tables

2007-11-08 Thread fambizzari
@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

[jQuery] Re: PROBLEM: Adding hover to table rows on large tables

2007-11-07 Thread fambizzari
George, I have no idea what you are talking about! Can you explain by means of code?

[jQuery] Re: Major Problem With Dom Traversal

2007-11-07 Thread fambizzari
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?

[jQuery] Re: how to make links unclickable

2007-11-07 Thread fambizzari
This should replace all links with their link text: $("a.noclick").each(function(){ $(this).replaceWith($(this).text());});

[jQuery] Re: PROBLEM: Adding hover to table rows on large tables

2007-11-06 Thread fambizzari
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.

[jQuery] Re: PROBLEM: Adding hover to table rows on large tables

2007-11-06 Thread fambizzari
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

[jQuery] Re: PROBLEM: Adding hover to table rows on large tables

2007-11-06 Thread fambizzari
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

[jQuery] JS/jQury Drop line

2007-10-24 Thread fambizzari
Does anyone know of a JS solution (preferably in jquery) for http://www.cssplay.co.uk/menus/doors_drop_line.html? Thanks

[jQuery] jCarousel: Anyway to get round the need for unordered lists?

2007-10-03 Thread fambizzari
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

[jQuery] Re: Vertical Tabs

2007-09-08 Thread fambizzari
Thanks for your help guys.

[jQuery] Vertical Tabs

2007-09-08 Thread fambizzari
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)

[jQuery] Re: The JS/jquery version of PHP's array_unique

2007-07-31 Thread fambizzari
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 > > --

[jQuery] Re: The JS/jquery version of PHP's array_unique

2007-07-31 Thread fambizzari
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

[jQuery] The JS/jquery version of PHP's array_unique

2007-07-31 Thread fambizzari
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 = {};

[jQuery] Re: Is it possible so scroll all the way to the end a div overflow: scroll; ?

2007-07-25 Thread fambizzari
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.

[jQuery] Re: Is it possible so scroll all the way to the end a div overflow: scroll; ?

2007-07-24 Thread fambizzari
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

[jQuery] Improving Link Display for Print

2007-06-27 Thread fambizzari
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

[jQuery] Trouble with validate plug-in

2007-05-25 Thread fambizzari
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

[jQuery] Re: Finding a parent list item.

2007-05-25 Thread fambizzari
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. ('

[jQuery] Re: Finding a parent list item.

2007-05-25 Thread fambizzari
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

[jQuery] Re: Finding a parent list item.

2007-05-25 Thread fambizzari
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

[jQuery] Re: Finding a parent list item.

2007-05-25 Thread fambizzari
blur > > (function() > > { > > $(this).parents('li').removeClass('on'); > >

[jQuery] Finding a parent list item.

2007-05-24 Thread fambizzari
Hi everyone, Imagine the following HTML scenario: Title Message

[jQuery] The problem with jquery!!!

2007-05-12 Thread fambizzari
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

[jQuery] Re: Reducing this code.

2007-04-17 Thread fambizzari
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

[jQuery] Reducing this code.

2007-04-16 Thread fambizzari
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()

[jQuery] New to jQuery and struggling

2007-04-16 Thread fambizzari
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