PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Javascript search box and limits

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Javascript search box and limits

    Hi


    1.
    There is search box with choice of matching words in file search.html.
    I would like to add search box in main page at main.html with
    Code:
    <form method="GET" action="search.html">
    .
    When the result appear in search.html, I would like to have link to BACK to my main page main.html at search.html, and I don't want the search box with choice of matching words appear in search.html. I just want link to back to main.html to at file search.html.
    I hope you get what I mean.

    How to make it happen?

    2.
    Let say that I have 5000 html webpages. I select zoom to scan title and descriptions only (not the contains). Maybe included keywords too. May I know, how many bytes of file that search engine which based on javascript could store and scan?


    Waiting for response.

    Thanks[/code]

  • #2
    Q1) There are details of how to add a search box on your home page here,
    http://www.wrensoft.com/zoom/support...tml#searchform

    You can edit the search.html file to include your own HTML, including links to other pages. Is this what you mean?

    Further details about customising the search result page are here,
    http://www.wrensoft.com/zoom/support/css.html

    Q2) Most browsers have a limit to how much RAM can be used by Javascript. For example with Internet Explorer V6 it is about 10MB. The limit and the behaviour when this limit is exceeded varies from browser to browser. We can't tell you the size your index files will be without seeing the documents being indexed. But with 5000 files you might exceed the limit.

    As a general comment, as soon as you are indexing more than a thousand pages you should consider using the ASP, PHP or CGI options instead of Javascript.

    Javascript is slow and rather limited as a language. See our benchmarks.
    http://www.wrensoft.com/zoom/benchmarks.html

    -----
    David

    Comment

    Working...
    X