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

rating

Blank Map In Live View

Thread began 10/28/2010 10:14 am by drickettsacca403130 | Last modified 10/28/2010 4:22 pm by Jason Byrnes | 1034 views | 5 replies |

drickettsacca403130

Blank Map In Live View

Hi There

I know this topic is a common theme but I am having difficulty viewing the required google map, place markers etc from a recordset driven by a search from the following page: -

map-search.php

Everything works on localhost without any problems and I have made sure that I have uploaded everything to the server etc but, as seen by the following results page, the map is blank: -

map-search-results.php?region=West+Midlands&county=West+Midlands&submit=View+Venues

I am a complete web design novice and so if anyone could shed any light on the issue I would be most grateful.

Also - I know that the above search returns records in the recordset and works on localhost. However if you perform another search resulting in a blank recordset then I get a Javascript error. Does the dynamic function not supprt a blank recordset?

Regards

Darren

Sign in to reply to this post

Jason ByrnesWebAssist

When i load your map, it gives an error about the google api key.the code for the api key is:

<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=[ABQIAAAAb8yIfRrzLUBIGTUJ_comsBTgNyTH6bIgqdkHNhvaUK2UMRkOFhRwwcoH7OtzJwDN1fLXInRWTpbu0w]">/*wagmp*/</script>




you have the api key surrounded by square brackets, these need to be removed.

<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAb8yIfRrzLUBIGTUJ_comsBTgNyTH6bIgqdkHNhvaUK2UMRkOFhRwwcoH7OtzJwDN1fLXInRWTpbu0w">/*wagmp*/</script>



No, it does not suppport blank recrdsets.

Sign in to reply to this post

drickettsacca403130

Fantastic, thanks Jason that works a treat. It's always something that is staring you in the face.....

The software works really well and has added another dimension to my website. Only other issue I had was it not coping too well with large volumes of data in a recordset and hence my moving to a regionalised map. The xml cache has remained blank no matter what I try so could be back when the number of venues on the site increases.

Will build in a workaround for the blank recordset.

Regards

Darren

Sign in to reply to this post

Jason ByrnesWebAssist

glads to hear it is working.

Sign in to reply to this post

drickettsacca403130

I managed to work around the empty recordset issue by suppressing both the header and body section that related to the google maps with: -

<?php if ($totalRows_rsmapsearch == 0) { // Show if recordset empty ?> etc etc

and

<?php if ($totalRows_rsmapsearch > 0) { // Show if recordset not empty ?> etc etc

Would be good if this (or no doubt a better solution) could be built into any updates? :)

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear it is working, i will log a feature request.

Sign in to reply to this post

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

Content

rating

Layout

rating

Ease of use

rating

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...