I believe this has been occasionally mentioned on the ptk list/newsgroup. A similar project was started sometime ago to provide a Tk-like API for XUL, but it never went anywhere.
It would be nice to take all those Tk apps, flip a switch, and make them run under insert favorite webserver/framework here. But 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 and the server running Perl. Assuming that much of the mapping needs to run in the browser, the API may not port very well into Javascript.
That said, it might be possible to create a Tk-like API in Javascript, and then add some sort of preprocessor/template system to convert the various closure and tied variable interfaces into XHR driven equivalents. The exersize will certainly give you a significant appreciation of the efforts of the late great Nick Ing-Simmons.
Whether or not carrying forward such an API is a good idea is debatable...OTOH, any consistent API for AJAX widgets would be a godsend. Perhaps some extensions to HTML::Widget would be a better solution ?
In reply to Re: Tk-esque ajax libraries
by renodino
in thread Tk-esque ajax libraries
by f00li5h
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |