Re: [jQuery] can't get accordion to work

2007-01-18 Thread Daniel McBrearty
OK, I found the problem, I think.

It seems that the accordion feature does not work if the div is
enclosed in another div.

Is this limitation unavoidable? Or is this a bug? At least it should
be documented, I think.

(I also posted a comment at the authors site about this)

thanks

On 1/18/07, Daniel McBrearty <[EMAIL PROTECTED]> wrote:
> duh ... there was a dumb  left in there. However, that wasn't the
> problem - the source validates, but no accordion. anyone have any
> ideas what I might check?
>
> -- Forwarded message --
> From: Daniel McBrearty <[EMAIL PROTECTED]>
> Date: Jan 17, 2007 11:52 PM
> Subject: Re: can't get accordion to work
> To: "jQuery Discussion." 
>
>
> additionally, I threw some alert boxes into the accordion source, to
> see if the code is actually getting there (haven't quite got the hang
> of firebug yet ... )
>
> // create private scope with $ alias for jQuery
> (function($) {
>
> alert("here"); // this fires
>
> // save reference to plugin method
> var plugin = $.fn.Accordion = function(settings) {
>   alert("or here"); // so does this ...
>
> yet still no accordian ...
>
>
> On 1/17/07, Daniel McBrearty <[EMAIL PROTECTED]> wrote:
> > hi,
> >
> > I am trying to get this to fire, but no joy ...
> >
> > My code is very similar to the example code:
> >
> > 
> >   sitetext
> >  to do
> >  done
> >
> >   
> >   phrases
> > 
> >
> > .
> > .
> > .
> >
> > $(function() { $(".tx_acc").Accordion(); });
> >
> >
> > but nothing happens. Just a plain set of h3's/paras.
> >
> > If I change to
> >
> > $(function() { $(".tx_acc").hide(); });
> >
> > this works, so I know we are selecting.
> >
> > The Accordion library is definitely there, I include it after jquery
> > itself, before the code where I initialise. I can get it and see it
> > with the browser.
> >
> > what else can I check? using Firefox 1.5 under Ubuntu.
> >
> >
> > --
> > Daniel McBrearty
> > email : danielmcbrearty at gmail.com
> > www.engoi.com : the multi - language vocab trainer
> > BTW : 0873928131
> >
>
>
> --
> Daniel McBrearty
> email : danielmcbrearty at gmail.com
> www.engoi.com : the multi - language vocab trainer
> BTW : 0873928131
>
>
> --
> Daniel McBrearty
> email : danielmcbrearty at gmail.com
> www.engoi.com : the multi - language vocab trainer
> BTW : 0873928131
>


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] can't get accordion to work

2007-01-17 Thread Daniel McBrearty
additionally, I threw some alert boxes into the accordion source, to
see if the code is actually getting there (haven't quite got the hang
of firebug yet ... )

// create private scope with $ alias for jQuery
(function($) {

alert("here"); // this fires

// save reference to plugin method
var plugin = $.fn.Accordion = function(settings) {
  alert("or here"); // so does this ...

yet still no accordian ...


On 1/17/07, Daniel McBrearty <[EMAIL PROTECTED]> wrote:
> hi,
>
> I am trying to get this to fire, but no joy ...
>
> My code is very similar to the example code:
>
> 
>   sitetext
>  to do
>  done
>
>   
>   phrases
> 
>
> .
> .
> .
>
> $(function() { $(".tx_acc").Accordion(); });
>
>
> but nothing happens. Just a plain set of h3's/paras.
>
> If I change to
>
> $(function() { $(".tx_acc").hide(); });
>
> this works, so I know we are selecting.
>
> The Accordion library is definitely there, I include it after jquery
> itself, before the code where I initialise. I can get it and see it
> with the browser.
>
> what else can I check? using Firefox 1.5 under Ubuntu.
>
>
> --
> Daniel McBrearty
> email : danielmcbrearty at gmail.com
> www.engoi.com : the multi - language vocab trainer
> BTW : 0873928131
>


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] can't get accordion to work

2007-01-17 Thread Daniel McBrearty
hi,

I am trying to get this to fire, but no joy ...

My code is very similar to the example code:


  sitetext
 to do
 done

  
  phrases


.
.
.

$(function() { $(".tx_acc").Accordion(); });


but nothing happens. Just a plain set of h3's/paras.

If I change to

$(function() { $(".tx_acc").hide(); });

this works, so I know we are selecting.

The Accordion library is definitely there, I include it after jquery
itself, before the code where I initialise. I can get it and see it
with the browser.

what else can I check? using Firefox 1.5 under Ubuntu.


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/