Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Search Bar In Only HTML!?
Old 03-27-2009, 09:38 PM Search Bar In Only HTML!?
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
While I was browsing Dynamic Drive, I found a find in page script. I wonder if it is possible to adapt that code to instead of searching the one page, to search the whole website!

This would be very useful for people like me who don't have access to PHP on their hosts.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-27-2009, 11:42 PM Re: Search Bar In Only HTML!?
sam_khrap's Avatar
Novice Talker

Posts: 8
Trades: 0
it is kind of impossible to make it search the whole website . If you want it to search the whole website then your content need to be a database and PHP .
sam_khrap is offline
Reply With Quote
View Public Profile
 
Old 03-28-2009, 07:59 AM Re: Search Bar In Only HTML!?
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
Oh, thanks though.

I was just wondering if it is possible to make it search the <meta> tags at the top of the document, so at least it could take you to the right page.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 03-28-2009, 08:01 AM Re: Search Bar In Only HTML!?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
I wonder if it is possible to adapt that code to instead of searching the one page, to search the whole website!
As Sam told you, you cannot do that in javascript alone.

Javascript is a local side language, that works into the web page currently displayed.
It can access other pages (via xmlHttpRequests, or ajax if you prefer) and parse them, but you'll have to give the script a list of every url's it have to look into.
And it would take a pretty long time, as it would be the same than a user accessing all the page of the site in a quick sequence.
Very resources unfriendly...

No, the best way is (if your content is in a database) to setup the search via the database.
Or by using something like a google search box restricted to your site.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 04-02-2009, 12:14 AM Re: Search Bar In Only HTML!?
Junior Talker

Posts: 3
Name: colleentyler
Trades: 0
Oh, Thanks for your information guys.....
__________________

Please login or register to view this content. Registration is FREE
colleentyler is offline
Reply With Quote
View Public Profile
 
Old 04-06-2009, 12:11 AM Re: Search Bar In Only HTML!?
Junior Talker

Posts: 2
Trades: 0
impossible to make it search the whole website
__________________

Please login or register to view this content. Registration is FREE
newredhat is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Search Bar In Only HTML!?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33927 seconds with 12 queries