Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/389.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
使用javascript验证公共Google日历url_Javascript_Google Calendar Api - Fatal编程技术网

使用javascript验证公共Google日历url

使用javascript验证公共Google日历url,javascript,google-calendar-api,Javascript,Google Calendar Api,我有一个由多个运行FullCalendar的用户访问的应用程序。 我为用户提供了将他们的完整日历与谷歌日历同步的选项。 如果他们选择与谷歌同步,我会要求用户输入他们的公共谷歌日历Url。 我想在用户提交表单后使用javascipt验证google日历Url。 如果用户输入的url不存在或者url不是公共的,我想提醒用户他们提供的url无效或是私有的。 验证函数的javascript代码是什么 谢谢..你能举个这样一个url的例子吗?我相信您需要为此使用常规表达式。当然:https://www.g

我有一个由多个运行FullCalendar的用户访问的应用程序。 我为用户提供了将他们的完整日历与谷歌日历同步的选项。 如果他们选择与谷歌同步,我会要求用户输入他们的公共谷歌日历Url。 我想在用户提交表单后使用javascipt验证google日历Url。 如果用户输入的url不存在或者url不是公共的,我想提醒用户他们提供的url无效或是私有的。 验证函数的javascript代码是什么


谢谢..

你能举个这样一个url的例子吗?我相信您需要为此使用常规表达式。当然:
https://www.google.com/calendar/feeds/test@gmail.com/public/basic
我理解你所说的正则表达式,但这不是我想要的。我想知道他们输入的网址是否真的存在。