Forenindex » Programmierung/Entwicklung » JavaScript » Popup Informationen zurückgeben?????????????

Popup Informationen zurückgeben?????????????

Anonym
Beiträge gesamt: 22827

22. Dez 2004, 15:00
Bewertung:

gelesen: 451

Beitrag als Lesezeichen
Hallo, ich habe Probleme die Daten eines Popupfenster an den Ursprung zurückzugeben. Es handelt sich hier um einen Kalender bei dem man über ein Popup das Datum selektieren kann.
Ich möchte, dass wenn man im Popupfenster einen Link klickt, die neuen Werte an das ursprüngliche Formular geschickt werden.
---------------------------------------------------------------------
MAIN.HTM
<SCRIPT LANGUAGE="JavaScript">
<!--
var DatedateSelectionPopupWindow;
function DatedateSelectionPopup () {
var width = 300;
var height = 200;
if (width < 100) {
width = Math.round (screen.width * width / 100);
}
if (height < 100) {
height = Math.round (screen.height * height / 100);
}
DatedateSelectionPopupWindow = window.open ("popup.htm", "DatedateSelection",
"scrollbars,resizable,width=" + width +
",height=" + height);
DatedateSelectionPopupWindow.focus();
}
// -->
</SCRIPT>
<small><a href="JavaScript:DatedateSelectionPopup()">Date Selector</a></small>

---------------------------------------------------------------------
POPUP.HTM
<body>
<center>
<script language="Javascript">
<!--
function setDatePopup (year, month, day)
{

}
-->
</script>
</center>
<table cellpadding="2" align="center" cellspacing="1" bgcolor="#336699" border="0">
<tr align="center"><td bgcolor="#666666"><a target="_top" href="Calcium?CalendarName=Demo&amp;Op=PopupCal&amp;Date=2004%2F10%2F29&amp;Name=Date">&lt;</a></td>
<td bgcolor="#888888"><a href="Javascript:setDatePopup (2004,11,1);window.close()"><font size="1" face="arial" color="black">1</font></a></td>
<td bgcolor="#888888"><a href="Javascript:setDatePopup (2004,11,2);window.close()"><font size="1" face="arial" color="black">2</font></a></td>
<td bgcolor="#888888"><a href="Javascript:setDatePopup (2004,11,3);window.close()"><font size="1" face="arial" color="black">3</font></a></td>
<td bgcolor="#888888"><a href="Javascript:setDatePopup (2004,11,4);window.close()"><font size="1" face="arial" color="black">4</font></a></td>
<td bgcolor="#888888"><a href="Javascript:setDatePopup (2004,11,5);window.close()"><font size="1" face="arial" color="black">5</font></a></td>
<td bgcolor="#888888"><a href="Javascript:setDatePopup (2004,11,6);window.close()"><font size="1" face="arial" color="black">6</font></a></td>
</tr></table>
<div align="center">
</div>
</body>

-------------------

Vielen Dank!