Gerry
I have been suffering this problem too - specifically using Mac OS X
and Firefox... it works fine on Safari. What OS are you working on?
If its Mac, does the sliding menu work in Safari?
I have the problem here: http://www.g-raff.co.uk/jquery/comchap.html,
though chances are if you
JQ Beginners... (like me)
With lots of superior help from the wizards in this discussion board,
I have managed to code a simple "dropdown section" script using
jQuery that might serve as a starter if you are just getting your
teeth into jQuery. Its useful for Ajax FAQs and stuff. By no mean
n').slideToggle(1200,function() {
complete(index);
});
return false;
});
Cheers
On 1/20/07, Steve Jones < [EMAIL PROTECTED]> wrote:
$("a.open_button").each(function(index) {
$(this).click(function() {
$('div.section:eq(&
actual "OO programming" classes.
Karl Rudd
On 1/21/07, Steve Jones <[EMAIL PROTECTED]> wrote:
A question about toggleClass... everything below works, so its not a
problem as such...
http://www.g-raff.co.uk/jquery/basic.html
I added a statement to the code to change the appe
A question about toggleClass... everything below works, so its not a
problem as such...
http://www.g-raff.co.uk/jquery/basic.html
I added a statement to the code to change the appearance of headings
that had been clicked, and back again when they were clicked a second
time.
function ini
wrote:
I think this should work. Not tested tho.
$("a.open_button").click(function() {
$(this).next('div.section').slideToggle(1200,function() {
complete(index);
});
return false;
});
Cheers
On 1/20/07, Steve Jones < [EMAIL PROTECTED]> wr
Faircloth wrote:
Looks good here… IE 7…
Rick
From: [EMAIL PROTECTED] [mailto:discuss-
[EMAIL PROTECTED] On Behalf Of Steve Jones
Sent: Saturday, January 20, 2007 12:34 PM
To: jQuery Discussion.
Subject: [jQuery] Sliding glitch
Hi All,
I have searched and searched for an answer to
on heading, there is a momentary flash of the
content. Then the animation takes hold and it all seems to be OK.
Cheers
SJ
On 20 Jan 2007, at 19:08, Olaf Bosch wrote:
Steve Jones schrieb:
Any ideas? Should I be setting CSS attributes for the document to
counteract the
problem?
You h
0 Jan 2007, at 18:13, Franck Marcia wrote:2007/1/20, Steve Jones <[EMAIL PROTECTED]>: I'm suffering a strange glitch with a slideToggle method. What seems to happen is that a linebreak is added to the beginning of text content in the target element just as the animation starts either openi
Hi Chris,
Not quite - In your example, THIS would work:
$("a.open_button").each(function(jQueryRocks) {
$(this).click(function() {
$('div.section:eq(' + jQueryRocks +
')').slideToggle(1200,function() {
complete(jQueryRocks);
});
return false;
});
});
So, ea
Sorry - forgot to post the URLhttp://www.g-raff.co.uk/jquery/basic.htmlThanksSJ ___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Hi All,I have searched and searched for an answer to this, but am at a loss - wondered if anyone could possibly have a look at the following. Having got into jQuery yesterday, I thought I'd jump straight in and think about using it for the holding page of a charity I'm doing a site for.I'm sufferin
Hi Chris,
Short answer is that "index" is just an argument generated by the
"each()" function to mark objects that match the criteria we set...
it starts at 0 and increments according to what it finds. "index"
could be changed to anything we like, as it is only for the purpose
of passing
.addClass('open').slideToggle
(1200,function() {
complete(index);
});
return false;
});
});
The power of course lies in the statement $('div.section:eq(' + index
+ ')') - now all I need to do is have - no numeric identifiers, as jQuery is
doing
se; }); }); Cheers,--Karl_Karl Swedbergwww.englishrules.comwww.learningjquery.com On Jan 19, 2007, at 5:02 PM, Steve Jones wrote:Hi Karl,Yes - thanks for that - I am new to jQuery, and wasn't aware that I needed to refer to the object itself as "$(this)" rather than just "this"Now I know! Thank you
cond class from the , but it's easier than the gyrations you've gone through! On 1/19/07, Steve Jones <[EMAIL PROTECTED]> wrote: Sorry guys, I didn't realise the full power of "each" in its incarnation as $.each.I have therefore achieved my result as follows:$.each( $(&
hrules.comwww.learningjquery.com On Jan 19, 2007, at 3:48 PM, Steve Jones wrote:Sorry guys, I didn't realise the full power of "each" in its incarnation as $.each.I have therefore achieved my result as follows:$.each( $("a.open_btn"), function(i, btn) { $(btn).click( function()
section" + i).slideToggle(1200, complete); return false; }); });A handy snippet of code for doing expandable sections.ThanksSteve JBegin forwarded message:From: Steve Jones <[EMAIL PROTECTED]>Date: 19 January 2007 20:12:01 GMTTo: discuss@jquery.comSubject: Use of "each" to dynamical
18 matches
Mail list logo