Hey there!

Yeah, that's pretty obvious - and I already use a "plugin" from
http://olbertz.de/blog/?p=jquery_googlemaps.

The only problem is - as I said- that I am being redirected to the
script...

On 18 Jun., 22:25, Hamish Campbell <[EMAIL PROTECTED]> wrote:
> It looks like you're getting the script ok, but there is other stuff
> you need to do to create a google map. There are a couple of good
> jQuery googlemap plugins (eg, jMaps)
>
> So you'd do something like this:
>
> $("#togglegmaps").toggle(
>     function(){
>         $.getScript("http://maps.google.com/maps?
> file=api&v=2&kexQRunjaLdXZDSuOjYlX_LT10f8SsQ",
>             function(){
>                 $("#gmapsdiv").gmap(); // or whatever the method is to
> create a google map from a div
>                 $("#gmapsdiv").fadeIn("slow");
>             })
>         },
>     function(){$(".gmapsdiv").fadeOut("slow");
>
> });
>
> Note that I'd avoid the fade ins and outs though - googlemaps still
> needs to load all sorts of images and pieces before it's ready to be
> shown. It might be better just to .show() it.
>
> On Jun 19, 1:47 am, lamy <[EMAIL PROTECTED]> wrote:
>
> > Hey guys!
> > I just startet using jQuery a couple days ago - it totally rocks!
>
> > Now, I want to give people who write in my blog the opportunity to add
> > some google maps stuff.
> > So I have a <div> - element which can be shown or hidden by pressing a
> > button. I want google maps to load ONLY when the button is being
> > clicked. I tried $.getscript(), but apparently he tries to redirect
> > me. What am I doing wrong?
>
> > Help would very much be appreciated! :)
>
> > This is the code:http://pastebin.org/44444
>
> > What's wrong about that?
>
> > Cheers guys.

Reply via email to