Friday, July 20, 2012

google map [editable polylines]

1. Google Maps JavaScript API Example: Editable Polylines
2. https://code.google.com/apis/console/?pli=1#project:943915124531:access
3.<script language="javascript" type="text/javascript">
        function validateCheckBoxes() {
          var isValid = false;
            var gridView = document.getElementById('grdUse_ctl00');

            for (var i = 1; i < grid.rows.length; i++) {
                var inputs = gridView.rows[i].getElementsByTagName('input');
                if (inputs != null) {
                    if (inputs[0].type == "checkbox") {
                        if (inputs[0].checked) {
                            isValid = true;
                            return confirm('You are about to delete the user.  Are you sure you wish to continue?')

                        }
                    }
                }
            }
            alert("Please select at least one checkbox");
            return false;
        }

    </script>

No comments:

Post a Comment