/    Sign up×
Community /Pin to ProfileBookmark

Javascript Search – Can see search entries?

Hi,
I used a JavaScript search engine for our company’s intranet site. I used the [URL=http://www.javascriptkit.com/script/script2/jse/index.shtml]JSE Internal Search Engine[/URL] (I can’t use PHP on the server). It works pretty good for me and I like that I can really customize it and control the key words, as the previous search engine which spidered the website, gave lots of unrelated results.

My question is, is there any way I can capture what people are searching for? Is there some javascript code that can somehow create a text file of the search terms? So when they hit the ‘Submit’ button it records what’s in the search field or sends the entry somewhere?

thanks!

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@CrazyMerlinOct 20.2006 — no, afraid javascript has no file access rights at all.

one messy way would be to email yourself their search, and possibly it's results for future optimization plans. Email it in a given format, then set up your email client to transfer all the emails to a certain folder, and have a windows scripting file/small vb app (or similar) run on a given schedule to collect the data from the emails and enter it into a database/flatfile

//erlin!
Copy linkTweet thisAlerts:
@trailerparkboyauthorOct 23.2006 — Yes, I thought of making the submit button send an automatic email to me of what their search term is, and that would work fine for me, since there's not hundreds of people using it.

The problem is with emails via CGI, is those annoying popup warnings you get from Internet Explorer and Microsoft Outlook ("a program is trying to automatically send e-mail on your behalf....."). This may be another topic, but I've heard the only way around those warnings (besides maybe using php) is to use something like [URL=http://www.scriptarchive.com/formmail.html]Matt's FormMail [/URL] script or ASP Form Mail? which I'm not sure if I can figure out how to implement, but I'll take a look at.

Thanks.
×

Success!

Help @trailerparkboy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...