/    Sign up×
Community /Pin to ProfileBookmark

GeoComplete using Parsley validation

I’m testing GeoComplete and Parsley validaton.

Updated version is at the following URL: [url]https://github.com/ubilabs/geocomplete[/url]

How to set positive message if street is found?

It provides the ability of populating these coordinates after selecting the address from the list and we can use these values to validate the address via the callback validator. I need to reset the latitude, longitude values and mark the field as not validated.

Need help.

[code=php]

<script src=”http://maps.googleapis.com/maps/api/js?sensor=false&amp;libraries=places”></script>
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js”></script>

<script src=”../jquery.geocomplete.js”></script>
<script src=”logger.js”></script>

<script>
$(function()
{
var center = new google.maps.LatLng(50.863257, -0.090621);

$(“#geocomplete”).geocomplete(
{
map: “.map_canvas”,
types:[‘establishment’],
country: ‘UK’
}
);

}
);
</script>

<form>
<label class=”label1″>Address:</label>
<input type=”text” name=”mystreetfield” placeholder=”Postal address” required data-parsley-trigger=”change” />
</form>

</body>
</html>

[/code]

As you see it is limited to UK addresses.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @toplisek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...