Using jquery instead of javascript with qml help
-
wrote on 21 Nov 2010, 14:01 last edited by
hi
i want to know can we use jquery library with qml? I mean to ask that when i want to access data for example from xml file or any other thing, i can use XMLHttpRequest. but what i i want to use jquery library function like $.ajax().thanks
-
wrote on 21 Nov 2010, 16:31 last edited by
I don't think it's actually possible, but you can try to extract functions and objects you need
-
wrote on 22 Nov 2010, 09:58 last edited by
how is it possible to extract functions and object? I mean how can i do this?
-
wrote on 22 Nov 2010, 11:08 last edited by
well it's actually can be complicated
you should look up what you need in jquery source and copypaste it to a new js file. you may need to remove some code, special for web, for example DOM refernces etc. also i doubt that $ will work -
wrote on 23 Nov 2010, 00:38 last edited by
In qml, you can access C++ coding, you can achieve the purpose using C++
-
wrote on 8 Aug 2011, 04:14 last edited by
so then we can use c++ code to read jquery lib correct?
any tutorial about this?
thanks before -
wrote on 8 Aug 2011, 08:47 last edited by
jQuery is browser-oriented js library. I really doubt that it is possible to port it to qml. You can use c++ not to use jquery, but to implement similar methods in c++ and use them in qml.
-
wrote on 25 Nov 2011, 13:38 last edited by
I just finished a small library so I don't have to handcraft all my ajax requests, you can find the library at https://github.com/peppelorum/ajaxmee
If you use it please let me know, if you find any bugs, please file a bug at github, or even better, fork it and pull request.