Response title
This is preview!




<script type="text/javascript"> $(function() { $( "#cName" ).autocomplete({ source: "autocomplete.php" }); }); </script>
<div class="search">
<form method="POST" action="search.php" >
<input id="cName" name="cn" type="text">
<input type="submit" name="submit" value="Search" />
</form>
</div>
If I add my form within a page that has a url like "mysite.com/index.php" the
autocomplete works fine. However when I add the form to a page which has a
friendly url like mysite.com/advance-search/ the autocomplete doesnt work.
Can some one explain to me why this behaviour?
At first I thought it might be something to do with the url rewrite and
htaccess. But why should this make any difference because whether the
form is added to a page with a friendly url or non friendly url such
as "index.php" the autocomplete "term" variable would be appended to
to the remote data source script which in my example is autocomplete.php.
my url rewrite for mysite.com/advance-search/ is as follows:
RewriteRule ^(advanced-search)/?$ index.php?AdvanceSearch [NC] [QSA,L]
So why is this not working and whats the solution?
© 2012 jQuery Foundation
Sponsored by
and others.
