5 ms·
Would sproutcore still play nice in a development cycle if I only wanted to use it for a nice shopping cart implementation, but use adhoc javascript everywhere
by catch23 16y ago
Would sproutcore still play nice in a development cycle if I only wanted to use it for a nice shopping cart implementation, but use adhoc javascript everywhere else on a website? The last time I looked at it, it seemed to only excel if you needed to implement one giant js application.
- devinus 16y agoYes, we plan on doing this. It's as simple as having the shopping cart page be SC and the rest ad-hoc, or the shopping card within an iframe.
- catch23 16y agoI don't really consider the iframe-style as a valid integration point though. You could technically hide anything inside an iframe. The iframe makes it significantly harder to integrate because all your javascript will essentially need to do cross frame communication type crap just to tell the "other guy" what to do. Plus, depending how you stack your iframes, your inner iframes may not be able to do overlays on your parent frame. Iframes in general is just an ugly hack and should be reserved for actual cross-domain type scenarios. However, I am looking forward to the ad-hoc style integration if that's possible.
- wycats 16y agoiframe would be the lowest-level of integration. A better solution would allowing a SC app to take over a specific element on the page, and we're definitely looking at that solution. Another perfectly worthy solution might be to theme the SC app so it looks like your main app.