LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Concurrent.Thread.Http.get is unusable in non/compiled function (http://www.linuxquestions.org/questions/programming-9/concurrent-thread-http-get-is-unusable-in-non-compiled-function-4175437699/)

eantoranz 11-18-2012 01:29 PM

Concurrent.Thread.Http.get is unusable in non/compiled function
 
Hi!

I want to develop some objects (or whatever they resemble in javascript) and they will interact through ajax with some services I have implemented in servlets.

Now, I want to do this using kind of multithreading with Concurrent.Thread. If I set up all my scripts to be text/javascript, I see the error I used as the post title when I try to make the call to retrieve information from the servlet.

If I change the type of the script where I define the object structures I'm using to text/x-script.multithreaded-js, then I'm not able to call new X(whatever) cause if says X is not defined. What is going on with Concurrent.Thread?

Thanks in advance.


All times are GMT -5. The time now is 02:45 AM.