6

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
6
  • 1
    Duplicate of stackoverflow.com/questions/256768/… Commented 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... Commented 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 .. Commented May 24, 2012 at 10:50
  • 1
    @ManseUK Better to be sure the answer is no than to keep wondering what if it exists.. Commented May 24, 2012 at 10:54
  • Actually, from technical point of view, developing such a tool is possible, but who would do it?... Commented May 24, 2012 at 10:56

1 Answer 1

2

I realized such a tool could not exist

answered May 24, 2012 at 10:51
Sign up to request clarification or add additional context in comments.

1 Comment

Yeah! I was highly expecting this kind of answers... Anyway! I tried :)

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.