views:

162

answers:

2

I want to call a url with passing some parameter and i want to process the response coming from that url in javascript.

A: 

Look for an AJAX tutorial.

lexu
+3  A: 

You're looking for AJAX.

There are a number of exceptional libraries out there that take most of the work off your hands, I like jQuery, but have a used a few others (Prototype, Dojo etc).

From the jQuery docs:

$.get('ajax/test.html', function(data) {
  $('.result').html(data);
  alert('Load was performed.');
});

http://api.jquery.com/jQuery.get/

Michael Shimmins