Mam zakladki, ktorych zawartosc otwiera sie w iframie. Zawartosc tej ramki jest generowana przez kod js. problem jest w tym, ze linki wygenerowane przez ten kod nie chca sie otwierac w oknie matce, aniw nowym oknie, ale zawsze w tym iframe. Zrobilem test i dopisalem kawalek kodu do pliku, ktory jest otwierany w tym iframie:
<a href="index.php" target="_blank">lkljjk
</a>
i sie otworzylo w nowym oknie, ale czesc wygenerowana przez kod juz nie chce tego robic:
<?php
function showInfoWindowHtml(marker, name, status, description, id)
{
var footer = [];
var thumb = [];
thumb.push("");
description += '[thumb]'+images[id]+'[/thumb]';
var convertedText = convertText(description, footer, thumb);
var thumbUrl = "";
if (thumb[0] != "") {
thumbUrl = "<div style=\"float: left; margin-right: 10px;\"><a href="" + 'building.php?wsk=' + id + "\" target=\"_blank\"><img src=\"" + thumb[0] + "\" style=\"width:170px\"></img></a></div>";
width = "400";
height = "160";
} else {
width = "350";
height = "160";
}
var content = "<div style=\"text-align: left; height: " + height + "px; width: " + width + "px\"><div style=\"float: left; font-size: 7pt;\">" + id +
")</div><div style=\"text-align: center;\"><span style=\"font-weight: bold; font-size: 12pt;\">" + name + "</span><small> (" + localeStatus(status) +
")</small></div><br/><div style=\"overflow: hidden\">" + thumbUrl + convertedText + "</div><hr/>";
if (id != "") {
content += "<div style=\"float: right;\"><a target=\"_blank\" href=\"add.php?id=" + id + extraUrlArgs + "\">" + lcEdit + "</a></div>";
}
for (r in footer)
{
content += " <a href=\"" + footer[r].url + "\">" + footer[r].name + "</a>";
}
content += "</div>";
marker.openInfoWindowHtml(content);
}
?>
Chodzi o 15 i 29 linijke