Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Simple Search ~, In HTML ?

views
     
TStweetysamm
post Feb 20 2006, 06:42 PM, updated 20y ago

Casual
***
Junior Member
394 posts

Joined: Oct 2004


Im sorry if my question repeated. I got ONE webpage with PURE HTML code ONLY. I need to put in a 'simple' search engine (like the search function for a word/phrase in words document) in the webpage.

Can I know how can I do that? Anyone got any references? I try to search on Google but most of it is using ASP, ASP.net, VB.net and other server scripting language. I need a VERY SIMPLE script to be able to run in ONE webpage.

Thanks for advice smile.gif
silverhawk
post Feb 20 2006, 06:45 PM

Eyes on Target
Group Icon
Elite
4,956 posts

Joined: Jan 2003


put this on your site

"To search this page, press ctrl+F" smile.gif
KLKS
post Feb 20 2006, 07:01 PM

Getting Started
**
Junior Member
292 posts

Joined: Jan 2003


lolz nice joke but on a serious note, might wanna look into using javascript if the search is on the same page
silverhawk
post Feb 20 2006, 07:52 PM

Eyes on Target
Group Icon
Elite
4,956 posts

Joined: Jan 2003


I partially meant it as a joke, and still was partially serious.

nxfx
post Feb 21 2006, 09:49 AM

Enthusiast
*****
Senior Member
979 posts

Joined: Jan 2003


I think silverhawk is correct. Why create a script if the browser can search it for you. But you could google for javascript search engine.
TStweetysamm
post Feb 21 2006, 10:43 AM

Casual
***
Junior Member
394 posts

Joined: Oct 2004


Haha biggrin.gif Thanks silverhawk for your suggestion on this (quite funny also tongue.gif) Actually this is something like a 'help' page for the PDA user, therefore in PDA hard to 'press CTRL+F' smile.gif

Then now you understand why I need this? Btw I did google for javscript for this 'search function' but mostly is for a complex search engine which display like goggle and yahoo which not suitable for me. I need the search function like 'CTRL+F' tongue.gif

Thanks smile.gif
shinchan^^
post Feb 21 2006, 10:46 AM

K66
*********
All Stars
21,256 posts

Joined: Jan 2003
From: Pekopon


brother

here u are

http://www.javascripter.net/faq/searchin.htm
TStweetysamm
post Feb 21 2006, 11:24 AM

Casual
***
Junior Member
394 posts

Joined: Oct 2004


Thanks brother !!! It works but it doesnt work with Opera 8.25? Can I know why? Im sorry for this question as Im VERY noob in coding (just start last week) tongue.gif

Thanks smile.gif
shinchan^^
post Feb 21 2006, 11:36 AM

K66
*********
All Stars
21,256 posts

Joined: Jan 2003
From: Pekopon


because it no caters opera in the function wahahaha
TStweetysamm
post Feb 21 2006, 01:57 PM

Casual
***
Junior Member
394 posts

Joined: Oct 2004


QUOTE(shinchan^^ @ Feb 21 2006, 11:36 AM)
because it no caters opera in the function wahahaha
*
Oic.. haha smile.gif Anyway thanks.. smile.gif
silverhawk
post Feb 21 2006, 02:18 PM

Eyes on Target
Group Icon
Elite
4,956 posts

Joined: Jan 2003


I don't own a PDA, so excuse my ignorance.
But don't browsers in PDA also have their own in built function?


 

Change to:
| Lo-Fi Version
0.0158sec    1.08    5 queries    GZIP Disabled
Time is now: 24th December 2025 - 05:31 PM