tidesdk

JavaScript基本介绍

孤人 提交于 2020-12-23 03:16:26
什么是JavaScript? JavaScript 是一种 直译式 脚本语言,一种 轻量级 的 脚本语言 。 什么是脚本语言? Script language 指的是它不具备开发操作系统的能力,而是只用来编写控制其他程序的 语言 。 JavaScript 是一种 嵌入式(embedded) 语言。它本身提供的核心语法并不是很多,更多的功能需要依靠 宿主环境(host) 提供。So,这门语言适合嵌入更大型的应用程序环境中,去调用宿主环境提供的底层 API 。 目前常见的 JavaScript 宿主环境有 浏览器 和 服务器环境Node 。 如果从 语法 的层面来看, JavaScript 是一门 对象模型语言 。各种宿主环境通过这个模型,描述自己的功能和操作接口,从而通过 JavaScript 控制这些功能。 同时, JavaScript 还支持 函数式编程 。所以在学习的过程中,我们需要更多的去了解和学习一些不同解决问题的方法。 JavaScript 的核心语法部分包括 基本语法构造 和 标准库 ,当然如果学习这门语言还需要学习不同的 宿主环境 提供的一些其他 API [这种API通常情况下只能在该宿主环境下使用],从而在需要的时候方便调用。 例如经常涉及的宿主环境 浏览器 ,它提供的额外的 API 可以分成三大类: 浏览器控制类:操作浏览器 DOM类: 操作网页的各种元素

TideSDK How to save a cookie's information to be accessed in different file?

别来无恙 提交于 2020-01-16 18:42:10
问题 I am trying to use TideSDK's Ti.Network to set the name and value of my cookie. But how do I get this cookie's value from my other pages? var httpcli; httpcli = Ti.Network.createHTTPCookie(); httpcli.setName(cname); //cname is my cookie name httpcli.setValue(cvalue); //cvalue is the value that I am going to give my cookie alert("COOKIE value is: "+httpcli.getValue()); How would I retrieve this cookie value from my next page? Thank you in advance! 回答1: ok, there are a lot of ways to create

Could someone explain how to use the UpdateManager in TideSDK 1.3.1 Beta?

社会主义新天地 提交于 2020-01-06 07:29:09
问题 I was wondering if there was anyone online who would be willing to talk me through deployment and application updates in TideSDK 1.3.1? The background is that I would like to build a HTML5 application wrapped in a desktop client, for deployment on Windows and Mac. The resulting application needs to have a simple installer and a mechanism for receiving updates either through the internet, or using an update installer if internet isn't available. Are these features currently supported in

Google Webfonts with TideSDK

点点圈 提交于 2020-01-05 08:03:45
问题 Have just discovered TideSDK and look forward to the upcoming 1.4.0 build. I am utilizing the TideSDK Developer on Windows 7 32-bit and have the HelloWorld app up and running... now I am having fun trying lots of CSS3/HTML5 code snippets to see what works with the current beta release. Trying to use Google webfonts does not seem to work... is this correct? I saw (old) discussions about font usage on windows with appcelerator Titanium, but don't know the current status. Is this expected to be

How to make TideSDK window not closeable?

无人久伴 提交于 2020-01-05 07:46:06
问题 I am trying to make a TideSDK application that cannot be closed and minimizes to the system tray. I have the system tray part figured out for the most part, but when I specify "closeable" in tiapp.xml it doesn't do anything. i.e. I still see the "close" button and it closes the app entirely. <window> <id>someApp</id> <title>Alerts</title> <url>app://index.html</url> <width>800</width> <max-width>800</max-width> <min-width>800</min-width> <height>600</height> <max-height>600</max-height> <min

Convert javascript arrays into HTML table using DOM

做~自己de王妃 提交于 2019-12-25 01:38:09
问题 I am currently creating a desktop app using tide sdk. All of my database information is stored into Parse.com (a serverless database). What I am trying to do is to take the array of the information I queried from Parse (in javascript) and insert it into a table. I am really having a hard time getting used to not using document.write() for my desktop application. I want the end result to look like: This is what I started with: var contactNameArray = []; var contactNumberArray= []; var CM =

how to retrieve form variables using tidesdk + php?

我们两清 提交于 2019-12-25 00:16:33
问题 i'm using TideSdk + PHP for my project, but i can't retrieve post variables with $_POST. any way to do this ? 回答1: This example is a bit stale but shows you how to work with form content: http://www.sanisoft.com/blog/2011/01/03/introduction-to-creating-desktop-applications-with-php-and-titanium/ 来源: https://stackoverflow.com/questions/15702381/how-to-retrieve-form-variables-using-tidesdk-php

TideSDK not working with Pusher

独自空忆成欢 提交于 2019-12-22 00:22:20
问题 I'm trying to develop a desktop application coded in HTML, CSS, jQuery and PHP, compiled with TideSDK. This application needs to receive real-time notifications from a webpage, so that when a user clicks on a specific button on the website, the desktop application captures that immediately. I've found Pusher for this matter, and it works great between two websites, but it appears as "unavailable" to connect in a desktop application with TideSDK. This is what I get from the web: Pusher : State

appjs - compile into single executable?

ⅰ亾dé卋堺 提交于 2019-12-20 10:25:24
问题 I've spent all night trying different tools for building cross platform desktop apps via html5 and so far appjs seems to be perfect. I've only been playing around with the windows executable-based demo project but I'm wondering if there is any guide or tutorial on how to convert the project to cross platform executables (single files) instead of the appjs loader executable with all the sources in a subfolder. I've also tried adobe air however css animations is beyond poor, slow/choppy (might

Building Win, Mac and Linux packages from one platform

怎甘沉沦 提交于 2019-12-12 01:23:49
问题 Is it possible / planned to build a Win/Mac/Linux package from within one platform? An IDE called RunRev LiveCode allows to deploy to multiple platforms, but it supports only HyperCard language, afaik it's also possible in Qt a Zotero Standalone Builder can be used to bundle Webapp XUL Wrapper into distributable bundles for Mac, Windows, and Linux would it be possible to use it with TideSDK? a Kickstarter project starts for AppJS, the maintainers want to launch a cloud service to deploy the