Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. GMAPS Question

GMAPS Question

Scheduled Pinned Locked Moved ASP.NET
csharphelpquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Krazy Programmer
    wrote on last edited by
    #1

    Hello friends ( I've download GMAPS Control ) I am dynamically adding a point to Gmap, Now when the user clicks on that map Point i want to fire a event in aspx page (Call a C# Function) I'll be thankful for the help Happy programming

    If You win You need not Explain............ But If You Loose You Should not be there to Explain......

    C A 2 Replies Last reply
    0
    • K Krazy Programmer

      Hello friends ( I've download GMAPS Control ) I am dynamically adding a point to Gmap, Now when the user clicks on that map Point i want to fire a event in aspx page (Call a C# Function) I'll be thankful for the help Happy programming

      If You win You need not Explain............ But If You Loose You Should not be there to Explain......

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You'll need to fire an AJAX call to do this without a postback.

      Christian Graus Driven to the arms of OSX by Vista.

      K 1 Reply Last reply
      0
      • K Krazy Programmer

        Hello friends ( I've download GMAPS Control ) I am dynamically adding a point to Gmap, Now when the user clicks on that map Point i want to fire a event in aspx page (Call a C# Function) I'll be thankful for the help Happy programming

        If You win You need not Explain............ But If You Loose You Should not be there to Explain......

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        Are you talking about Google Maps??

        Abhishek Sur

        K 1 Reply Last reply
        0
        • C Christian Graus

          You'll need to fire an AJAX call to do this without a postback.

          Christian Graus Driven to the arms of OSX by Vista.

          K Offline
          K Offline
          Krazy Programmer
          wrote on last edited by
          #4

          hmmm Let me clear what i want to do . there is a url present in the InfoHTML of a point what i tried to do is <p style='color:blue;' onClick='myPopup2('http://www.google.co.in/)'>Edit Details</p> here is my js function function myPopup2(urlstring) { window.open(urlstring , "myWindow", "status = 1, height = 350, width = 325, resizable = 0,scrollbars = no" ) This function is not working . * its working when i do not pass the argument and write the url in place of url string even the function is not getting called up when i am having a argument in it Please help me with this Happy programming

          If You win You need not Explain............ But If You Loose You Should not be there to Explain......

          1 Reply Last reply
          0
          • A Abhishek Sur

            Are you talking about Google Maps??

            Abhishek Sur

            K Offline
            K Offline
            Krazy Programmer
            wrote on last edited by
            #5

            yes it is Google Maps

            If You win You need not Explain............ But If You Loose You Should not be there to Explain......

            A 1 Reply Last reply
            0
            • K Krazy Programmer

              yes it is Google Maps

              If You win You need not Explain............ But If You Loose You Should not be there to Explain......

              A Offline
              A Offline
              Abhishek Sur
              wrote on last edited by
              #6

              First, you need to register click event of your map. Use

              GEvent.addListener(map,"click",function(overlay,point)
              {
              // XMLHTTP Requests

              }

              );

              Now inside the click, you can do XMLHttp request to your web server yourself through the use of XMLHttpRequest object thereby raising an event in your custom handler or you can make use of ICallBackEventHandler that raises serverside event from javascript. You can look into my article on Googlemaps where in Example 8 I have used XMLHttp objects to raise ajax calls. http://www.codeproject.com/KB/scripting/Use_of_Google_Map.aspx[^] Regarding ICallBackEventHandler you can have a look on the process from this article: http://msdn.microsoft.com/en-us/library/ms178208.aspx[^] hope this will help you.... :rose::rose:

              Abhishek Sur

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups