我想我可能会做错事。试图向Internet Explorer注册的用户表示,尝试提交时,facebook插件会变为空白。有任何想法吗?为什么在IE中使用XFBML注册插件时会变为空白?
这是一些代码:
<fb:registration redirect-uri="http://friendsconnect.org/----.php"
fields='[{"name":"name"},{"name":"first_name"},{"name":"last_name"},{"name":"email"},{"name":"username","description":"Username","type":"text"},{"name":"password"},{"name":"gender"},{"name":"birthday"},{"name":"captcha"},]'
onvalidate="validate"></fb:registration>
<script>
function validate(form) {
errors = {};
if (form.name == "") {
errors.name = "Please enter your name.";
}
if (form.username == "") {
errors.username = "Please enter your username.";
}
if (form.email == "") {
errors.email = "Please enter your email address.";
}
if (form.password == "") {
errors.password = "Please enter your password.";
}
if (form.gender == "") {
errors.gender = "Please enter your sex.";
}
if (form.birthday == "") {
errors.birthday = "Please enter your birthday.";
}
if (form.captcha == "") {
errors.captcha = "Try and enter the text in the box below.";
}
return errors;
}
</script>
只需注意** XFBML **不应与遗留** FBML **混淆。阅读[this](http://developers.facebook.com/blog/post/462#fbml_roadmap)。 – ifaour 2011-05-06 08:22:41