Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert from prototype to jQuery

Is there a consistent and generic way to convert prototype code to jQuery?

I'm not asking how to convert specific code like:
From:

Event.observe(window, 'load', function () { 
    /*code*/ 
});

To:

$(function(e){ 
    /*code*/ 
});

But how to convert any code from prototype to jQuery.
I am not sure this is possible, but any suggestions are welcome.
Thanks

Update:
I have been here but this is 4 years old..
You know, a question like (how to load data from the server without reloading the page) in 1990 would have an obvious answer: you cannot

like image 208
ilyes kooli Avatar asked May 24 '12 10:05

ilyes kooli


1 Answers

I realized such a tool could not exist

like image 109
ilyes kooli Avatar answered Sep 28 '22 20:09

ilyes kooli