On Oct 26, 7:12 am, Ruttstar <[email protected]> wrote:
> Hi Larry:
>
> Don't know why the red isnt showing, its the function:
Because it is the groups interface.
>
> document.getElementById("change").onclick = function()
> {
> alert(markers.length);
> for( i=0;i<markers.length;i++)
> {
> markers[i].setVisible(map.markers[i].type == 'Restricted');
>
>
>
> }
> alert("Success");
> }
> }
>
> Dont know why link didnt show either:
http://www.s218287072.websitehome.co.uk/sample.php
Because it is the groups interface.
I get obvious javascript errors on that link.
Both your map and markers variables are local to your load function.
They need to be global to be accessible to javascript run from html.
-- Larry
>
> On Oct 26, 2:49 pm, "[email protected]" <[email protected]>
> wrote:
>
>
>
> > On Oct 26, 6:40 am, Paul Rutt <[email protected]> wrote:
>
> > > Hi Larry,
>
> > > Don't know what you mean with regards to 'mangled', have no idea
> > > what debugger your using and the text is in red in my post?
>
> > See how it appears in the group
> > interface:http://groups.google.com/group/google-maps-js-api-v3/browse_frm/threa...
>
> > -- Larry
>
> > > Here is a link to the live page:mySample
>
> > > Kind regards Paul.
--
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.