facebook - FBML document.getElementById(‘’).setTextValue issue -
i added fbml application fan page can't make js work ... though read fbjs best practices ... guess missing something.
here current code :
<form action="" method="post" target="_blank"> <input type="text" name="email" id="emailinput" onclick="document.getelementbyid(‘emailinput’).settextvalue(‘hi!’);" value="votre adresse email" alt="entrez votre email" /> <input type="hidden" name="place" value="facebook" /> <br/> <input type="submit" name="submit" class="submitinput" value="" alt="valider" /> </form> the onclick event seems not work can't answers research on internet ...
any welcome ;)
cheers guys.
gotye.
use firebug or chrome tools verify id emailinput, , facebook fbml parser didn't append prefix id. fbml pages have been deprecated better off switching iframe fan page aren't running risk of having facebook kill fbml fan page. also, javascript ton easier in iframe pages , can called without having wait click event fire.
Comments
Post a Comment