Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

I would like to make a (html) form which enables me to do a custom Google search query. If I enter for example 10 keywords in a text area (every line contains a word), I should see how much "Estimated results" there are for every keyword.

asked 19 May '10, 10:36

Hendrik's gravatar image

Hendrik
11
accept rate: 0%

closed 04 Jul '11, 23:29

rfelsburg's gravatar image

rfelsburg ♦
6061618

1

This is not associated to Linux. Try superuser.com or stackoverflow.com.

(19 May '10, 17:34) guerda

Please accept an answer, or provide more details on what you're looking for, or if you've moved your question.

(14 Jun '11, 11:43) rfelsburg ♦

The question has been closed for the following reason "Question is off-topic or not relevant. Referred to Superuser.com/StackOverflow.com" by rfelsburg 04 Jul '11, 23:29




I am afraid that just using plain old HTML would not allow you to perform the functionality you want. You would have to use some kind of server-side scripting language such as PHP, for example, or AJAX through using JavaScript.

Going into the specifics of using these languages are way outside the scope of this answer so I'd recommend you spend some time learning from the vast amount of resources on the web available for that. Try using Google ;) for searching for some tutorials to get this done. Also, take a look at the JQuery javascript framework as they make implementing AJAX style functionality a lot easier.

link

answered 19 May '10, 10:47

Gareth's gravatar image

Gareth
231115
accept rate: 62%

link

answered 19 May '10, 11:00

maszynista's gravatar image

maszynista
2513
accept rate: 33%

I understand that I have to use that API.

http://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GSearch

I see that I have to use google.search.Search and then: .estimatedResultCount - supplies the estimated number of results that match the current query. Note that this value will not necessarily match the similar value thats visible on the Google.com search properties.

But how do I use that?

(19 May '10, 11:07) Hendrik

see Code Playground for examples

(19 May '10, 11:22) maszynista
1

I meant http://code.google.com/apis/ajax/playground/

(19 May '10, 11:23) maszynista

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4
×2
×2
×1
×1

Asked: 19 May '10, 10:36

Seen: 1,826 times

Last updated: 04 Jul '11, 23:29

powered by OSQA