Home - Forums-.NET - FlyTreeView (ASP.NET) - How do I run a JavaScript on a Treeview based on server data

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

How do I run a JavaScript on a Treeview based on server data
Link Posted: 04-Apr-2007 20:01
On the server side, I have a session variable that contains a dataset.  If this dataset is NOT empty, I want to put up a dialog asking if they the user wants to continue, otherwise do nothing.   I know how to put up the dialog, but all my attempts at attaching them to the treeview has failed.  I can't seem to find the hook to put in the Javascript.  In addition, the dialog code I have expects to attach itself to a button.  It isn't clear that FlyTreeView node derives from a button.

Thanks in advance for your help.
Link Posted: 05-Apr-2007 02:35
The FlyTreeView node does NOT derive from button.

What kind of hook do you need?
Do you need to run some javascript when user clicks node?

Does your page post back when user clicks node?