Hi there!
Does anyone knows why I can't get the value from the labels to the javascript variables?
It gives me an error, "Object necessary" and at the javascript output variable "undefined".
The code:
<asp:Label ID="noticias00" runat="server" Text="00" Visible="true"></asp:Label>
<asp:Label ID="noticias01" runat="server" Text="01" Visible="true"></asp:Label>
<asp:Label ID="noticias02" runat="server" Text="02" Visible="true"></asp:Label>
<asp:Label ID="noticias03" runat="server" Text="03" Visible="true"></asp:Label>
<script type="text/javascript">
var tickercontents=new Array();
tickercontents[0]=document.getElementById('noticias00').value;
tickercontents[1]=document.getElementById('noticias01').value;
tickercontents[2]=document.getElementById('noticias02').value;
tickercontents[3]=document.getElementById('noticias03').value;
</script>
Thanks people!