Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8859255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:00:49+00:00 2026-06-14T15:00:49+00:00

var point = new google.maps.LatLng(lat, lang);//Code for one marker if (type == ‘CONTROLLER’) {

  • 0
var point = new google.maps.LatLng(lat, lang);//Code for one marker

        if (type == 'CONTROLLER') 
        {
            mark = new google.maps.Marker(
            {
                position: point,
                title: name,
                map: map,
                icon: "MapImages/controller.png"
            });

        }
function infowindow() //Code for InfoWindow

    {
        var i = 0;
        var j=0;
        var k=0;
        var l=0;
        var m = 0;
        var text =.....;
        alert(text);
        var AJAX = ob_create();
        alert("hello");
        AJAX.onreadystatechange = function () 
            {
            alert(AJAX.readyState);
            if (AJAX.readyState == 4 || AJAX.readyState == "complete") 
                 {
                document.getElementById("i").innerHTML = AJAX.responseXML.getElementsByTagName("name")[i].firstChild[0].nodeValue;
                document.getElementById("j").innerHTML = AJAX.responseXML.getElementsByTagName("add")[j].firstChild[0].nodeValue;
                document.getElementById("k").innerHTML = AJAX.responseXML.getElementsByTagName("mac")[k].firstChild[0].nodeValue;
                document.getElementById("l").innerHTML = AJAX.responseXML.getElementsByTagName("lat")[l].firstChild[0].nodeValue;
                document.getElementById("m").innerHTML = AJAX.responseXML.getElementsByTagName("long")[m].firstChild[0].nodeValue;
            }
            var url = 'Map3.aspx?Text=' +text.toString();
            AJAX.open("Get", url, true);
            AJAX.send(null);
        }
    },

I have created custom markers and custom InfoWindow, above is my code,
In Infowindow I need to pass the mark from marker in variable text in string form so that I can pass it to aspx page in query string format,but it is taking as object and I am not able to solve this problem,any help will be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:00:51+00:00Added an answer on June 14, 2026 at 3:00 pm
    var text = mark.getTitle();
    

    Mark is the object for marker and getTitle() is the method of marker to get the name of the device passed to marker via database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this block of code inside a loop: var points = [new google.maps.LatLng(lat1,
I check like this: enter code here var point = new g.LatLng(parseFloat(lat),parseFloat(lng)); var bounds
while($DNB->fetch()){ ?> var infowindow = new google.maps.InfoWindow({content: <?php echo $businessname ?>}); var point =
I have found this code for reverse geocoding: var point = new GLatLng (lat[1],long[1]);
All, I've got the following code to display my maps: <script type=text/javascript src=http://maps.google.com/maps/api/js?sensor=false></script> <script
I've 2 function as below: function addMarker() { marker = new google.maps.Marker({ position: Gpoint,
Imagine I have var points = new Point[] { new Point(1, 2), new Point(2,
If I have a PointCollection : var points = new PointCollection(); points.Add(new Point(0, 0));
I have the following code: foreach (Tuple<Point, Point> pair in pointsCollection) { var points
I have found a code to show Google maps with multiple markers using JQuery

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.