Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Search Engine:
Searching Keywords within a webpage

 

 


sag47
New User

Nov 16, 2005, 5:49 AM

Post #1 of 7 (3750 views)
Shortcut
Searching Keywords within a webpage Can't Post

Hi,
Is there any way to search just one webpage without searching a whole bunch. I want a javascript search tool to look for keywords in just a specific field in an HTML doc.
Can you Help me?


ross
Staff / Moderator


Nov 16, 2005, 2:26 PM

Post #2 of 7 (3748 views)
Shortcut
Re: [sag47] Searching Keywords within a webpage [In reply to] Can't Post

Hi there.

Thanks for posting and welcome to the board!

I am a little lost here. Where you trying to setup a search on one page with our Search Engine software, or were you trying to set this up entirely with your JavaScript?

With our Search Engine it would be fairly easy to set something like this up. You can have it search specific files in a folder if you like.

If you could give me a few more details about how you have things setup and which of our programs of ours you’re using, I can see what type of options there are.

I look forward to hearing from you Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




sag47
New User

Nov 16, 2005, 8:38 PM

Post #3 of 7 (3742 views)
Shortcut
Re: [ross] Searching Keywords within a webpage [In reply to] Can't Post

I'm looking to recreate the Ctrl+F function of the browser. Except I want to use javascript to do it.

For example, one would type a keyword into a field on a form. After that they simply click a button labeled "Search". It will search for the keyword typed on other fields in that form.
I've attached and HTML (.htm) document with an empty function. There are comments in it explaining what i'm aiming for.

Thanks again!
SAM
Attachments: Search_Sample.htm (0.84 KB)


ross
Staff / Moderator


Nov 17, 2005, 11:55 AM

Post #4 of 7 (3728 views)
Shortcut
Re: [sag47] Searching Keywords within a webpage [In reply to] Can't Post

Hi Sam.

Thanks for the update!

I like your idea, however, the kind of coding needed goes beyond my level of expertise, so I am not going to be able to help out here.

If you are interested though, our Search Engine tool does this already and it only costs $49.00. Basically, it does keyword searches in any static text file that you have on your server. It’s really customizable too so you can refine it to only search the what you want it to.

Perhaps though, someone else in the community would like to step in and help out here.

Keep me up to date though Sam. If there is anything else I can do to help, let me know Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




sag47
New User

Nov 17, 2005, 3:38 PM

Post #5 of 7 (3722 views)
Shortcut
Re: [ross] Searching Keywords within a webpage [In reply to] Can't Post

Hey ross,
It's Sam. I've found how to do it by searching the Microsoft Data Network (MSDN). The method is ".findText(sText)". I was looking at the different commands for ".execCommand(sCommand)" on MSDN because I figured it was something like ".execCommand('Search')" but it wasn't. I came across .findText on accident. I read the properties for a while and how it was used and devised my own little search tool from it. Right now it only works with IE but I have plans on making it work with Netscape as well, and possibly Mozilla Firefox. See the attached file "Search_Sample2.htm" and view the source to see how I did it. When I get it to work with other browsers I will paste more HTML files revealing the code!
Oh yea, so far it just searches the whole page, I'm going to tweak it to be able to search just certain form elements.

Thanks again!
SAM


(This post was edited by sag47 on Nov 17, 2005, 3:41 PM)
Attachments: Search_Sample2.htm (1.11 KB)


sag47
New User

Nov 17, 2005, 3:56 PM

Post #6 of 7 (3718 views)
Shortcut
Re: [ross] Searching Keywords within a webpage [In reply to] Can't Post

I've gotta go to class now but here's a quick post. It now searches only the text area of the form. Open Search_Sample3.htm

Later,
SAM


(This post was edited by sag47 on Nov 17, 2005, 6:43 PM)
Attachments: Search_Sample3.htm (1.53 KB)


MikeB
Staff / Moderator


Nov 18, 2005, 4:19 PM

Post #7 of 7 (3683 views)
Shortcut
Re: [sag47] Searching Keywords within a webpage [In reply to] Can't Post

Hi SAM,

Thanks for keeping us updated! Smile

I'm glad to see you managed to find something that will work for you on your website with the ability to search the content on your page.

If you have any other questions or comments you can feel free to let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4