Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-26-2008, 02:55 AM   PM User | #16
gilgalbiblewhee
Regular Coder

 
Join Date: Mar 2005
Posts: 735
Thanks: 4
Thanked 1 Time in 1 Post
gilgalbiblewhee is an unknown quantity at this point
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.
gilgalbiblewhee is offline   Reply With Quote
Old 03-26-2008, 03:34 PM   PM User | #17
A1ien51
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
A1ien51 will become famous soon enough
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]
A1ien51 is offline   Reply With Quote
Old 03-26-2008, 05:29 PM   PM User | #18
gilgalbiblewhee
Regular Coder

 
Join Date: Mar 2005
Posts: 735
Thanks: 4
Thanked 1 Time in 1 Post
gilgalbiblewhee is an unknown quantity at this point
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?
gilgalbiblewhee is offline   Reply With Quote
Old 04-03-2008, 06:29 AM   PM User | #19
gilgalbiblewhee
Regular Coder

 
Join Date: Mar 2005
Posts: 735
Thanks: 4
Thanked 1 Time in 1 Post
gilgalbiblewhee is an unknown quantity at this point
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 01:46 AM..
gilgalbiblewhee is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:55 PM.


Advertisement
Log in to turn off these ads.