[jQuery] Plugin idea : server language integrator

[jQuery] Plugin idea : server language integrator


Hello everyone,
There are a few server language integration scripts but as far as i
checked the code they are restrictive, only allowing the actions/plugins
they have defined in their scripts.
I was thinking about an integrator script (php) that would get the
methods from the version and plugins that are used, and cache it for
speedier access, so that you could produce code like :
$jQuery = new jQuery('jquery,jqModal','jscache');
$jQuery->jqel('#test')->jqact('show');
$jQuery->jsif('$("#test2").size() == 1')->jqel('#test2')->jqact('jqmShow');
$js = $jQuery->create();
which would produce a file with following code
$(function(){
$("#test").show();
if($("test2").size() == 1){ $("#test").jqmShow(); }
});
The idea is still very sketchy but the script should get all/most of the
methods related to jquery and use them in the server language code, it
also should cache the code so it doesn't get generated every time the
page is requested, and it has to include some javascript methods (in the
example : if) to centralize all js code.
The first bump i can think of is how to get all the methods out of the
js code?
And can anyone tell me how many javascript methods i should include or
if i should do it at all.
I doing this because many developers seem to be found of javascript
integration and because the jquery methods differ from version to
version and others are added by plugins. It's something i will be doing
for fun but maybe it's good to have a standard interface for integrating
jquery, i'm willing to port it to other languages.
Any suggestions or comments are welcome.
--
David Duymelinck
________________
david@icreate.be