Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 将Wordpress与Google脚本和Google Web应用程序链接_Html_Wordpress_Google Apps Script_Google Sheets Api - Fatal编程技术网

Html 将Wordpress与Google脚本和Google Web应用程序链接

Html 将Wordpress与Google脚本和Google Web应用程序链接,html,wordpress,google-apps-script,google-sheets-api,Html,Wordpress,Google Apps Script,Google Sheets Api,本质上,我想使用我的Wordpress站点来构建我设计的Google WebApp的html组件。WebApp完全是在googlewebapp中设计的,所以它只是原始的HTML,非常难看。我可以在Wordpress中做一些更好的东西(美学上),但我不确定如何(甚至是否可能)从我的Wordpress站点调用我的google scripts code.gs文件 这是我当前的脚本和HTML文件:(注意,它还没有完成,但你会明白大意) document.getElementById(“book”).a

本质上,我想使用我的Wordpress站点来构建我设计的Google WebApp的html组件。WebApp完全是在googlewebapp中设计的,所以它只是原始的HTML,非常难看。我可以在Wordpress中做一些更好的东西(美学上),但我不确定如何(甚至是否可能)从我的Wordpress站点调用我的google scripts code.gs文件

这是我当前的脚本和HTML文件:(注意,它还没有完成,但你会明白大意)

document.getElementById(“book”).addEventListener(“change”,getData);
函数getData(){
var grabber=document.getElementById(“book”).value;
google.script.run.withSuccessHandler(updateBook).getBook(grabber)
}
函数更新电子书(bookn){
document.getElementById(“bookn”).innerHTML=bookn;
}

圣经书背景页
圣经快速参考页

选一本书 起源 离去 利未记 数字 申命记 约书亚 法官 露丝 塞缪尔一世 塞缪尔二世 第一国王 第二国王 第一纪事 第二纪事 以斯拉 尼希米 以斯帖 工作 诗篇 谚语 传道书 所罗门之歌 以赛亚 耶利米 哀歌 以西结 丹尼尔 何西阿 乔尔 阿莫斯 奥巴迪亚 约拿 弥迦 那鸿 哈巴谷 西番雅 哈盖 撒迦利亚 马拉奇 马修 做记号 卢克 约翰 行为 罗马人 哥林多前书 哥林多后书 加拉太人 以弗所人 菲利浦人 歌罗西书 帖撒罗尼迦前书 第二帖撒罗尼迦 提摩太一世 第二蒂莫西 提图斯 菲利蒙 希伯来人 詹姆斯 彼得一世 彼得二世 第一约翰 第二约翰 约翰三世 裘德 揭露


应用程序脚本Webapp可以从

  • script.google.com
  • post
    使用
    doPost
    在互联网上的任何位置发布

您可以发布到您的站点并接收返回的数据。或者,如果只是想从Google sheets中获取数据,您可以使用()来获取数据。

因此,您的回答告诉我,这是可能的,这很好,但我不知道在何处实现该功能。我考虑过一个API,但那只会把它当作垃圾堆,不是吗?当我需要各种H1或Span标记来替换图纸数据库中的数据时。@CurtisHumphreys请参见