If I use a hidden iframe to do the same, it works.
I didn´t put the script tag in the <head>. I don´t understand why I
should do it... I´m using Tiles and my header is reused in several
pages, and this script is only valid for few ones.
Thanks.
Dave Newton escribió:
--- Pablo Vázquez Blázquez <[EMAIL PROTECTED]> wrote:
<script type="text/javascript">
function init() {
alert(document.getElementById('name[0]'));
}
dojo.addOnLoad(init);
</script>
It is the same as:
<script type="text/javascript">
alert(document.getElementById('name[0]'));
</script>
It is executed before the page loads.
Are you saying there's still a problem? AFAICT there are no issues with
dojo.addOnLoad. When you look at the DOM w/ Firebug does the ID match what
you expect? Is it legal to give an element an ID with brackets in it?
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]