I've found the problem: if display is none when I put the div with the
map, I will never see it.
Now I call the fadeIn() method before create the div with the map: the
effect is the same and everything works.

Speaking with was useful ;)

Bye

On Jan 11, 10:47 am, lorenzo83 <[email protected]> wrote:
> 1. Yes, width and height of the div containing themapare set in css
> (this div is a child of a div parent)
> 2. DOM is ready and user can see themap, user click on a button (to
> see anothermap) the div (parent) fade out (display:none) and starts
> the AJAX call that import a new HTML (with themapinto the div with
> the correct sizes in CSS) to be introduced (repleacing the old div
> with themap) in the div (parent), and then the div parent fades in.
> 3. Coords are correct ;)
>
> I can see everything except themapthat is gray (after the AJAX call
> point 2). But if I take the HTML returned (at point 2.) and I paste it
> in a page it works, so, I think, the problem is due to the some
> javascript code.
>
> Sometimes works in IE8...
>
> On Jan 4, 1:52 am, pete <[email protected]> wrote:
>
> > It could be a multitude of problems without source-code. Double check
> > that
> > 1. The div has a height/width at time of load
> > 2. You are not hiding/showing using "display" until the dom is ready
> > 3. If themapis grey, it could be that there is no data, as your lat/
> > long are incorrect - double check these
> > 4. Note, that using visibility:hidden might work better for you than
> > display:none
> > 5. Make sure if you are using display:none, you are not defining this
> > in CSS. Instead define it @ DOM Ready of the page, or inline on the
> > DIV, as javascript sometimes has a hard time overriding CSS attributes
> > from an external file
> > 6. Give us some code...
>
> > On Jan 1, 12:32 am, lorenzo83 <[email protected]> wrote:
>
> > > Hi.
> > > Probably I didn't explain well:
> > > I paste the AJAX response (in HTML) thatdoesn'twork (mapis gray but
> > > other things are ok!) in a new page and the same HTML works (I can see
> > > themap)! So I think it's a problem of css, probably the display:none
> > > that I use to hide the div before the AJAX response is ready. I had a
> > > similar problem with the v2 and I solved setting the sizes of div, but
> > > now?? I saw the references and I try:
>
> > > var size = new google.maps.Size(width, height, 'px', 'px');
>
> > > but this not works.
>
> > > On Dec 31, 7:20 am, Peter Dang <[email protected]> wrote:
>
> > > > Hi,
>
> > > > I think this problem occur when tha Ajax has an errors so it not success
> > > > (when call ajax), sothat themapnot display, please take care the ajax
> > > > function.
>
> > > > On Wed, Dec 30, 2009 at 11:32 PM, lorenzo83 <[email protected]> 
> > > > wrote:
> > > > > I'm going mad with this problem:
>
> > > > > I'm using google maps api v 3 and I don't know why sometimesmap
> > > > >doesn'tappearin my div...I have to say that the page (with themap)
> > > > > is called with AJAX method and is set as display:none before the call.
> > > > > The HTML returned after this AJAX call is correct, infact if I paste
> > > > > it into a new static page I can see themapcorrectly, so I think is a
> > > > > problem of css/javascript...
>
> > > > > I had a similar problem with the version 2 and I resolved it setting
> > > > > the size (with GSize) during the creation of themap, but know how I
> > > > > can solve this problem???
>
> > > > > --
>
> > > > > You received this message because you are subscribed to the Google 
> > > > > Groups
> > > > > "Google Maps JavaScript API v3" group.
> > > > > To post to this group, send email to
> > > > > [email protected].
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected]<google-maps-js-api-v3%[email protected]>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
> > > > --
>
> > > > Thanks and Best Regards
>
> > > > Peter Dang
> > > > ProfessionalMapteam developer
> > > > ------------------------------------------------------
> > > > Phone : +84 933 933 649
> > > > Axon Active Vietnam
-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.


Reply via email to