Hello,
My fly tree is giving me some trouble when it is used for the first time after loading. I receive an error message as shown above with extra info about potential problems being \"Response.Write, Response filters, Http Modules and Server Trace\". I don't explicitly use any of these but obviously components in use may do.
Error info specific to the page is as follows:
\"Error parsing near 'tePanel1|...\" which makes it look as though the asp code has become knackered. Anyway, this is what the code is doing:
Fly tree outside any panels, within a popup control and panel. It has checkboxes and the setup in the asp is:
IsCheckbox=\"True\" OnNodeEventJavascript=\"nodeEventHandler\" CanBeSelected=\"false\">
The tree is intended to update several tabs with charts and grids and to this end updatepanels containing these controls are used.
Node event handler in asp (javascript):
function nodeEventHandler(treeview, node, eventType, value, parentNode)
{
//stuff
...
pageload(checkedNodesArray);
}
function pageload(checkedNodesArray)
{
// formulate amessage
UpdPanelUpdate(message);
return message
}
This is where the problem comes from:
function UpdPanelUpdate(id)
{
var obj = document.getElementById(\"\");
obj.value=id;
__doPostBack(\"\",\"\");
}
This causes a page load with a populated textbox, this value is then used to choose some sql and then the controls on the update panel are updated.
NOTE:
This problem only occurs the first time round, subsequent selections on the treeview are fine.