Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Regular Coder
    Join Date
    Mar 2005
    Posts
    735
    Thanks
    4
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Kor View Post
    We do understand. It is possible, but... do you have "700 paged ebook" and no DataBase?
    What do you mean?

    Actually I want to populate the database table so that I can search any word and it would show the result.

  2. #17
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Why wouldn't you write some serverside script or client app that does this. pretty strange you would use JavaScript to read html and send it to the server.

    Use php to grab the page, read the contents with whatever indexing you are doing and than move onto the next.

    I would leave the indexing to a serverside only process and make the future search capability Ajax based.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  3. #18
    Regular Coder
    Join Date
    Mar 2005
    Posts
    735
    Thanks
    4
    Thanked 1 Time in 1 Post
    Quote Originally Posted by A1ien51 View Post
    Why wouldn't you write some serverside script or client app that does this. pretty strange you would use JavaScript to read html and send it to the server.

    Use php to grab the page, read the contents with whatever indexing you are doing and than move onto the next.

    I would leave the indexing to a serverside only process and make the future search capability Ajax based. :)

    Eric
    How about php? How?

  4. #19
    Regular Coder
    Join Date
    Mar 2005
    Posts
    735
    Thanks
    4
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Kor View Post
    Here's a link for the article and php applications:
    http://www.troywolf.com/articles/php/class_http/

    I tested and used that successfully, together with AJAX in one of my sites.
    I want to make the page redirect incrementally every, let's say 5 seconds.
    How would I be able to achieve this?
    Once the number reaches 10 and 100 I have to drop a "0" from "page0000". $i represents the number of page to be changed incrementally.
    PHP Code:
    require_once('class_http.php');
    $h = new http();
    $i=2;
    $link "http://.../new/page0000".$i.".htm";
    if (!
    $h->fetch($link)) {
      echo 
    "<h2>There is a problem with the http request!</h2>";
      echo 
    $h->log;
      exit();
    }
    $result $h->body
    Last edited by gilgalbiblewhee; 04-04-2008 at 02:46 AM.


 
Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •