Hi,
I am in the process of designing an AJAX-based internal web site at my organization. Nearly all links on this site are javascript functions that contain HTTP-request calls that only update a specific portion of the web page being viewed. Server-side I use PHP and MySQL.
To enable Webinator to crawl the site all the same I have created a parallel site that mirrors all the content with real html links. Having indexed the content, I would like to add a search form to the site which sends an asynchronous javascript call to a PHP script, from where I would like to call the search engine, retrieve the results, parse these to recreate the original javascript links, and send the final output string to the javascript response handler that then will integrate the query response at the correct location in my page.
Being new to Webinator, I am not sure what is the best way to proceed after having sent the query to my php script. How do I call the search engine from PHP? Can I output the results to PHP in a more practical format for parsing? Is this all possible in principle, or am I missing something? Thanks for all recommendations and pointers!
-Sam
I am in the process of designing an AJAX-based internal web site at my organization. Nearly all links on this site are javascript functions that contain HTTP-request calls that only update a specific portion of the web page being viewed. Server-side I use PHP and MySQL.
To enable Webinator to crawl the site all the same I have created a parallel site that mirrors all the content with real html links. Having indexed the content, I would like to add a search form to the site which sends an asynchronous javascript call to a PHP script, from where I would like to call the search engine, retrieve the results, parse these to recreate the original javascript links, and send the final output string to the javascript response handler that then will integrate the query response at the correct location in my page.
Being new to Webinator, I am not sure what is the best way to proceed after having sent the query to my php script. How do I call the search engine from PHP? Can I output the results to PHP in a more practical format for parsing? Is this all possible in principle, or am I missing something? Thanks for all recommendations and pointers!
-Sam