document.getElementById not working at FBJS
Posted
by Willy
on Stack Overflow
See other posts from Stack Overflow
or by Willy
Published on 2010-04-10T13:56:29Z
Indexed on
2010/04/10
19:43 UTC
Read the original article
Hit count: 480
I'm developing apps at Facebook using FBML and FBJS. When I tried to use document.getElementById to read tag, it did not reply the correct value. Can we really use this command on FBML to get data?
Here is detail of my code :
<input type="hidden" value="123" id="number"/>
<a href="#" onclick="new Dialog().showMessage('Dialog', document.getElementById('number').value);return false"/>
© Stack Overflow or respective owner