English 中文(简体)
页: 1
原标题:Scratch-style token fields in Javascript

I m trying to make a replica of the drag-and-drop programming interface in Scratch <http://scratch.mit.edu>, but in javascript. I have the building blocks part done, but am specifically interested in how I might go about building the tokenized fields.

Sc有可以进入数字或文本的田地,还有代表变数或操作的标语,反过来又可以接受自己的数字、文字或标语,并且可以确定进一步的变数和行动等等。

Example of Scratch s nested token system in a field:

I m 采用jQuery,同时使用jQuery UI,用于可提取和可兑换。 就如何建立这样一个领域提出建议?

最佳回答
问题回答

尼斯问题和水耳似乎做得很多,因此,我认为我说,我有两个欧元值得......。

Think of the nested structure as a tree - that s internally how it is recorded. Operators (and, or, + and so on) have two branches which are the two entries. Function calls have as many branches as they have arguments, and some, e.g. "sum" have a varying number.

视觉上,每个目标(经营者等)都需要显示适当的田地数目。 回收算法模拟运行树以进行显示,在投放时,同样的算法可用于更新显示。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签