Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14114

AJAX help wanted

$
0
0
I have managed to get an CI4 AJAX Dynamic Search routine working but it was an 'Orrible Kludge.

I had a tremendous amount of problems in trying to call this dbSearchResults.php file using the following JavaScript:
Code:
   <script type="text/javascript">
     function showResult(str)
     {
       ...
       ...
       ...
       
       xmlhttp.open("GET","dbSearchResults.php?q="+str,true);
       xmlhttp.send();
     }// endfunc ShowResults
   </script>


My knowledge of JavaScript is very basic and no solved or other solutions were found.

I would be very grateful for a link to a tutorial. If none are available then I would like to know the correct method to call and use a PHP file with AJAX.

Viewing all articles
Browse latest Browse all 14114

Trending Articles



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