views:

222

answers:

2

For some reasons I'm using an Iframe to display googlemaps, when I want to change it's content I'm just changing the Iframe src using JQuery.

$('#ggMap').attr('src', 'http://newurl.com');

Apparently it's not doing anything on Internet Explorer.

Does anyone know how I could do the same thing with IE?

A: 

Not sure about jQuery, but regular javascript would be something like:

document.getElementById('ggMap').src = 'http://newurl.com';
jaywon
A: 

You can set the src of an IFrame with javascript, so I guess there is a script error preventing IE from working properly.

Have you debugged the script?

Joe R