I'm making some progress.

I modified my css to define placeholder as an id as follows.

#placeholder{
  background-image: url(images/loading.gif);
  background-repeat: no-repeat;
  /*text-indent:-1000px;*/
  font-weight:bold;
}

Now when I expand a node the text saying placeholder that flashes is
in bold. I still don't see the image though.
If I add the following html to my page
<span id="placeholder">placeholder</span>
I see the text placeholder in bold and I see the gif image.

As a test I modified the load function in jquery.treeview.async.js and
replaced text:"placeholder" with text:'<img src="images/loading.gif">'
and that shows the gif image when a tree node is expanding.

I wonder if I have an old version of treeview. The version in jquery-
treeview.async.js says 0.1

On May 29, 10:20 am, Jörn Zaefferer <joern.zaeffe...@googlemail.com>
wrote:
> Add display:block?
>
> Jörn
>
> On Fri, May 29, 2009 at 4:26 PM, Ursidae <gmalc...@gmail.com> wrote:
>
> > I must be missing something.
> > I created the following css
> > .placeholder{
> >  background-image: url(images/loading.gif);
> >  background-repeat: no-repeat;
> >  text-indent:-1000px;
> > }
>
> > but that doesn't have any effect on the placeholder element that
> > flashes when the treeview node is expanding.
> > If I assign that class to a different element on the same page, I do
> > see the expected gif though.
>
> > Not sure what I need to do next.
>
> > On May 29, 2:08 am, Jörn Zaefferer <joern.zaeffe...@googlemail.com>
> > wrote:
> >> The placeholder-element has a class of "placeholder", you set a CSS
> >> background image for that. And use text-indent: -1000px to hide the
> >> text.
>
> >> Jörn
>
> >> On Thu, May 28, 2009 at 10:21 PM, Ursidae <gmalc...@gmail.com> wrote:
>
> >> > I am currently loading the TreeView asynchronously and I'm trying to
> >> > set it up so an animated gif displays while a node is being expanded
> >> > and its child nodes are being created. Currently it just says
> >> > placeholder until the child nodes are done loading.
> >> > Can anyone offer some suggestions as to how I can set that?
> >> > Thanks in advance.

Reply via email to