Moving control programmatically break script

Jan 20, 2009 at 9:59 PM

I have multiples nested usercontrol where I move child control to have them at another position. The move is done at Load before the ScriptManager register the child scripts for everything to work correctly. This methods suits me well and no controls ever broke in my child element. I used ajax calendar, watermark, componentart calendar, and componentart editor. For a yet unknow reason the RTE is the only control that break when including it my child element.

Scripts crash when trying to acess object exactly at line 82 in RTEStarup.js : RteJustifyLeft.AddRelatedButton(RteJustifyRight);
RteJustifyLeft is undefined.

Any hints on this would be appreciate.

Feb 26, 2009 at 12:58 PM
There is a lot of javascript in the RTE so dynamically moving the RTE is somehow causing the javascript to no longer find the RTE control on the page. That will be a tough one to troubleshoot.
Feb 26, 2009 at 3:42 PM
No matter, I succeeded to fix TinyMCE and to move it dynamically. It was a tough one, but it was possible which it seems not with RTE. TinyMCE was working after the move but it has a big problem with Microsoft AJAX. Thanks to read comments anyway.