close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Unable to create form to allow user to type in starting address...

Thread began 6/14/2010 2:37 pm by gregb440246884 | Last modified 6/15/2010 4:40 pm by gregb440246884 | 727 views | 3 replies

Jimmy Wu

There isn't anything built in to Pro Maps to output an error when a user enters an address that's not recognized by google, so you'll have to custom code something like this. Since its custom coding I can point you in the correct direction, but you'll have to implement it yourself.

In your wagmp_map_<num>.php file in the google_javascript directory, you will want to find the code that looks like this:
directions = new GDirections(map, document.getElementById('wagmp_directions_1'));
GEvent.addListener(directions, "error", function() {
map.setCenter(wagmp_map_1_obj.points[0], 13);
directions.load('from: ' + fromAddress.full + ' to: ' + address_0.full);
wagmp_map_1_obj.directions = directions;

It should be near the bottom. In the GEvent.addListener portion of the code, you would want to write your display error code:
GEvent.addListener(directions, "error", function() {
map.setCenter(wagmp_map_1_obj.points[0], 13);
<add error display code here>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...