How to reender from one page to another using a button

14 views
Skip to first unread message

and_16

unread,
Jun 15, 2011, 11:49:28 AM6/15/11
to Google App Engine
Hello im trying to switch form a page to another page using a button
but im not sure how to do it. the only way i can think of is using
ajax but i dont know how, is there some other way to do it? please
help me.

Robert Kluin

unread,
Jun 17, 2011, 5:20:50 AM6/17/11
to google-a...@googlegroups.com
Hi,
This is not really an App Engine question. But, it sounds like you
might benefit from some more basic reading. You might want to start
with one of the getting started guides,
http://code.google.com/appengine/docs/python/gettingstarted/

Perhaps you might also want to read about links.
http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=html+link


Robert

> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>
>

Branko Vukelic

unread,
Jun 17, 2011, 6:19:46 AM6/17/11
to google-a...@googlegroups.com
If all you want to do is switch from one page to another, you can use
a form with just one button like so:

<form action="http://www.google.com/" method="GET">
<button type="submit">Go there</button>
</form>

You can see how it works here:

http://jsfiddle.net/g5prs/

The button works exactly like a link. Another solution (one which is
preferred) is to use something like jQuery UI to 'skin' your link and
make it _look_ like a button. Here's an example:

http://jsfiddle.net/WG9XK/

> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>
>

--
Branko Vukelić
bra...@herdhound.com

Lead Developer
Herd Hound (tm) - Travel that doesn't bite
www.herdhound.com

Reply all
Reply to author
Forward
0 new messages