Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rotate multiple information on a line

Thomas Poffet
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get different information changing every 10 seconds on a line.
The information should be provided by a backing bean, but this is the next step.
Currently I am stuck with the first step, trying to assign text to outputText using javascript.

Following is my approach:
starting with:
<BODY onload="init()"
Having outputText:
><h:form id="Broadcast" >
<hutputText id="broadcastMessage" value="Text" />
Having some javascript:
var broadcast = document.getElementById('Broadcast:broadcastMessage');
function init() {

The result when doing this: The value of utputText is never changing from "Text" to "New" ... am I taking the wrong apporach

To be mentioned:
...using Firefox 5.0 does not make much sense just changing from 'Text' to 'New', a will add some functionality where different information is being rotated

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic