Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

I mostly agree with your point that abandoning jQuery is premature but:

1. IE7 and above support the native XMLHttpRequest object; the code example is code is probably much longer than it needs to be (it can be trivially reduced by %50).

2. There is nothing to stop you from creating your own API. I had to do this because jQuery didn't interact well with a custom ASP.NET framework[1]

Here is how I do Ajax stuff using a small library that I wrote[2]:

    var xhr = new $xhr(SOME_URL, function (data) { /* do stuff */ })
    
    xhr.post(document.getElementById('form_id'));
[1] http://stackoverflow.com/questions/7810022/ajax-via-jquery-a...

[2] https://gist.github.com/noblethrasher/5383649



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: