我正在通过JavaScript http://www.google.com/recaptcha/api/js/recaptcha_ajax.js加载reCAPTCHA 并使用jquery-1.5.2.min.js与本地PHP脚本进行通信,然后验证输入通过Google的recaptchalib.php并以JSON格式将数据返回给JavaScript.一切正常,但谷歌Chrome的控制台报告错误:
Uncaught TypeError: Cannot set property 'innerHTML' of null recaptcha_ajax.js:15
Recaptcha._init_builtin_theme recaptcha_ajax.js:15
Recaptcha._finish_widget recaptcha_ajax.js:19
Recaptcha.challenge_callback recaptcha_ajax.js:13
(anonymous function) challenge:12
Run Code Online (Sandbox Code Playgroud)
我想解决这个错误,但我不知道该怎么做.
我想为观众提供一个根据用户输入修改的联系表格.这种表单的一个例子是在Ext JS站点上.我没有看过产品,但我想知道是否有其他程序/功能动态生成这样的表格?我发现只有样本才能在现有表单中添加其他输入元素.
我正在尝试通过从 Python 脚本调用 ImageMagick 来组装图像,montage如下所示:
command = "montage"
args = "-tile {}x{} -geometry +0+0 \"*.png\" out.png".format( width, height)
sys.stdout.write( " {} {}\n".format(command, args) )
print subprocess.call( [command, args] )
Run Code Online (Sandbox Code Playgroud)
然而,蒙太奇仅显示用法。如果我手动运行命令,一切正常。ImageMagick 应该支持 Windows 中的文件名通配,因此 *.png 被扩展。但显然,这种行为受到了压制subprocess。我是否必须使用文件名列表来glob提供信息?montage
更多信息 到目前为止谢谢。但即使当我使用:
command = "montage"
tile = "-tile {}x{}".format( width, height)
geometry = "-geometry +0+0"
infile = "*.png"
outfile = "out.png"
sys.stdout.write( " {} {} {} {} {}\n".format(command, tile, geometry, infile, outfile) )
print [command, tile, geometry, infile, …Run Code Online (Sandbox Code Playgroud) javascript ×2
ajax ×1
forms ×1
glob ×1
html ×1
imagemagick ×1
jquery ×1
parameters ×1
python ×1
recaptcha ×1