Moving control programmatically break script

Jan 20, 2009 at 8: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 11:58 AM
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 2: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.