简体   繁体   English

将Facebook Connect与jQTouch一起使用?

[英]Using Facebook Connect with jQTouch?

I'm starting a new jQTouch-project now and I'm thinking about using Facebook connect to make it easier for users to register with my site. 我现在正在开始一个新的jQTouch项目,并且正在考虑使用Facebook connect来使用户更轻松地注册我的网站。 Does anyone have any experience with this? 有人对这个有经验么?

I'm using the Facebook PHP SDK (from github ), and I first tried to use it with the built in example, it worked well. 我正在使用Facebook PHP SDK(来自github ),并且我首先尝试将其与内置示例一起使用,效果很好。

Later, I tried it with jQTouch (the latest build from the SVN). 后来,我使用jQTouch(SVN的最新版本)进行了尝试。 When I created the log in/log out link inside a ul.rounded>li element it does not work because jQTouch have some special function that handles links clicked inside a li-element. 当我在ul.rounded>li元素内创建登录/注销链接时,它不起作用,因为jQTouch具有一些特殊功能来处理在li元素内单击的链接。 How can i go around this function and make it work with the connect-link? 如何解决此功能并使它与连接链接一起使用? I'm using the display=touch version of the authentication dialog. 我正在使用身份验证对话框的display = touch版本。

When I add the link outside of the ul.rounded>li-element it works in desktop Safari but not in mobile Safari. 当我在ul.rounded>li-element之外添加链接时,它在台式机Safari中ul.rounded>li-element ,但在移动Safari中不可用。

Instead of adding the link outside the LI, put it outside the UL. 而不是将链接添加到LI之外,而是将其放在UL之外。 It should work because is inside the form tag. 它应该工作,因为它位于form标记内。 I did this in using the beta 2 release and worked. 我在使用Beta 2版本时做到了这一点,并且可以正常工作。

<form id="yourlogin" method="post">
    <ul class="edit rounded">
        <li><input type="email" name="username" placeholder="Your Username" id="username" autocorrect="off" autocapitalize="off" class="input"/></li>
        <li><input type="password" name="yourpassword" placeholder="Password" id="yourpassword" class="input" />
        </li>
    </ul> <a name="action" id="loginbtn" style="" href="#" type="submit" class="submit whiteButton">Login</a> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM