PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

How to search dynamic result from database / ajax

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to search dynamic result from database / ajax

    I am fresh in using Zoom. I would like to ask how to implement these.

    I have a page, named index.php. This page would call a PHP script(getResult.php) by AJAX and the PHP script will get result from database and then echo back to index.php

    I tried to add a new "Start spider from this URL" as http://www.mysite.com/getResult.php. Luckily it can search the wanted item, but the link is wrong. The correct link is hide in the javascript of index.php

    It should be: javascript:getResult(myID=2);
    but not http://www.mysite.com/getResult.php

    Hope my question is clear enough

  • #2
    All Javascript (and AJAX is just Javascript) is executed client side. The Javascript is normally executed in response to a user action. e.g. clicking on a button or a navigation menu.

    So Zoom doesn't see any links or actions that result from the execution of Javascript, because the Javascript never gets executed.

    It is well documented that pretty much all AJAX is unfriendly to pretty much all search engines.

    If you want to build web sites that can be indexed by search engines you have to create a 2nd version of the site, one with the usage of AJAX for the human visitor and one for web spiders (like Zoom) that will need the complete HTML/text of the page.

    To index a site that is database driven (sans AJAX) see this FAQ question.
    Q. How can I use Zoom to index my site stored in a database (eg. SQL, Access, etc.)?

    Comment

    Working...
    X