OK, ty, I will try to explain a bit more, sorry.
I have a text editor made with javascript (BBcode able etc).
My js is held in editor.js and consists of functions that operate on
editor elements which are textarea, buttons, images, editboxes, divs...
So, to be able to use js for that I'm using unique names (ids) for me
editor elements and/or divs; like "editarea" for textarea, "boldButt"
for bold button control, etc.
In PHP, which I used to use, there would be no problem as I would
simply include my .js up in the head and my editor control (actually a
heap of controls editor is made of) and all would work fine.
In ASP.NET however, I'm facinga problem that being ASP.NET plays
a wiseguy ^^ and renames my clientids to something of a nested naming
style to ensure unique names.
Well, as I can't know how deep into a page my editor will be nested (as
control should be usable everyhwere), I can't setup my js script with
correct client ids so my scripts don't work as usually instead of just
"boldButt" my button is, in final html, named
"$ctrl00$kfdjdvk3gbjdsg$hdgoudboldButt"...
I've seen javascript can be built line by line in codebehind, but for a
500-1000 lines js script, that can become a little bit tedious and
messy least to say...
So, I need a way to make my scripts work... :-)