Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Google Search Using JavaScript  RSS feed

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi All,
In my website I want to put one simple TextBox, whatever the key word entered by the user, will be searched in Google and the results will be shown on my Website.

Please help me out!
Thanks!
 
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For Google on your site, Google:
google search box on my website
 
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Using response.sendRedirect() you can send the request to any web site out of your web application. But this should be done from your servlet or action class.
If you want to use java script, use



 
Sanket L Shah
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

chets patel wrote:
Using response.sendRedirect() you can send the request to any web site out of your web application. But this should be done from your servlet or action class.
If you want to use java script, use



Hi Chats,
I think you have misunderstood the question.
I want the result of google serarch on my Website.
Using window.location it will jump to that location. I mean it will go to given URL.
Same with response.sendRedirect() , It will also redirect to some other page.

Thanks!
 
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google Search API
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!