Does dojo.byId from within a library.js work?

i have a library.js as a resource in my xpage.I have functions that need to get html controls as input text, listbox, etc…

Into de Libreary.js i tryed :

document.getElementById(“#{id:eee}”)

and

dojo.byId(“#{id:eee}”)

didn’t work!

i get a null value!

Help please

Thanks

Diego

Subject: Server Side or Client Side

Server Side or Client side script library? It definitely won’t work for server side script libraries. I think there is a way to make it work on client side. Do a search of Matt Whites blog, i think I saw something there that might help.

Subject: resolved

Thanks Declan

Really, the problem was that, i has:

dojo.byId(“#{id:XXX}”)

into a client javascript library resource.

Finally, i understood that ("#{id:XXX} don’t get transformed to real IDs on de server, because, server does’t do it for client librearies.

Sorry :slight_smile: