Dashcode XML Youtube 数据 API 有帮助吗?
在过去的一个月里,我一直在努力了解 dashcode(我是一名刚接触 Mac 的 Web 开发人员)。我一直在尝试创建一个简单的应用程序,我厌倦了 youtube 的界面,并一直在尝试构建一个应用程序来解决我的问题!我只想知道如何在应用程序中实现喜欢/不喜欢计数器和/或喜欢/不喜欢按钮!目前,我在应用程序中有喜欢和不喜欢的按钮,并且有一个区域是我希望显示喜欢/不喜欢计数的区域(但当然,它们都没有任何作用,因为我对 dashcode 很陌生)。那么我该怎么做呢?
非常感谢任何帮助!
谢谢!
For the past month I have been trying to get my head around dashcode (i'm a web developer thats new to the Mac). I have been trying to create a simple application, I am sick of youtube's interafce and have been trying to build a application to solve my problems! All I want to know how to implement a like/dislike counter and/or like/dislike buttons into the application! Currently I have like and dislike buttons in the app and a area were i would like the like/dislike count to show (but of course none of it does anything, because of how new to dashcode I am). So how can I do this?
Any help is greatly appreciated!
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 Dashcode 位可能会妨碍。 Dashcode 网站和应用程序由 html/css/javascript 组成,因此您实际上正在做的是使用这些元素构建一个网站,而您需要的是某种形式的“喜欢”值的持久存储。
做到这一点的一种方法是使用数据库。当我们谈论客户端 javascript 时,解决方案是使用 ajax 调用服务器上的 sqlite 或 mysql 数据库。我说 sqlite 是因为它是单个文件解决方案,无需安装。存储需要在服务器上完成才能获得“喜欢”的运行总数。
请参阅此链接以获取有关 javascript/sqlite/storage 的一些建议
希望这会有所帮助。如果没有或您需要更多信息,请发表评论。
I think the Dashcode bit might be getting in the way. Dashcode sites and apps comprise of html/css/javascript so what you are actually doing is building a web site with these elements and what you need is some form of persistent storage for the "like" values.
One way of doing this is to use a database. As we are talking about client side javascript then the solution there would be to use an ajax call to an sqlite or mysql database on the server. I say sqlite as it is a single file solution without the need for install. The storage will need to be done on the server to get the running total of "likes".
See this link for some advice on javascript/sqlite/storage
Hope this helps. Please comment if not or you need any more info.