renodino, does make some excelent, and somewhat disheartening points, which I've taken the liberty of mangling and answering (perhaps) below:

pTk tends to encourage a tight coupling between View and Model that may not map well to the loose coupling required between the browser running JS

In order to manipulate the widgits the request would need to contain some javscript - which could get a little hairy. I was going to (to start anway) just map every single onclick onmouseover etc to a http request that then calls the coderef that was assigned to it and returns some javascript or html to suit (obviously you'd not map every event, only those for which there was something meaningful to call).

...convert the various closure and tied variable interfaces into XHR...

I'd most definately not want to convert the callbacks and send them off as javascript - not because it's a bad plan, but more because i have a blood condition, and code like that would start a nosebleed for sure!

 HTML::Widget

Hey Neat! there's a bundle of code i don't have to write myself

Tk's interface is ... kinda... not... good

I'll give wxperl an oggling too... Since Ihave next to no knowledge of my own, anything is a welcome addition! If you know of an API that you think is good, I'd love to know before I belt out some code, although i figured if i manage to pull even a fraction of this off, it would benifit more people since (based on statistics i just made up then) more people are using Tk for their GUI's than any other library

Also, it occurred to me that you could simply drop your Tk applicatoin in $public_html_directory and add a directive to the config files for $webserver that adds the magical TkJax libraries into @INC before the place the Tk libs normally live, and Viola! instant web application (oddly, this seems like it would be a little way down the track).

I'll see if I can smack together a bit of a Hello World type example, and see how it goes from there ...

will: do{ perl programming } 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.