close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Recordset Loop only returns 11 out 700 records

Thread began 9/30/2013 9:22 am by Suggs | Last modified 10/07/2013 3:39 pm by FredW | 1600 views | 12 replies |

Suggs

Recordset Loop only returns 11 out 700 records

Hi Folks,

Trying to get multiple markers on a Google map via a database loop and all it does is return 11 records out of 700.

I have taken the recordset and loop and created a non google map page and this loops through fine, returning all records from the database.

Using PHP MySQL for this and Design Extender.

Any help will be greatly appreciated

Sign in to reply to this post

Jason ByrnesWebAssist

There are probably problems with the addresses that are not showing.

Please send a link where i can see the problem.

Sign in to reply to this post

FredW

I've got the same problem. Well, not exactly the same. My google map will only show 11 points but these come from 3 different record sets, so it is not a recordset problem, per se. No errors in the javascript console and viewing the source I don't see anything out the ordinary. All of the points are in the generated javascript. Could it be a google limitation? I have another application (without webassist) where I show 100 points on a google map and that still works.

Mine also is PHP/MySQL

http://www.londonbeerguide.com/map.php

Added: It is not an address problem -- my three recordsets have 11, 4 and 4 records. The 11 recordset one was first and that was all I got. I deleted it and added it back on the end, now I get the 4+4 and only the first 3 of the large recordset.

Sign in to reply to this post

Jason ByrnesWebAssist

you have a number of addresses in your recordsets that use a span of street addresses, for example:
18 - 20 St John St


The google geocoder used for the map API cannot use this sort of street addresses, it needs to be one address, not a range.

Sign in to reply to this post

FredW

Jason, with all due respect, that is not the case. When I change the order of the record sets it still stops only shows 11 markers. And I've never had a problem in the past with Google and European style addresses.

But just to prove it, I went thru my database and removed all the "18 - 20" type street addresses -- and I still get only 11 markers. There is something else going on here.

Sign in to reply to this post

Jason ByrnesWebAssist

looks like the cache has become corrupted, delete the following file to have the cache recreated:
webassist/_promaps_cache/_promaps_geocache.xml

Sign in to reply to this post

FredW

Jason, no joy there -- deleted the cache and I still only get 11 markers.

I fiddled with the ORDER BY on one of my recordsets and I can get a different 11 markers by changing the ORDER, but always only 11 markers.

(I deleted the cache 3 or 4 times)

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

FredW

See PM

Sign in to reply to this post

Jason ByrnesWebAssist

i updated the /webassist/google_javascript/wagmp_map_5.php file to correct the problem.

in the searchCache function, i changed the last line from:
return '';

to:
return coordinates;

function searchCache(searchStr, zip) {
var xmlDoc = null;
var coordinates = '';
xmlDoc = getHTTPObject();
if(xmlDoc) {
xmlDoc.onreadystatechange = function() {
if(xmlDoc.readyState == 4) {
var x = xmlDoc.responseXML.getElementsByTagName("geocode_entry");
var geocode, id;
searchStr = searchStr.replace(/,/g, ''); //remove commas
for (i=0; i < x.length; i++) {
id = x[i].getAttribute("ID");
if (id == searchStr) {
coordinates = x[i].getElementsByTagName("geocode")[0].childNodes[0].nodeValue;
return coordinates;
}
}
}
}
xmlDoc.open("GET", "webassist/_promaps_cache/_promaps_geocache.xml", false);
xmlDoc.send(null);
} else {
return '';
}
return coordinates;
}
Sign in to reply to this post
loading

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