Javascript in 'Message Custom Field'

[]D []-[] [] []_ April 17, 2013

Hi there,

I'm trying to render an HTML-Tag with Javascript via 'Message Custom Field':

<script type="text/javascript">
infobox = document.createElement('div');
infobox.setAttribute('class','infoBox');
infobox.setAttribute('id','infofield');
infobox.style.margin = '0px 16px 16px';
node = document.createElement('span');
node.innerHTML = 'TEXT';
infobox.appendChild (node);
document.getElementById('stalker').appendChild(infobox);
</script>

The Infobox is displayed on the View-Issue-Screen as its supposed but the Problem occurs when a transition is triggered: The spinnging Loading-Icon appears and .... nothing happens, it spinns forever.

1 answer

0 votes
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2013

it means it is throwing some error, you can check this by using firebug on mozila or javascript console in crome

Suggest an answer

Log in or Sign up to answer