473,785 Members | 2,851 Online
Bytes | Software Development & Data Engineering Community
+ 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 2512
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="01193588 5206064745261:1 pmme9d_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 googleSearchIfr ameName = "cse-search-results";
var googleSearchFor mName = "cse-search-box";
var googleSearchFra meWidth = 600;
var googleSearchDom ain = "www.google.com ";
var googleSearchPat h = "/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
9294
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 multiple pages and sites on my server. Occasionally, I'll get the following errors: ASP_0241|CreateObject_Exception|-|ASP_0241|CreateObject_Exception|42|ASP_0177_:_c0000005|Server.CreateObject_Failed 500
6
3936
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 first 1000 or 10000 points in the fequency domain. So custom functions will be so useful to me and I can only calculate the first some points I want. Here comes the problem. I found no C source code in the FFTW package
12
5805
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
2149
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 not consistent: (0x0c0001a5). Display.obj : error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c000108). The help for LNK2022 is completely useless:
1
4974
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 (using async callback request aka XmlHttp in other browsers) implemented on my custom tab ( read: on my asp.net page, which added to communicator tabs) - it's very usefull during search for communicator users. I added javascript event handlers on...
0
1305
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 course I added technical sites such as IEEE, ACM, the universities, Rice, Stanford, Intel, Microsoft, HP, this site and others. The search results are indeed much more specific than the
3
1973
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
1120
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 work. for example, if a desktop shortcut to http://google.com is executed, my app loads but does not goto google.
1
6360
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 the application's internal database, as well as provide a means for users to create, edit, and delete their own custom events (including recurring events). I have briefly looked into integrating Google Calendar with this application. I've run...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10329
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10152
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10092
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8974
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7500
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5381
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.