473,466 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Custom Google search bar

123 New Member
Hi..

Actually I have Glossary pages in my website for all A to Z terms
I have created one google custom search bar. The problem is , The google search engine always points the A page(in which all the terms start from A are included) rather than just pointing to the term itself..

e.g -- I want to search for absorption than the search bar will show the pages with all the A terms

-- I have created directory A to Z to store term's PHP pages..

I have tried out all the possible things...put it on WEB MASTER too..
can any one tell me which approach should i follow to avoid this..
Apr 16 '08 #1
5 2492
TheServant
1,168 Recognized Expert Top Contributor
Gonna have to see your code to understand it more. We are not going to make your code for you, that is too much work. however, we can correct your code, or suggest better ways to do that.
Apr 16 '08 #2
ajd335
123 New Member
Hi..
Hers the code from GOOgle..
I have given the links of my glossary pages when i made that.[php]<!-- Google CSE Search Box Begins -->
<form action = "http://www.google.com/cse" id="cse-seacrh-box">
<input type="hidden" name="cx" value="011935885206064745261:1pmme9d_2zw" />
<input type="text" name="q" size="25" />
<input type="submit" name="sa" value="Search" />
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>

<!-- google code ends -->

/// above code in the page where i have put my search bar

<!-- gOogle Search Result Snippet Begins -->
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 600;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>

<!-- Google Search Result Snippet Ends -->[/php]
/// above code is in the page where i wanted my results to be appear
Apr 16 '08 #3
ronverdonk
4,258 Recognized Expert Specialist
WARNING:
Please enclose your posted code in [code] tags (See How to Ask a Question).

This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

Please use [code] tags in future.

MODERATOR
Apr 16 '08 #4
ajd335
123 New Member
WARNING:
Please enclose your posted code in [code] tags (See How to Ask a Question).

This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

Please use [code] tags in future.

MODERATOR
Oh! my mistake..M new to that so...I'll keep that in mind..
Apr 16 '08 #5
ronverdonk
4,258 Recognized Expert Specialist
I don't understand this. What has this problem to do with PHP? All I see is HTML and JavaScript code! So what is this doing in the PHP forum?

Ronald
Apr 16 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Steve | last post by:
All -- This occasionally happens, and there's no set pattern on why this is... perhaps it happens a few times every few months or so. I have a custom ATL COM object that handles data from...
6
by: Stanley | last post by:
Hi, I'm using FFTW library to do my FFT calculation. My sample size is so large to get the resolution I want ( >10^7 samples). It's time and memory consuming. Since I'm just interested in the...
12
by: Pol Bawin | last post by:
Hi All, Did somebody already define attributes for numerical properties to define value : minima, maxima, a number of decimal, ...? This information would be useful to unify syntax Polo
1
by: Bret Pehrson | last post by:
I've converted a non-trivial C++ library to managed, and get the following unhelpful linker error: Assignment.obj : error LNK2022: metadata operation failed (80131195) : Custom attributes are...
1
by: centur | last post by:
Hello. I created simple asp.net application to search message history over Office Live Communicator conversations. I complete quite all job but stick with one thing - I have autosuggest box...
0
by: robert.hundt | last post by:
Hi, I created a Google Custom Search Engine for searching on: "Software / Compilers / Optimization" This is basically a regular full Google search giving preference to certain sites. Of...
3
by: Sunfire | last post by:
I need to use a custom database for all of the user membership and rolls. How do you do this?
1
by: scrammit | last post by:
I've created an app using the webbrowser control in .net. The app works fine. Here is what I an having trouble with. I set my app as the default web browser, but internet shortcuts don't...
1
by: ITistic | last post by:
I am in the planning stages of a new web application. One of the requirements for this application is to provide a Google Calendar type interface to show important events which will be pulled from...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.