sproutcore

Differences between Sproutcore and Ember

懵懂的女人 提交于 2019-12-31 08:05:40
问题 I had selected sproutcore as a framework right before Ember forked from sproutcore. I am left uncertain of which way to go and a bit frustrated in the apparent dilution of efforts caused by the fragmentation - as rarely does that lead to better things. The efforts of Sproutcore 2.0 (now Ember) seemed to be going in the right direction of modularization and reuse of other javasript components (jQuery), however it is really unclear from an outside view why the two efforts had to split... couldn

Differences between Sproutcore and Ember

这一生的挚爱 提交于 2019-12-31 08:04:12
问题 I had selected sproutcore as a framework right before Ember forked from sproutcore. I am left uncertain of which way to go and a bit frustrated in the apparent dilution of efforts caused by the fragmentation - as rarely does that lead to better things. The efforts of Sproutcore 2.0 (now Ember) seemed to be going in the right direction of modularization and reuse of other javasript components (jQuery), however it is really unclear from an outside view why the two efforts had to split... couldn

Why does SC.ScrollView bounce on touch instead of scroll?

放肆的年华 提交于 2019-12-25 07:36:46
问题 On my mobile app, the SC.ScrollView appears to function properly in that it begins to scroll downward, however after I release my finger, instead of continuing to scroll down, it bounces back to it's original position. It works perfectly when I run everything through sc-server , but once I push it to production using sc-build , it messes up. What could be causing this? 回答1: Turns out, one of my stylesheets had done something stupid and manually set the height of the body to be 10,000px which

Basic Authentication in SproutCore SC.Request

▼魔方 西西 提交于 2019-12-25 03:16:18
问题 Thanks to IAbstractDownvoteFactory for an awesome answer to my previous question Connecting to an HTTPS service with SproutCore This question is based off that. My question being, the server needs me to log in. Now, for dev reasons, I don't need the user to fill out the form. Additionally, even when this app is released, the user will NOT need to log in. Thus, the username and password is only for dev purposes. However, it is there, and I don't want to see the browser popUp window. Is there

How to deal with authenticated state in a SproutCore application

无人久伴 提交于 2019-12-24 14:23:45
问题 In a (now sort of deleted) question by Peter Kniestedt he was wondering where and how to set a timer to check for the authentication of the user. His question is part of a larger question (which is the title of this question). Because I think it is important that this question is answered, I created a new question as a way to gather all the important information in one spot. 回答1: This is a typical case for the use of statechart, and more specifically concurrent states. If you didn't know

How do you set up controller selections when routing directly to a child state in SproutCore?

六眼飞鱼酱① 提交于 2019-12-24 05:33:43
问题 If I have a route to a state deep in the application, how do I ensure that the proper controller set up has been done although I'm going to enter the inner state directly? For example, state A state a, representRoute: 'a' state B state b, representRoute: 'a/b' state C state c, representRoute: 'a/b/c' state D state d, representRoute: 'a/b/c/d state E As you can see you can route directly to states 'a', 'b', 'c' or 'd', but what you can't see is that normally you would go between these states

How do you set up controller selections when routing directly to a child state in SproutCore?

不羁岁月 提交于 2019-12-24 05:33:06
问题 If I have a route to a state deep in the application, how do I ensure that the proper controller set up has been done although I'm going to enter the inner state directly? For example, state A state a, representRoute: 'a' state B state b, representRoute: 'a/b' state C state c, representRoute: 'a/b/c' state D state d, representRoute: 'a/b/c/d state E As you can see you can route directly to states 'a', 'b', 'c' or 'd', but what you can't see is that normally you would go between these states

Are Recursive Collections possible in sproutcore2?

☆樱花仙子☆ 提交于 2019-12-24 00:57:02
问题 I have a customizable navigation tree that can be nested 3 levels deep. Templates: <script type="text/x-handlebars" data-template-name="NavItemView"> <a {{bindAttr href="href" class="content.className"}}>{{content.name}}</a> {{##if content.children}} another collection here? {{/if}} </script> <script type="text/x-handlebars"> {{collection App.NavItemsCollectionView contentBinding="App.navItemsController" tagName="ul"}} {{view App.CreateLinkView id="new-link" placeholder="Name"}} </script>

good example applications combining rails 3 and sproutcore

余生长醉 提交于 2019-12-20 15:12:41
问题 I am trying to write a sproutcore frontend for a rails 3.1 application I am making. I have had a look at the sproutcore guides, but I am interested in seeing real examples how to use sproutcore together with rails 3(.1). I have found two examples, but each is totally different: A todo-app created using bulk_api: an interesting approach using a specific REST-style to minimise the traffic. But it proposes to place the sproutcore app in app/sproutcore , and is still a bit unclear to me how that

good example applications combining rails 3 and sproutcore

随声附和 提交于 2019-12-20 15:11:51
问题 I am trying to write a sproutcore frontend for a rails 3.1 application I am making. I have had a look at the sproutcore guides, but I am interested in seeing real examples how to use sproutcore together with rails 3(.1). I have found two examples, but each is totally different: A todo-app created using bulk_api: an interesting approach using a specific REST-style to minimise the traffic. But it proposes to place the sproutcore app in app/sproutcore , and is still a bit unclear to me how that