Unfortunately no updates yet. Working on it.
Unfortunately no updates yet. Working on it.
Hi Joe,
On page "Website" there is the following iframe:
code<iframe src="http://www.thepedalcollective.com/m" style="border:0px #FFFFFF none;" name="myiFrame" scrolling="yes" frameborder="0" marginheight="20px" marginwidth="0px" height="500px" width="100%"></iframe>/code
In JS code that we adviced, there is a reference to iFrame named Chat.In HTML code you would need to rename "myiFrame" to "Chat" and add id="Chat" (case sensitive). Then iframe height will be changed when page opening.
I've changed the javascript to add those changes, but for some reason it still doesn't work. Did I add it incorrectly? Is it possible something else might be causing it?
As it stands now, my javascript1 reads:
codevar bikeLayer, directionsDisplay, directionsService;
function initialize() {
bikeLayer = new google.maps.BicyclingLayer('directionsMap');
bikeLayer.setMap(Tiggzi('directionsMap').gmap);
directionsService = new google.maps.DirectionsService();
directionsDisplay = new google.maps.DirectionsRenderer();
}
function displayDirections(sourceAddress, destinationAddress, map, panel) {
var request = {
origin: sourceAddress,
destination: destinationAddress,
travelMode: google.maps.DirectionsTravelMode.BICYCLING,
avoidHighways: true
};
directionsService.route(request, function(response, status) {
if (panel != null) {
directionsDisplay.setPanel(panel);
}
directionsDisplay.setMap(map);
if (status == google.maps.DirectionsStatus.OK) {
directionsDisplay.setDirections(response);
} else {
alert("Directions query unsuccessful. Response status: " + status);
}
});
}
google_ad_client = "ca-pub-8264282481974683"
/* Mobile Ad */
google_ad_slot = "5144076950"
google_ad_width = 320;
google_ad_height = 50;/code
And I removed the initialize () function from the "events" on the page as it is in "javascript1." All that happens now is the source and destination disappear, but no map route is rendered, nor is there a route turn-by-turn list.
Hi Joe, please sorry for delay. Working on it...
Sorry about this post. I actually meant to post it in my "geolocation" discussion, but I accidently put it here.
Thanks for update. Right now we are working on both your posts, I'll update as soon as I get any information.
You're all amazing! Thanks so much.
On your page you have some buttons. You can change iframe heights - subtract panel_46 heights and buttons heights to place all controls on the screen:
codevar minHeight = 170;
var theHeight = $(window).height()
Where would I place this code?