Api error

Discussion in 'Google API' started by Jonbon, Dec 24, 2010.

  1. #1
    Hi, I was wondering if anyone could help me? One of the map pages on My clients websites isn't loading. A pop up message says "Sorry, the Google Maps API is not compatible with this browser"

    www.westburyinks.co.uk

    I have tried putting a new API key code in, but nothing is working at the mo.

    Does anyone have any suggestions?
    Thanks.




    here is my code...



    <?php /* Smarty version 2.6.0, created on 2010-05-13 14:09:22
    compiled from head.tpl.html */ ?>
    <head>

    <!-- <link rel=STYLESHEET href="style11.css" type="text/css" /> -->
    <link href="stylemain.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo @constant('DEFAULT_CHARSET'); ?>
    " />
    <title>Westbury Inks - Suppliers of Ink Cartridges and Toners - Printer Repairs</title>

    <meta name="Title" content="Westbury Inks - Suppliers of Ink Cartridges and Toners - Printer Repairs" />
    <meta name="Description" content="Westbury Inks - Suppliers of Ink Cartridges, Toners and Stationary - Printer Repairs" />
    <meta name="KeyWords" content="Westbury Inks,ink cartridges,recycle,canon ink cartridges,westbury,inks,cartridge,cartridges,refill,refills,bristol,print,photocopying,toner,toners,toner cartridge,hp,epson,canon,lexmark,samsung,dell,printers,printer repair,printer,fax,brother" /></head>
    <?php echo '
    <script src="http://www.google.com/jsapi"></script>
    <script>
    google.load("jquery", "1.4.2");
    google.load("swfobject", "2.2");
    </script>
    '; ?>



    <?php echo '
    <script type="text/javascript">
    var flashvars = {};
    var params = {
    wmode: "transparent"
    };
    var attributes = {};
    swfobject.embedSWF("Flash/flyingbirds.swf", "birds", "850", "186", "9.0.0","expressInstall.swf", flashvars, params, attributes);
    swfobject.embedSWF("Flash/flyingbirdssmall.swf", "birdssmall", "850", "94", "9.0.0","expressInstall.swf", flashvars, params, attributes);

    </script>
    '; ?>


    <?php if ($this->_tpl_vars['main_content_template'] == "homepage.tpl.html"): echo '

    <script src="http://widgets.twimg.com/j/2/widget.js"></script>


    '; ?>

    <?php endif; ?>

    <?php if ($this->_tpl_vars['main_content_template'] == "location.tpl.html"): echo '

    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true_or_false&amp;key=ABQIAAAAyoaIjrXaK8sxLCKOOATe7hQBtH5sartnJw5EV_5P6UyMzwMmpBS-7fGakZmN7GuSOLz5ktENgZbIwA" type="text/javascript"></script>




    '; ?>

    <?php endif; if ($this->_tpl_vars['main_content_template'] == "preupload.tpl.html"): echo '
    <script src="http://cdn.jquerytools.org/1.1.2/jquery.tools.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
    $("#jForm :input").tooltip({

    position: "center right",
    offset: [-2, 10],
    effect: "fade",
    opacity: 0.7,
    tip: \'.tooltip\'

    });
    });
    </script>
    '; ?>

    <?php endif; ?>

    <?php if ($this->_tpl_vars['main_content_template'] == "upload.tpl.html"): echo '
    <link href="uploadscripts/uploadify.css" rel="stylesheet" type="text/css" />
    <script>

    </script>
    <script type="text/javascript" src="uploadscripts/jquery.uploadify.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
    $("#uploadify").uploadify({
    \'uploader\' : \'uploadscripts/uploadify.swf\',
    \'script\' : \'uploadscripts/uploadify.php\',
    \'folder\' : \'uploadedfiles\',
    \'queueID\' : \'fileQueue\',
    \'sizeLimit\' : \'10485760\',
    \'buttonText\' : \'Choose File...\',
    \'fileExt\' : \'*.jpg;*.jpeg;*.png;*.doc;*.docx;*.psd;*.ai;*.eps;*.ppt;*.pptx;*.pdf\',
    \'filedesc\' : \'*.jpg;*.jpeg;*.png;*.doc;*.docx;*.psd;*.ai;*.eps;*.ppt;*.pptx;*.pdf\',
    \'scriptData\' : {
    \'custref\' : $(\'#custref\').val(),
    \'custname\': $(\'#custname\').val(),
    \'custphone\': $(\'#custphone\').val(),
    \'custemail\': $(\'#custemail\').val(),
    \'custdesc\': $(\'#custdesc\').val()
    },
    \'onComplete\' : function () {$(\'#status\').html(\'File upload complete - We will contact before proceeding with your print job. Thank you\'); }
    });
    });
    </script>

    <script type="text/javascript">
    var yourQS = location.search;
    yourQS = location.search.substring(1);
    var pairs = yourQS.split("&");
    var tmpAry;
    tmpAry = pairs[1].split("=");
    var custrefval = tmpAry[1]; //Customer Reference
    tmpAry = pairs[2].split("=");
    var custnameval = tmpAry[1]; //Customer Name
    tmpAry = pairs[4].split("=");
    var custphoneval = tmpAry[1]; //Customer Phone
    tmpAry = pairs[3].split("=");
    var custemailval = tmpAry[1]; //Customer Email
    tmpAry = pairs[5].split("=");
    var custdescval = tmpAry[1]; //Customer Description

    </script>
    '; ?>

    <?php endif; echo '
    <script>
    function open_window(link,w,h) //opens new window
    {
    var win = "width="+w+",height="+h+",menubar=no,location=no,resizable=yes,scrollbars=yes";
    newWin = window.open(link,\'newWin\',win);
    newWin.focus();
    }

    function confirmDelete() //unsubscription confirmation
    {
    temp = window.confirm(\''; echo @constant('QUESTION_UNSUBSCRIBE'); echo '\');
    if (temp) //delete
    {
    window.location="index.php?killuser=yes";
    }
    }

    function validate_custinfo() //validate customer information
    {
    if (document.custinfo_form.first_name.value=="" || document.custinfo_form.last_name.value=="")
    {
    alert("'; echo @constant('ERROR_INPUT_NAME'); echo '");
    return false;
    }
    if (document.custinfo_form.email.value=="")
    {
    alert("'; echo @constant('ERROR_INPUT_EMAIL'); echo '");
    return false;
    }
    if (document.custinfo_form.country.value=="")
    {
    alert("'; echo @constant('ERROR_INPUT_COUNTRY'); echo '");
    return false;
    }
    if (document.custinfo_form.state.value=="")
    {
    alert("'; echo @constant('ERROR_INPUT_STATE'); echo '");
    return false;
    }
    if (document.custinfo_form.zip.value=="")
    {
    alert("'; echo @constant('ERROR_INPUT_ZIP'); echo '");
    return false;
    }
    if (document.custinfo_form.city.value=="")
    {
    alert("'; echo @constant('ERROR_INPUT_CITY'); echo '");
    return false;
    }


    return true;
    }

    '; ?>

    -->
    </script>
     
    Jonbon, Dec 24, 2010 IP