Improvements to form-echo.gtpl

16 views
Skip to first unread message

Sean Gilligan

unread,
Apr 12, 2012, 4:22:29 AM4/12/12
to iui-dev...@googlegroups.com
form-test.html uses form-echo.gtpl to test form submission.

form-echo.gtpl runs on Google App Engine, but can easily be run locally
with the following command:
./runWebApp.sh -- as long as you have a recent Java installed you don't
have to (manually) download anything.

form-echo senses whether it is being called by Ajax or not. If called
by Ajax it returns an iUI fragment div.panel. If not called via Ajax,
it returns a full HTML page. In the .panel it gives information about
the HTTPRequest used including Form Parameters and HTTP Headers. It is
very useful for debugging forms.

It is now even more useful for two reasons:

1) The output formatting of HTTP headers has been greatly improved.
2) In fullPage mode the back button is now dynamically set to the HTTP
referer, so you can easily navigate back to the page that sent the form.

This version is currently on http://stage.iui-js.org/ but will be on
http://demo.iui-js.org/ when we make the next (beta3?) release.

-- Sean

Reply all
Reply to author
Forward
0 new messages