Quantcast
Channel: Topics in Category: Can I do this with LimeSurvey? - LimeSurvey forums
Viewing all articles
Browse latest Browse all 17529

Implement "AJAX"-call - by: tpartner

$
0
0
I've moved this post to a more appropriate category. And, please don't cross post.

You would place the JavaScript for the AJAX call in the source of the question. See - manual.limesurvey.org/wiki/Workarounds:_....29_in_LimeSurvey.3F

So, if you are using the jQuery get() function, the JS would look something like:
<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		var qID = {QID};
 
		$('#question'+qID+' input[type="text"]').change(function(){
			$.get('http://somedomain.com/customScript.php', { serial: $('#question'+qID+' input[type="text"]').val() } );
		});
	});
</script>

Unfortunately, I can't help you with the PHP coding.

Viewing all articles
Browse latest Browse all 17529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>