Click here to Skip to main content
15,887,881 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Date and time validation are not working. Any ideas? Pin
samflex7-Jul-14 4:51
samflex7-Jul-14 4:51 
GeneralRe: Date and time validation are not working. Any ideas? Pin
Richard Deeming7-Jul-14 5:17
mveRichard Deeming7-Jul-14 5:17 
GeneralRe: Date and time validation are not working. Any ideas? Pin
samflex7-Jul-14 5:31
samflex7-Jul-14 5:31 
AnswerRe: Date and time validation are not working. Any ideas? Pin
Kornfeld Eliyahu Peter7-Jul-14 3:31
professionalKornfeld Eliyahu Peter7-Jul-14 3:31 
Questionhow to check if user is fan of a facebook page using javascript? Pin
Meax3-Jul-14 6:50
Meax3-Jul-14 6:50 
AnswerRe: how to check if user is fan of a facebook page using javascript? Pin
zeGeek9-Jul-14 14:28
zeGeek9-Jul-14 14:28 
AnswerRe: how to check if user is fan of a facebook page using javascript? Pin
Vfleitao14-Jul-14 22:27
Vfleitao14-Jul-14 22:27 
Questionauto refresh marker on google map with directions Pin
popsompong1-Jul-14 0:10
popsompong1-Jul-14 0:10 
XML
<?php require_once('Connect/Connect.php'); ?>
<!DOCTYPE html>
<html>
    <head>
    <script src="//maps.googleapis.com/maps/api/js?sensor=false"type="text/javascript"></script>
    <script type="text/javascript" src="jquery-1.9.1.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
    <style type="text/css">
html, body, #map-canvas {
    height: 100%;
    margin: 0;
}
</style>
    <script type="text/javascript">


        <?php

        $sqlgps = "select * from gps ORDER BY id DESC LIMIT 1";
        $result = mysql_query($sqlgps) or exit($sqlgps);
        $row = mysql_fetch_array($result);
?>

        var map; // add map make

      function initialize() {
        var mapOptions = {
         center: new google.maps.LatLng(<?php  echo($row[latitude]) ?>, <?php  echo($row[longitude]) ?>),
          zoom: 17,
         mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        map = new google.maps.Map(document.getElementById("map-canvas"),
            mapOptions);
        //load();

        }

            function make(){
            var marker = new google.maps.Marker({
            position: new google.maps.LatLng(<?php  echo($row[latitude]) ?>, <?php  echo($row[longitude]) ?>), // auto refresh marker fram database mysql
            //position: map.getCenter(), 
            draggable:true, // make move click
            animation:google.maps.Animation.DROP,
            map: map,
            title: "Welcome to Thailand",

            //icon: "http://maps.google.com/mapfiles/ms/micons/blue.png"
            });
            //
            }


   google.maps.event.addDomListener(window, 'load', initialize);
        window.onload = make;
  


    </script>
    </head>
    <body ">
    <div id="map-canvas"></div>

</body>
</html>

QuestionAngular JS Pin
chauhanvatsal30-Jun-14 20:40
chauhanvatsal30-Jun-14 20:40 
AnswerRe: Angular JS Pin
Kornfeld Eliyahu Peter30-Jun-14 21:41
professionalKornfeld Eliyahu Peter30-Jun-14 21:41 
AnswerRe: Angular JS Pin
gaupoit3-Jul-14 5:27
gaupoit3-Jul-14 5:27 
Questionhow to get data from json url ? Pin
Tamil Purushothaman29-Jun-14 20:43
Tamil Purushothaman29-Jun-14 20:43 
AnswerRe: how to get data from json url ? Pin
Graham Breach29-Jun-14 22:18
Graham Breach29-Jun-14 22:18 
Questionmouseout isn't firing Pin
ThetaClear29-Jun-14 1:34
ThetaClear29-Jun-14 1:34 
AnswerRe: mouseout isn't firing Pin
ThetaClear29-Jun-14 23:21
ThetaClear29-Jun-14 23:21 
AnswerRe: mouseout isn't firing Pin
Kornfeld Eliyahu Peter30-Jun-14 1:16
professionalKornfeld Eliyahu Peter30-Jun-14 1:16 
GeneralRe: mouseout isn't firing Pin
ThetaClear30-Jun-14 1:26
ThetaClear30-Jun-14 1:26 
GeneralRe: mouseout isn't firing Pin
ThetaClear30-Jun-14 3:38
ThetaClear30-Jun-14 3:38 
AnswerRe: mouseout isn't firing Pin
Kornfeld Eliyahu Peter30-Jun-14 3:43
professionalKornfeld Eliyahu Peter30-Jun-14 3:43 
GeneralRe: mouseout isn't firing Pin
ThetaClear30-Jun-14 4:22
ThetaClear30-Jun-14 4:22 
GeneralRe: mouseout isn't firing Pin
Kornfeld Eliyahu Peter30-Jun-14 7:11
professionalKornfeld Eliyahu Peter30-Jun-14 7:11 
AnswerRe: mouseout isn't firing Pin
User 483504730-Jun-14 8:41
User 483504730-Jun-14 8:41 
AnswerRe: mouseout isn't firing Pin
Kornfeld Eliyahu Peter30-Jun-14 9:21
professionalKornfeld Eliyahu Peter30-Jun-14 9:21 
GeneralRe: mouseout isn't firing Pin
User 483504730-Jun-14 9:49
User 483504730-Jun-14 9:49 
AnswerRe: mouseout isn't firing Pin
Kornfeld Eliyahu Peter30-Jun-14 9:58
professionalKornfeld Eliyahu Peter30-Jun-14 9:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.