Aah, a fair question... I suppose I would be aiming to see how sensible an idea it is, and if anybody has considered, is considering, has already started a project that is trying to build a workalike of the Tk API's to generate HTML and the associated Javascripts, and code to the requests generated by javascript requests back to callbacks in perl CGI (Mason,Catalyst) type scripts.

AJAX is a buzz word for using the XMLHTTPRequest object in javascript to request nuggets of HTML from a webserver, and replacing parts of the page the user is viewing, without refreshing the page.

Yes, I would like to represent HTML GUI's in the same language, in my code as I'd put together a GUI for a `real' running-in-a-window-manager application

Mozilla Dev center have some fine AJAX related materials and wikipedia will tell you want an MVC is. Dojo provide some AJAX libraries, and examples. There is one for submiting golfing attempts to codegolf.com (need to signup to see) and gmail is mad for it.

I think it could be build on Template::Toolkit and CGI::FormBuilder for displaying the things to click, but it'd be more tricky to associate a http request (perhaps with REST) back to the coderef that's associated to the clicking of the button...

The more I write here, the more I feel like one of those newbie guys that comes on asking about something near impossible, that is far far outside his own skill set. - sadly, I am very young in Perl.

will: do{ perl programing } for ($cash);

In reply to Re^2: Tk-esque ajax libraries by f00li5h
in thread Tk-esque ajax libraries by f00li5h

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.