简体   繁体   English

在哪里为 dashcode 编写后端编码

[英]Where to write backend coding for dashcode

I am new to iphone web apps and trying to use database(sqlite3) in my iphone web app but not getting material for getting started with db connection where to do bacend coding in dashcode because,there are only css,html and js files and so my basic question is where should do I start with the backend coding. I am new to iphone web apps and trying to use database(sqlite3) in my iphone web app but not getting material for getting started with db connection where to do bacend coding in dashcode because,there are only css,html and js files and so我的基本问题是我应该从哪里开始后端编码。

If any one has solution please do write to me.如果有人有解决方案,请写信给我。

Kind Regards Parag Deshpande亲切的问候 Parag Deshpande

There is no backend in Dashcode. Dashcode 中没有后端。 As you say it is html, css and JavaScript.正如你所说,它是 html、css 和 JavaScript。 The "normal" way of accessing data is to define a data source in the JavaScript, go to the library for the code samples to do this and this lets you access xml files.访问数据的“正常”方式是在 JavaScript、go 到库中定义数据源,以获取执行此操作的代码示例,这样您就可以访问 Z0F635D0E0F3874FFF8B7ZA 文件。

As far as i am aware it is not possible to access sqlite either from dashcode or even for that matter from JavaScript as JS is sandboxed in browsers to prevent malicious access.据我所知,无法从 dashcode 甚至 JavaScript 访问 sqlite,因为 JS 在浏览器中被沙盒化以防止恶意访问。

It might be possible to use server side JS such as node or rhino but at that point i would think you were loosing the advantages of DashCode and would be better to move to a more comprehensive platform like xcode or Sencha Touch etc.可能可以使用服务器端 JS,例如 node 或 rhino,但那时我认为您正在失去 DashCode 的优势,最好转向更全面的平台,例如 xcode 或 Sencha Touch 等。

sqlite3 is available as part of html5 localstorage. sqlite3 作为 html5 本地存储的一部分提供。 There is a fair bit of info on the web. web 上有相当多的信息。

http://blog.darkcrimson.com/2010/05/local-databases/ http://blog.darkcrimson.com/2010/05/local-databases/

https://developer.apple.com/videos/wwdc/2011/ https://developer.apple.com/videos/wwdc/2011/

Look at session using HTML5 offline storage.看看 session 使用 HTML5 离线存储。

I have used this in a few apps and have been impressed with capabilities and speed.我在一些应用程序中使用了它,并且对功能和速度印象深刻。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM