Hi all, I'm trying to place the following DOM generated iframe into a certain part of the page. In particular I want it to sit inside a div I have name "maps". Right now it's floating all the way to the bottom of the page probably because it's being placed there. Is there a way to find the div called maps and place it right after that div tag?
Any help would be appreciated! Here is the code:
function handle_geolocation_query(position) {
var image_url = "http://maps.google.com/?ie=UTF8&q=@" + position.coords.latitude + ',' + position.coords.longitude +
"&z=16&output=embed";
jQuery("#map").remove();
$(document.body).append(
jQuery(document.createElement("iframe")).attr("src", image_url).attr('width','320').attr('height','320').attr('id','map')
);
}