/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Make the AJAX call var url = ''; var params = encodeURI(''); new Ajax.Request(url, { asynchronous: true, method: "get", parameters: params + 'type=eval', onSuccess: function(request){ //evaluate eval(request.responseText); }, onFailure: function(request){ } });
Comments
