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
asked May 24, 2012 at 10:27
ilyes kooli
12.1k14 gold badges55 silver badges81 bronze badges
-
1Duplicate of stackoverflow.com/questions/256768/…ts.– ts.2012年05月24日 10:29:38 +00:00Commented May 24, 2012 at 10:29
-
4@ts. I seen that question, but since it's 4 years old, I was thinking maybe things have changed meanwhile...ilyes kooli– ilyes kooli2012年05月24日 10:34:37 +00:00Commented May 24, 2012 at 10:34
-
@skafandri I really fail to see why a tool of this type to ever be created - for one .... as you have already pointed out both libraries change - and they change a lot ... I would suggest that this is going to be a manual task ..Manse– Manse2012年05月24日 10:50:23 +00:00Commented May 24, 2012 at 10:50
-
1@ManseUK Better to be sure the answer is no than to keep wondering what if it exists..ilyes kooli– ilyes kooli2012年05月24日 10:54:09 +00:00Commented May 24, 2012 at 10:54
-
Actually, from technical point of view, developing such a tool is possible, but who would do it?...ilyes kooli– ilyes kooli2012年05月24日 10:56:04 +00:00Commented May 24, 2012 at 10:56
1 Answer 1
I realized such a tool could not exist
answered May 24, 2012 at 10:51
ilyes kooli
12.1k14 gold badges55 silver badges81 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
ilyes kooli
Yeah! I was highly expecting this kind of answers... Anyway! I tried :)
lang-js