Jump to content

Pass Visitor's Location To Access Database


Recommended Posts

Hi Folks I have an online Resume written in Classic ASP and I am trying to find a way to determine a visitor's "GeoLocation" and store the city and state to an Access database. Just to get a rough idea of who has checked it out. I can obtain the info with javascript easily enough, but getting the values to the database without posting the page is a different story. Of course I cannot simply assign a js variable to a server side variable, and there seems to be some browser security issues when trying to access the DB with client side scripting. Does anyone have any suggestions?

Link to post
Share on other sites

You can use Javascript to send an ajax request to the server with the data. An ajax request is like a normal browser request except it is sent and handled with Javascript alone, so the page does not refresh or anything. You can send either a post or get request also, with whatever data you want. The tutorial for it is here: http://www.w3schools.com/ajax/default.asp

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...