Find Jobs
Hire Freelancers

Simple add Geolocation through GET Function

$10-30 USD

완료함
게시됨 거의 9년 전

$10-30 USD

제출할때 지불됩니다
I have everything working but because Im new at this I just need a few lines of code added to make it work. Basically i just need to add a $Get function to below line that will send the latitude, longitude, street,city,state,country to a page that will post to my database... As I mention the geolocation aspect already works i just need the post feature. I included the zip file it does not have to be written from scratch so i posted it as a small project //use array to determine how it goes into DOM, I think you could use Data Attributes: [login to view URL] var selector = []; [login to view URL] = function() { //push in one or multiple IDs depending if its one address field or multiple [login to view URL]("address-line-1","city","state","zip"); //go get the location getLocation(); }; function putInDom(address){ if([login to view URL] == 1){ //one field for address var field = [login to view URL](selector[0]); [login to view URL] = address; } else { //multiple fields var street = [login to view URL](selector[0]); var city = [login to view URL](selector[1]); var state = [login to view URL](selector[2]); var zip = [login to view URL](selector[3]); var a = [login to view URL](","); [login to view URL] = a[0].trim(); [login to view URL] = a[1].trim(); [login to view URL] = a[2].trim().split(" ")[0]; [login to view URL] = a[2].trim().split(" ")[1]; } // $.get("[login to view URL]", { url:"EDMStaff", town:"Ducktown" }); //clear array selector = []; } function getLocation(){ if ([login to view URL]){ //remember this is async behavior, the browser does not have access to your locations right away but it does not want to stop executing code [login to view URL](getAddress); } else{ info.innerHTML="Geolocation is not supported by this browser."; } } function getAddress(position){ putInDom(address); getLocation(); var lat = [login to view URL]; var lon = [login to view URL]; //Google does not allow Cross Domain Access so let's use a Proxy: [login to view URL] var url = '[login to view URL]'+city+','+lon+'&sensor=true'; //make the Ajax request var xhr = new XMLHttpRequest(); [login to view URL]("GET", url); [login to view URL] = function() { //if we make a successful request and it returns an address if(this.status==200 && [login to view URL]([login to view URL]).[login to view URL] > 0){ //get formatted address from [login to view URL] var result = [login to view URL]([login to view URL]).[login to view URL][0].formatted_address; putInDom(result); } else { //send some general error [login to view URL] = "Could not find your location."; } } [login to view URL](); }
프로젝트 ID: 7811218

프로젝트 정보

7 제안서
원격근무 프로젝트
활동 중 9년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
A proposal has not yet been provided
$25 USD 1일에
5.0 (9 건의 리뷰)
3.7
3.7
7 이 프로젝트에 프리랜서들의 평균 입찰은 $25 USD입니다.
사용자 아바타
Hello man, I'm already coded this function, so if you want get it ASAP just award this project for me. Thanks you
$30 USD 1일에
5.0 (4 건의 리뷰)
2.8
2.8
사용자 아바타
I have checked the requirement you have mentioned in the job post. First of I am from India, So may be this proposal will be ignored. You can first make a chat with us and you can decide later. Please note that, we have worked on the popular frameworks such as Laravel, Codginiter, CakePHP etc. We have worked on the latest version in these frameworks. So we have experienced in REST API, Bootstrap, Linux, MySql, Jquery etc. So please have a quick chat with us and you can decide later. You can also check our portfolios mentioned in the profile. Let me introduce our profile, please note that, if your are checking our rating, currently we haven't any rating. Because our work from other networks We are a group of Web & Mobile developers having expertise in Open Source technologies such as PHP, Wordpress, Drupal, Mobile Apps & Game Development, etc. As per the requirement mentioned, I am interested to work with you. Our core competency lies in complete end-end management of a new website development project, and we are seeking opportunities to build websites from the ground up for you or your business. We have experience in the following areas: Codeigniter, Yii, Laravel, Magento, Opencart, ZenCart, NodeJs, MySql, MongoDb, jQuery, Facebook API, Twitter API, Google API, Paypal, CyberSource, Braintree, CCAvenue I think the best way to demonstrate our expertise is to show you our work with reference to your requirement. We would like to hear your requirement so that we can anal
$25 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Hello, I am working in well know IT mnc company and i am working in java script so i am very helpful to you to do your task. It just 3 to 4 hrs task may be it will take less time also.
$18 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
I am a 38 years analist/programmer with 18 years of experience. Have worked on enterprises projects for financial companies and for general purposes for web. I know technologies like Python, ASP.NET, PHP and more. Relational and non relational databases. Microsoft MCP certified. I have worked on UX Systems for Hewllet Packard too.
$25 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Hi, I have 10 years of experience using ASP, javascript and SQL Server. Contact me, so I can create the function to send the values to your database. Regards, Luciano.
$30 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (UNITED STATES)
port orange, United States
5.0
25
결제 수단 확인
6월 5, 2015부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.