Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Fixing Info Windows and Google Maps task 4 of 5 Google maps

Help Andrew !!

I am doing de code chalenge and I get stuck with this also

"Bummer! There's something wrong with your script ordering. You need 'jquery.js', then Google Maps and then app.js".

My code is

in the map.html

http://codepen.io/seraphzz/pen/AKlIz

and in location.html

http://codepen.io/seraphzz/pen/abmFt

can you help me ?

2 Answers

Andrew Chalkley
STAFF
Andrew Chalkley
Treehouse Guest Teacher

In the location page you used jQuery to add the iframe.

The first step said to On line 17, replace the div of id "map" with an iframe with the id of "map", src of "map.html" and seamless attribute set to "seamless". The code below is the corrected locations.html for step 1 with all the modifications up to step 4.

<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Theme Parks</title>
    <link rel="stylesheet" href="normalize.css" type="text/css" media="screen">
    <link rel="stylesheet" href="grid.css" type="text/css" media="screen">
    <link rel="stylesheet" href="style.css" type="text/css" media="screen">
    <link href='http://fonts.googleapis.com/css?family=Nunito:400,300,700' rel='stylesheet' type='text/css'>
    <meta name="viewport" content="width=device-width, initial-scale = 1.0, user-scalable = no">
</head>

<body>      
    <div class="container clearfix">
        <div id="locations" class="grid_12">
            <iframe id="map" src="map.html" seamless="seamless"></iframe>
            <address>Magic Kingdom, Disney World, Orlando</address>
            <address>Sea World, Orlando</address>
            <address>Universal Studios, Orlando</address>
        </div>
    </div>
</body>
</html>

The key line is:

<iframe id="map" src="map.html" seamless="seamless"></iframe>

Regards, Andrew

ooooooh Master Jedi Andrew !!

Thanks for the guide I was so stuck in that question and I was thinking something is wrong with the matrix jeje well thanks awsome job!!