Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用 Webform[Drupal] 制作的表单,我将它加载到灯箱上。
该站点的结构采用 AJAX 格式。
当表单正确提交时,没有问题。但是当任何验证失败时,页面都会刷新!即使我使用 JS 检查验证,验证码在输入不正确时也会导致问题,使页面重新加载。
页面重新加载后,它会转到主页..
我想让表单在它留在灯箱中的页面中打开。那是当它刷新时,表单应该显示在灯箱中。
使用Ajax Captcha解决了它
诀窍是避免任何类型的重新加载。