On Mar 28, 12:22 pm, Lee <[email protected]> wrote:
> I was able to do it using a browser. Going forward was easy. Going
> backwards required me to pass query string parameters to tell the new
> pages where to "land" in the stack layout.
>
> On Mar 27, 4:30 pm, Tokyo Dan <[email protected]> wrote:
>
>
>
> > I'm trying to make a web app with Dashcode where templates are mixed
> > to end up with the following:
>
> > item #1 in the stacklayout displays a list of podcast episodes
> > item #2 in the stacklayout displays a Twitter RSS feed of the podcast
> > host.
> > item #3 in the stacklayout displays small Twitter login dialog with a
> > textwindow that allows one to send '@twitter_user_name' replies to one
> > and only one hardcoded twitter user (the podcast host).
>
> > Is this possible?- Hide quoted text -
>
> - Show quoted text -
I wouldn't use a browser template for this, I think I would start with
the podcast template, then create seperate stacklayout views for the
other two features.
Heres a simple example of moving from one view to another.
function flipToHome(event)
{
var homeButton = document.getElementById
('startButton').object;
if (homeButton.getText() == 'leave') {
homeButton.setText('connect');
} else {
homeButton.setText('leave');
var stackLayout = document.getElementById
('stackLayout').object;
stackLayout.setCurrentView('listLevel'); }
There is no reason why you can't create simple projects for both the
rss template and the podcast template, then copy and paste to from one
template to the other.
I think a lot of people who come to dashcode, come from iul , iul is
primarily suited best for list based layouts, dashcode is a bit more
flexible out of the box with more templates. Comming from a list
based paradym they probably with gravitate towards using a browser and
the browser.goforward method, but unless you need to implement browser
back button logic taking that approach can lead to more dificult code.
Not that you can't use some combination of a browser and two non-
browser views. You could even have two browsers in your app.
For podcasts and rss feeds I can't see were you would need to
implement a browser back button.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---