how to: HTTP POST request with javascript

babbelut

New Member
How can I do a http post request (without leaving the page) with javascript?

I need to do a request to a website and i want to do some calculations with the return from that website...

can please somebody help me? I know how to do this in php, but I can't find how to do this in javascript (in fabrik).

thank you!
 
I found this is possible in javascript with JQuery.

So I made this code:

head.js('//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', function() {
$.post('http://www.w3schools.com/jquery/demo_test_post.asp', function(data) { alert('Data Loaded: ' + data);}
);
}
);


in the Javascript "mouseover" of the element, but this does not work... Why not?

thanks
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top