Hi Everyone!

I was wondering how I would use a javascript varible in jquery ?.

function postNewAnswerAlerts() {
      if (http_request.readyState == 4) {
         if (http_request.status == 200) {
        
            var result = http_request.responseText;
			$('div#question').load('responder.php?mode=readquestion&id=' + result).show().fadeIn('slow');         
         }
      }
   }

Many thanks

James.

Problem solved lol. :).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.