PhoneGap Improvements

11 views
Skip to first unread message

Kelly Oliveira

unread,
Jun 9, 2011, 9:30:41 PM6/9/11
to phonegap, kelly...@foster.com.br
Hi Guys,

I am developing applications using PhoneGap and i really believe that
it is a great tool but some improvements would be very nice.

First of all the ability to use includes to reuse html code would be
terrific. After thinking my point is that it is possible, we just need
to include some pre-directives in phone gap.

1)The idea is that instead of use the loadURL method the phoneGap
could work with loadData. of course just when it is a local
application file.

2)The developer would put some directives such as

<!--#include file="header.htm"-->

3)Before send load data the phoneGap would be responsible for replace
the directive by the content file

i really would like to hear a opinion about PhoneGap support. At least
i would like to know if you see some problems to implement this
solution. By now i just make some research and as far as i know it is
totally possible. I will download phoneGap source code and start to
implement it. I would like to know some tips for what methods should i
start to modify it.


Any help would be very helpful
Thanks in advance,
Kelly



Tiago Jesus

unread,
Jun 10, 2011, 4:17:17 PM6/10/11
to phon...@googlegroups.com
Hi Kelly,

If you use Sencha Touch, you can use the template
http://dev.sencha.com/deploy/touch/docs/output/Ext.Template.html

2011/6/9 Kelly Oliveira <kellyo...@gmail.com>:

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>

--
------------------------------------------
Tiago Oliveira de Jesus
www.tiagojesus.com

Simon MacDonald

unread,
Jun 13, 2011, 10:31:28 AM6/13/11
to phon...@googlegroups.com
You'd be better off using a framework like jQuery or Sencha to do
templating. PhoneGap generally doesn't concern itself with the UI
side of things as other frameworks are better off doing this type of
work.

If you wanted to roll one yourself you could use XHR to load your
templated HTML and load it into the DOM dynamically.

Simon Mac Donald
http://hi.im/simonmacdonald

Reply all
Reply to author
Forward
0 new messages