Hi, First off the Google TOS says you must provide the Google branding somewhere, either in the search box as your noticing, beside it, or near the generated results etc.
With that being said, you can use firebug for firefox and find the css selector for it and modify it or over ride it. Just make sure your rule is after theirs. Alternatively, you can remove their search form and use your own, a bit more work and not as easy as a css hack though ;). I would need to see your code to provide any specific example, but hopefully that provides the info you need :) Cheers! Vision Jinx On Sep 30, 2:54 pm, George <[email protected]> wrote: > Since this proved to be so amazingly helpful before, I thought I'd try > my next question concerning this same custom search box. > > The search box has been working great and I'm happy with that. > However, is there anyway to remove the watermark inside the input > field that says "Google Custom Search"? > > On Aug 12, 1:21 am, Vision Jinx <[email protected]> wrote: > > > Hi, > > > I am so glad to hear that worked for you :) > > > Yes! You will need to add your own CSE ID and API Key (I just used > > Googles for the API playground as a default). Although the API Key is > > no longer required you should still add one so Google has a way to > > contact you if there are any issues or something changes that may > > affect your app. > > > Looks like I missed type="text/javascript" from that script element > > also so I would suggest adding that too. > > > Anyways, glad to hear your good to go now. :D > > > Cheers! > > Vision Jinx > > > On Aug 11, 2:49 pm, George <[email protected]> wrote: > > > > Wow, I can't thank you enough. > > > The last link you posted handled the problem EXACTLY! > > > You are my new hero! > > > > I'm just going to tweak the CSS code and a few other things, but that > > > is EXACTLY what I needed! > > > Thank you!!! > > > > I am also changing my CSE id to the one for my custom search engine, > > > but do I need to change the API key you have in this line? > > > <script src="http://www.google.com/jsapi? > > > key=ABQIAAAA1XbMiDxx_BTCY2_FkPh06RRaGTYH6UMl8mADNa0YKuWNNa8VNxQEerTAUcfkyrr6OwBovxn7TDAH5Q"></ > > > script> > > > > Thanks again and again and again for your diligence. > > > The internet is great because of helpful people like you! > > > > On Aug 11, 8:16 am, Vision Jinx <[email protected]> wrote: > > > > > Hi, > > > > > Sure, I guess you can probably pass thesearchparams to anotherpage > > > > and grab the values that way. > > > > > Sorry, I am just trying to figure out what exactly your trying to do > > > > but I must be honest that I am not fully sure I am getting it yet > > > > (sorry). > > > > > You can maybe look at this example though (is this what your looking > > > > for?) > > > > >http://savedbythegoog.appspot.com/?id=ag5zYXZlZGJ5dGhlZ29vZ3ISCxIJU2F... > > > > > Maybe its just me but I personally prefer the RESTful api a lot more > > > > as it deals with a lot less script (between the jsapi andsearch > > > > scripts etc is way too much un-needed code and the css also etc) and > > > > uses a far less clumsy namespace (since you create your own) and gives > > > > you full control over what and how you want things to work. It really > > > > is not that hard to use, just make a function to fire off the query > > > > you want by dynamically writing a script tag with the src param being > > > > the googlesearchurl with the query you want then when it loads it > > > > calls your callback function (your callback param) where you parse the > > > > JSON/JSONPresults. Once you parse and output theresultsyou can > > > > handle things very easily from there if you need to call other > > > > functions or do whatever beforedisplayingtheresults. Plus no need > > > > to be fighting with Googles CSS rules all the time either. (You can > > > > also use PHP CURL too if you prefer that way also) I could whip of a > > > > basic starter app for it if you need help getting going with it :) But > > > > have a look at the sample I posted and see if that does what your > > > > looking for. > > > > > Anyways, hope that helps, > > > > > Cheers! > > > > Vision Jinx > > > > > On Aug 10, 6:42 am, George <[email protected]> wrote: > > > > > > Thanks for all of your help so far. > > > > > Instead of delving further down that road, is it just easier to tell > > > > > thesearchform to display theresultsinto a newpage? > > > > > Where is the function/code for that? > > > > > > Thanks again for being so helpful! > > > > > > On Aug 7, 6:42 pm, Vision Jinx <[email protected]> wrote: > > > > > > > Hi, > > > > > > > There are ways to do this with a bit of hackery but what may be the > > > > > > best solution and provide the most flexibility for you would be to > > > > > > just create your own controls using the JSONP aspects of the API. > > > > > > >http://code.google.com/apis/ajaxsearch/documentation/#fonje > > > > > > > If you need help with it I have done enough apps with it I can > > > > > > probably help you out with what you need. > > > > > > > On Aug 7, 2:15 pm, George <[email protected]> wrote: > > > > > > > > Hi, thank you very much for the response. > > > > > > > However, I think the roadblock, is how to have thissamecode be > > > > > > > placed in the <body> of the document. > > > > > > > > I have a masterpagethat calls various other included pages/blocks > > > > > > > of > > > > > > > HTML/etc. > > > > > > > I want to have this googlesearchcode inside one of the includes, > > > > > > > so > > > > > > > it will be rendered in the body of thepage. > > > > > > > Is there anyway to still do this in this manner? > > > > > > > > Also, thesearchresultsarea needs to be styled differently than the > > > > > > >searchform area, and overlay all of the other content on thepage > > > > > > > when it is shown. (Sorry for being so unclear the first post...) > > > > > > > So, thesearchresultsarea is hidden when the user first brings up > > > > > > > thepage. > > > > > > > But when asearchis conducted, I put theresultsin thesearch > > > > > > >resultsarea, and show it via javascript. > > > > > > > > If you look at my original code it does all of this, but it has > > > > > > > the > > > > > > >problemof not being able to hide and show thesearchresultsarea > > > > > > > until I'm ready. > > > > > > > > On Aug 7, 12:18 am, Vision Jinx <[email protected]> wrote: > > > > > > > > > Hi, > > > > > > > > > Try this > > > > > > > > >http://savedbythegoog.appspot.com/?id=ag5zYXZlZGJ5dGhlZ29vZ3ISCxIJU2F... > > > > > > > > > See if that does what you want. > > > > > > > > > Cheers! > > > > > > > > Vision Jinx > > > > > > > > > On Aug 6, 2:56 pm, George <[email protected]> wrote: > > > > > > > > > > Okay, another newbie here. I just need a push in the right > > > > > > > > > direction. > > > > > > > > > I've searched the group and examples and documentation, but > > > > > > > > > there's > > > > > > > > > obviously still some holes in my understanding. > > > > > > > > > > What I want to do is this: > > > > > > > > > - have asearchbox on the homepageof our school's website > > > > > > > > > - be able to style thesearchbox andsearchbutton to match the > > > > > > > > > already designed style > > > > > > > > > - when the user enters data into thesearchbox and clicks the > > > > > > > > > "Search" button, have theresultsonlysearchpages in our domain > > > > > > > > > > What I have done: > > > > > > > > > - created acustomsearchfor our domain > > > > > > > > > - monkeyed around with the following > > > > > > > > > code...http://paste-it.net/public/e14f0fb/ > > > > > > > > > > (I pasted it using the service suggested in the Posting > > > > > > > > > Guidelines...) > > > > > > > > > > In the code, I'm trying to create the newsearchbox, make sure > > > > > > > > > the > > > > > > > > >resultsare displayed in the 'searchResults' div (which is > > > > > > > > >initially > > > > > > > > > hidden in the stylesheet), and then have the searchResults > > > > > > > > > div appear > > > > > > > > > when a user conducts asearch. > > > > > > > > > > I don't need thesearchto execute when thepageis first loaded, > > > > > > > > > because thesearchbox just sits in the top right of all my > > > > > > > > > pages. So, > > > > > > > > > I need to keep the searchResults div hidden until someone > > > > > > > > > actually > > > > > > > > > executes asearch. > > > > > > > > > > What appears to be happening is when thepageis first loaded, > > > > > > > > > the > > > > > > > > > searchResults div is already visible, so I must need to break > > > > > > > > > out the > > > > > > > > > code a bit more. > > > > > > > > > > Couple more questions: > > > > > > > > > 1) How do I NOT show the tabs view if I am using > > > > > > > > > theCustomSearch? > > > > > > > > > (It displays one tab that is the name of > > > > > > > > > myCustomSearchEngine.) > > > > > > > > > > 2) How do I NOT get theresultsto open in newpage? (The anchor > > > > > > > > > tags > > > > > > > > > have a target="_blank" on them.) > > > > > > > > > > Thank you for any and all insight! > > > > > > > > > - George --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en -~----------~----~----~----~------~----~------~--~---
