Difference between revisions of "Jquery"

From Wiki2
Line 1: Line 1:
You can send more info to the autocomplete script:
You can send more info to the autocomplete script:
:In this case &course:33duck gets appended to the get string going to ../tm/smcompl.php
:In this case &course:33duck gets appended to the get string going to ../tm/smcompl.php  
::from: /assess/combine/createCquiz.html
<pre>
<pre>
$("#quesfrom").autocomplete({
$("#quesfrom").autocomplete({

Revision as of 11:34, 24 October 2010

You can send more info to the autocomplete script:

In this case &course:33duck gets appended to the get string going to ../tm/smcompl.php
from: /assess/combine/createCquiz.html
		$("#quesfrom").autocomplete({
			source: function(request, response) {
				$.getJSON("../tm/smcompl.php", {
					term: extractLast(request.term),
					course: document.getElementById("numques").value + 'duck'
				}, response);
			//$.getJSON("../tm/smcompl.php", {term: extractLast(request.term)}, response);
			},