This is a migrated thread and some comments may be shown as answers.

Questions on conversion of existing SPA web app...

2 Answers 53 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nayt
Top achievements
Rank 1
Nayt asked on 29 May 2013, 04:08 PM
The app that we have built is actually a collection of controls that compile together to a single HTML page (jquery mobile, mulit-page app) - I basically did a "view source" of the app from the browser, dropped it into Graphite, reworked paths and references to work with local files (instead of root), and changed it to use the full URL for our web services (instead of relative path calls), copied over the images/scripts from the Visual Studio solution and it pretty much worked. I know there is a lot more to do here - that was just the "anonymous" version of the site, and we have a logged in portion too, so there is thinking to do to for best approach to implement that in a phone gap app...

Questions:
If I want to keep a single code base - one for a published website, and the same code running as PhoneGap app - does the tool support that type of deploy or integration with visual studio at all?

Is there a way using the tool to take multiple files and combine them into a single file? (which is basically what I do with the .NET app using user controls for each "page" of the app - the one BIG file (about 800 lines of HTML) I put in was pretty heavy and slowed the app down a lot (has me concerned as the full source would be a few thousand lines - pain to maintain if not separate files)

Or is there some scripting process that can be done where we continue to build the website as we do in Visual Studio - then once we are ready to release, pull the files from the compiled html (somewhat like I did above with view source) and do all the replacements in a automated process, so it is nearly ready to go for the Phone Gap build with maybe some minor tweaks.

Last question - do you have any plans to support Windows Phone 8 (or 7) with the compile?
Know the code works - I compiled it using Adobe's online phone gap build tool...

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 May 2013, 02:58 PM
Hi Nayt,

Thank you for your interest in our cloud offering. Up to your questions:
  • Visual Studio integration would come in subsequent version by the end of the year. Currently our integration is only with git repositories such as Github and BitBucket.
  • The following forum post from my colleague pretty much explains how to request your pages from the "main" one to achieve the master-detail (user control) case you refer to. You could also consider using Kendo UI and its concept for "remove views", see demo here.
  • Windows Phone 8 support is in our road map and we hope to release a first version by the end of the year.

Regards,
Steve
Telerik

Don't miss the Icenium May Release Keynote - sign up now!
Share feedback and vote for features on our Feedback Portal.
0
Nayt
Top achievements
Rank 1
answered on 30 May 2013, 03:04 PM
Thanks for the follow up Steve.

The sample post for request multiple pages would work for a pure phone gap app - but the problem with that approach is it would make dozens of calls to the server to get the pages. Defeats the purpose of having a single HTML file served up. Was hoping that the tool may have some way to "merge" all the files so that there would be just one file on publish...
Tags
General Discussion
Asked by
Nayt
Top achievements
Rank 1
Answers by
Steve
Telerik team
Nayt
Top achievements
Rank 1
Share this question
or