I keep reading the documentation and I just can't quite figure out how
to display all 64 results. So far, results will only go up to page 4
until I have to click "more results" and the maximum results I've
gotten have been 32. What is it that I missed in the developer's
guide?

On Jul 24, 3:12 pm, Rossko <[email protected]> wrote:
> > What I meant was, the input field where you type the keyword you would
> > like to search. I read the documentation but still had trouble doing
> > so. I was able to put the search box in a separate div, but the search
> > results appeared in that same div. What I want to do is have the
> > search field in one div, and the results in a separate div. Is this
> > possible?
>
> Just do it.
>
> Reading your code , these lines
>       // Draw the control
>       searchControl.draw(coordinates);
>       searchControl.draw(controlContainer);
> does exactly what the comment says.  I don't know why you draw the
> search control twice, in two different places, but you do.
> If you only want it once, take one of those lines out.
>
> 'coordinates' and 'controlContainer' are javascript objects that
> should point at some <div> or other in your document.
> So, read backwards to find out just what they've been set to, before
> they get used here.
>
> Here's one of them -
>      var coordinates = document.createElement('div'); // build the
> control div
> it's a dynamic creation of a div - exactly what the comment says.
> As it's made here, it has no particular place in the document.
> So we need to read on a bit to see exactly where it gets inserted into
> the document.
>
>    contentDiv3.appendChild(coordinates);
> Right, so that dangling 'coordinates' div got inserted into the
> document inside something else referenced by 'contentDiv3'.
> Now we need to go backwards again to find out what that is, in turn.
>
>     var contentDiv3 = document.getElementById("latlong");
> There it be, I'm not explaining that.  Enough to say, if we look in
> the HTML part of the page, there's <div id="latlong"> in the fourth
> table cell.
>
> So if you don't what that particular copy of the search control drawn
> there, don't draw it there.
>
>  ---
>
> Repeat the exercise yourself to find out where 'controlContainer' is
> pointing.
>
> ---
>
> I don't know why it's that complicated, it doesn't need to be, but
> it's your script.
> This'll work -
>    searchControl.draw(document.getElementById("anyOldDiv"));
> if you have
>   <div id="anyOldDiv"></div>
> somewhere in your HTML.
>
> This is shown in the documentation already pointed 
> outhttp://code.google.com/apis/ajaxsearch/documentation/#The_Hello_World...
>
> This is nothing to do with the maps API
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to