Click here to Skip to main content
16,010,650 members
Home / Discussions / JavaScript
   

JavaScript

 
Questioni want to drag a picture and it stick to positions with jquery Pin
joonood12-Sep-13 4:48
joonood12-Sep-13 4:48 
AnswerRe: i want to drag a picture and it stick to positions with jquery Pin
Nitij16-Sep-13 0:51
professionalNitij16-Sep-13 0:51 
Questionhow to create an exception in a java code having sql query? Pin
Member 102614258-Sep-13 22:56
Member 102614258-Sep-13 22:56 
AnswerRe: how to create an exception in a java code having sql query? Pin
SoMad8-Sep-13 23:21
professionalSoMad8-Sep-13 23:21 
AnswerRe: how to create an exception in a java code having sql query? Pin
Dholakiya Ankit10-Sep-13 0:00
Dholakiya Ankit10-Sep-13 0:00 
QuestionPlease help urgent Conversion of string to array Pin
Chandra Sekhar.bs4-Sep-13 19:12
professionalChandra Sekhar.bs4-Sep-13 19:12 
AnswerRe: Please help urgent Conversion of string to array Pin
twseitex9-Sep-13 7:47
twseitex9-Sep-13 7:47 
QuestionButton click event in Google Maps Pin
Member 991209128-Aug-13 11:57
Member 991209128-Aug-13 11:57 
I am working with Google Maps embedded on my webpage. What I want is to create a button click event, so that after a user has entered an address into a textbox (called txtBoxMaps), they can click a button which will display the new location on the same webpage. I tried using: google.maps.event.addListener(map, 'click', function(event) but when I click the button (btnDisplay) nothing happens. I can see the google map but it doesnt change after the "Display" button is clicked.

Here is my code below:

JavaScript
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style1
        {
            width: 104px;
        }
        .style2
        {
            width: 144px;
        }
        #GO
        {
            width: 92px;
        }
        #Display
        {
            width: 113px;
        }
        </style>

</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>
<script type="text/javascript">

    function Initialize() {


        var mapOptions = {
            center: new google.maps.LatLng(-33.01, 27.9),
            zoom: 13,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };

        var map = new            google.maps.Map(document.getElementById('GMap1'), mapOptions);


        google.maps.event.addListener(map, 'click', function(event) {
        mapZoom = map.getZoom();
        startLocation = event.latLng;
        var input = document.getElementById('TextBox1');

        });

}

    google.maps.event.addDomListener(window, 'load', Initialize);


</script>
 
 <input type="text" id="TextBox1"/>
<input type = "button" id="btnDisplay" value = "Display"/>
        <div id="GMap1" style="height: 240px; width:570px" ></div>

AnswerRe: Button click event in Google Maps Pin
jkirkerx29-Aug-13 9:28
professionaljkirkerx29-Aug-13 9:28 
QuestionNeed help with a function error Pin
lowkar20-Aug-13 1:57
lowkar20-Aug-13 1:57 
QuestionRe: Need help with a function error Pin
Richard MacCutchan20-Aug-13 2:47
mveRichard MacCutchan20-Aug-13 2:47 
AnswerRe: Need help with a function error Pin
NotPolitcallyCorrect20-Aug-13 4:48
NotPolitcallyCorrect20-Aug-13 4:48 
GeneralRe: Need help with a function error Pin
lowkar20-Aug-13 20:55
lowkar20-Aug-13 20:55 
GeneralRe: Need help with a function error Pin
lowkar20-Aug-13 22:00
lowkar20-Aug-13 22:00 
GeneralRe: Need help with a function error Pin
Sunasara Imdadhusen22-May-14 0:24
professionalSunasara Imdadhusen22-May-14 0:24 
AnswerRe: Need help with a function error Pin
Dholakiya Ankit22-Aug-13 23:53
Dholakiya Ankit22-Aug-13 23:53 
AnswerRe: Need help with a function error Pin
wkhproject4-Sep-13 15:40
wkhproject4-Sep-13 15:40 
AnswerRe: Need help with a function error Pin
Dholakiya Ankit10-Sep-13 0:06
Dholakiya Ankit10-Sep-13 0:06 
AnswerRe: Need help with a function error Pin
lowkar10-Sep-13 21:59
lowkar10-Sep-13 21:59 
GeneralRe: Need help with a function error Pin
Sunasara Imdadhusen21-May-14 23:57
professionalSunasara Imdadhusen21-May-14 23:57 
QuestionJavascript Passing a variable Pin
Hawkeye10114-Aug-13 23:33
Hawkeye10114-Aug-13 23:33 
AnswerRe: Javascript Passing a variable Pin
Blikkies15-Aug-13 2:02
professionalBlikkies15-Aug-13 2:02 
GeneralRe: Javascript Passing a variable Pin
Hawkeye10115-Aug-13 2:29
Hawkeye10115-Aug-13 2:29 
AnswerRe: Javascript Passing a variable Pin
jkirkerx21-Aug-13 11:06
professionaljkirkerx21-Aug-13 11:06 
Questionkill the process using javasscript Pin
vasu_sri14-Aug-13 3:38
vasu_sri14-Aug-13 3:38 

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.