Hi, Sure, I guess you can probably pass the search params to another page 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=ag5zYXZlZGJ5dGhlZ29vZ3ISCxIJU2F2ZWRDb2RlGMK7yAEM 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 and search 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 google search url with the query you want then when it loads it calls your callback function (your callback param) where you parse the JSON/JSONP results. Once you parse and output the results you can handle things very easily from there if you need to call other functions or do whatever before displaying the results. 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 > the search form to display the results into a new page? > 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 this same code be > > > placed in the <body> of the document. > > > > I have a master page that calls various other included pages/blocks of > > > HTML/etc. > > > I want to have this google search code inside one of the includes, so > > > it will be rendered in the body of the page. > > > Is there anyway to still do this in this manner? > > > > Also, the search results area needs to be styled differently than the > > > search form area, and overlay all of the other content on the page > > > when it is shown. (Sorry for being so unclear the first post...) > > > So, the search results area is hidden when the user first brings up > > > the page. > > > But when a search is conducted, I put the results in the search > > > results area, and show it via javascript. > > > > If you look at my original code it does all of this, but it has the > > > problem of not being able to hide and show the search results area > > > 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 a search box on the home page of our school's website > > > > > - be able to style the search box and search button to match the > > > > > already designed style > > > > > - when the user enters data into the search box and clicks the > > > > > "Search" button, have the results only search pages in our domain > > > > > > What I have done: > > > > > - created a custom search for 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 new search box, make sure the > > > > > results are displayed in the 'searchResults' div (which is initially > > > > > hidden in the stylesheet), and then have the searchResults div appear > > > > > when a user conducts a search. > > > > > > I don't need the search to execute when the page is first loaded, > > > > > because the search box just sits in the top right of all my pages. So, > > > > > I need to keep the searchResults div hidden until someone actually > > > > > executes a search. > > > > > > What appears to be happening is when the page is 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 the Custom Search? > > > > > (It displays one tab that is the name of my Custom Search Engine.) > > > > > > 2) How do I NOT get the results to open in new page? (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 -~----------~----~----~----~------~----~------~--~---
