示例#1
0
?>

			if (typeof($) === 'undefined') {
				alert('Failed to load jquery. Sijax relies on Jquery to work!');
			}

			if (typeof(Sijax) === 'undefined') {
				alert('Failed to load sijax.js! This example will not work unless you fix it!');
			}

			if (typeof(sjxSuggest) === 'undefined') {
				alert('Failed to load sijax_suggest.js! This example will not work unless you fix it!');
			}

			<?php 
echo Core_Sijax::getJs();
?>
			<?php 
echo $registrationScripts;
?>

			//This will be called when a tag is picked
			var selectTag = function(tagName) {
				//We could modify the textbox contents to really auto-complete the word, etc..

				$('#debug').append('Selected tag: `' + tagName + '`');
			};
		</script>

		<style>
		.sjxSuggest-item {