Newby want to use SimpleFAQ
I'm completely new wit AJAX, and thus with JQuery.
I'm trying to get SimpleFAQ working.
I think the HTML part is withouth problems, the problem is in the javascript part
Who can help me trying to solve this ?
My code is:
<?php
// require("forum/SSI.php");
// require("forum/Mijn_SSI.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="du">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Test</title>
<script> type="text/javascript" src="js/JQuery.js"></script>
<script> type="text/javascript" src="js/SimpleFAQ.js">
$('ul#faqList').js/simpleFAQ({
allowSearch: true,
searchNode: '#faqSearch',
minSearchScore: 0.5
})
$('#simpleFAQSearch').keyup(function(jQEvent, results) {
// If the user has no search query, show all results
if (this.value.length < 1) {
$('.js/simpleFAQ').show();
}
});
$('.js/simpleFAQ').show();
</script>
<link rel="stylesheet" type="text/css" href="capady.css"/>
</head>
<body>
<ul id='faqs'>
<li>
<p class='question'>Question 1</p>
<div class='answer'>
<p>
Answer 1
</p>
<p class='tags'>1</p>
</div>
</li>
<li>
<p class='question'>Question 2</p>
<div class='answer'>
<p>
Answer 2
</p>
<p class='tags'>2</p>
</div>
</li>
<li>
<p class='question'>Question 3</p>
<div class='answer'>
<p>
Answer 3
</P>
<p class='tags'>3</p>
</div>
</li>
</ul>
</body>
</html>