0

I have a tree am working it dynamically on server side.
i want on click an image like loading to appear. anyone knows how to workout this with div and span???

any little example?

3
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by network18
0

Maybe you could give us a little example of your code so we can better understand what you'd like to achieve.

I think that I follow your description right until after the image that you want to appear onClick. My guess is that you want an image to appear when you click on a "branch" of your tree menu!?

0

If u want sample code am trying

var cwin = window.open('loading.gif','Loading', 'width=10,height=10,');
cwin.focus();
var idDescr = getRequest("realclass.jsp?action=load&value="+f1+"&nodeIndex="+value+"&value1="+z+"&treeid="+treeid+"&level="+level);
if(value == -1 || value == 0)
{
document.getElementById("menutitlee").innerHTML = idDescr;
}
else
{
document.getElementById(p).innerHTML = idDescr;
}//document.getElementById("yes").onclick();
cwin.close();


menutitlee or p are div. so when on node click, by get request am going to the server side to get new nodes. dont concern urself with that.
so before opening i am opening new window with loading image, after nodes are opened i close the window.


i dont want to do it window. i want to do it span inside div, with loading image to be shown.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.