我在我的页面上加载了一个谷歌方向小部件,其中包含以下代码:
<div class="directions">
<script src="http://www.gmodules.com/ig/ifr?url=http://hosting.gmodules.com/ig/gadgets/file/114281111391296844949/driving-directions.xml&up_fromLocation=&up_myLocations=<%= @meeting.location.address %>&up_defaultDirectionsType=&up_autoExpand=&synd=open&w=320&h=55&title=Directions+by+Google+Maps&lang=en&country=US&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
</div>
以上工作并且看起来很棒。我不想让上面的内容出现在页面上,而是希望在用户单击名为方向的链接时将其加载到颜色框中。问题是:我怎样才能让上面的内容在颜色框中打开?执行以下操作不起作用:
$.colorbox({href:"<the http link from above>"});
有任何想法吗?