SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2000
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Greetings:

    I know if you hit <ctrl> F you can search for something on a page. I was wondering if you could script that into a button or link.(i.e. <a href="#" ??????>search this page</a>

    Any ideas?

    Thanks

  2. #2
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could create an accesskey in your hyperlink that calls a user-defined Javascript function. The function would use regular expressions to search for some variable passed from the function trigger.

    It seems like a lot of work with no point.
    Westmich
    Smart Web Solutions for Smart Clients
    http://www.mindscapecreative.com

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2000
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a lot of technophobes. Is there a better way to create a search for a page with mostly just text?

  4. #4
    SitePoint Enthusiast
    Join Date
    Nov 2000
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi tscpa1,

    How about something like this.

    http://www.dynamicdrive.com/dynamicindex11/findpage.htm

    hope that does it
    brew

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2001
    Location
    Herndon, VA
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Explain what your page looks like, and why you would want to search for a word, then maybe more people could help you.

    From what you said so far I guess you could probably do something with javascript. I don't think that you could just do it with an <a href=....
    --
    Coolrandomfree- Download stupid movies and do stupid stuff!
    Coolrandomfree Message Boards

  6. #6
    SitePoint Enthusiast
    Join Date
    Dec 2000
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    More explanation:

    We are looking at different solutions for a membership directory.

    They (bosses) want it to be searchable, but the database is pretty big (7,500 +) and it would prob. take awhile to search. We are VERY Low-Tech.. I use FrontPage ASP.

    One thought i had was to put a lot of the information in a text-only format. Since my membership is in the dark ages (I get calls all the time from people who don't know where to type a URL- they think it's the same as doing a search), I can not count on them actually figuring out <ctrl> F.

    Any & all suggestions would be nice.

    Thanks

  7. #7
    SitePoint Enthusiast
    Join Date
    Dec 2000
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BrewSkee's Suggestion is EXACTLY what I was looking for. Alternate ideas are still welcome, though.


  8. #8
    Serial Publisher silver trophy aspen's Avatar
    Join Date
    Aug 1999
    Location
    East Lansing, MI USA
    Posts
    12,939
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.sitepointforums.com/showt...threadid=14765

    read this.. Same problem, variety of solutions created.

    Chris Beasley - I publish content and ecommerce sites.
    Featured Article: Free Comprehensive SEO Guide
    My Guide to Building a Successful Website
    My Blog|My Webmaster Forums


Bookmarks

Posting Permissions

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