I ignored this thread when it came up but it did get me thinking later.
I'm aware that no scheme to force the use of a 'WEB GUI' will be 100% effective, but I thought it might make an entertaining thought exercise.
First thing that came to my mind was that if you've made a nice fat Javascript/forms front-end for some REST/SOAP back-end... then it's all too easy to talk to the back-end once you know the urls and schemas... so basically avoid writing the clean/sexy type of fat GUI that is being currently espoused in AJAXy circles.
Then I thought.... "what is the minimum standard for 'normal' use of the web interface?". Thinking about that makes you figure out exactly which features the client's web browser must have to pass your test.
You could do something nasty like:
- have each link/submit URL be generated by client-side Javascript
- that url-generating Javascript is patched every time the server returns a new page
- if you have multiple AJAX-style requests going simultaneously, then you'll have to implement some sort of 'patch queue' to keep it all straight ;)
- all of that could be spoofed by some perl script which embeds a Javascript interpreter, so perhaps you'd need to use some tricky DOM/Canvas manipulations in your Javascript from which your code can extract hard-to-anticipate browser-computed values (very fragile ;)
How far could this be taken? :D
-David
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.