View previous topic :: View next topic |
Author |
Message |
gunnar
Joined: 25 Oct 2005 Posts: 6
|
Posted: Thu Oct 27, 2005 3:43 pm Post subject: Trying to integrate Cross Frame demo to a web site |
|
|
I am trying to integrate the Cross Frame demo from the PopCalendarXP package to a web site without success. Can you please have alook at the files below and see if you find what is wrong:
ggTest.html
-------------
<HTML>
<HEAD>
<TITLE>ggTest</TITLE>
</HEAD>
<FRAMESET rows="100,700">
<FRAME frameborder=0 src="ggTestInput.html" name="InputFrame" id="InputFrame" title="InputFrame">
<FRAME frameborder=0 src="ggTestOutput.html" name="OutputFrame" id="OutputFrame" title="OutputFrame">
</FRAMESET>
</HTML>
ggTestInput.html
--------------------
<HTML>
<HEAD>
<TITLE>ggTestInput</TITLE>
</HEAD>
<BODY leftmargin=0 topmargin=0 bottommargin=0 rightmargin=0>
<script language="JavaScript">
function popCalInMainFrame(dateCtrl) {
var w=self.OutFrame.gfPop;
w.fPopCalendar(dateCtrl,null,null,null,[70,0,true]);
}
</script>
<FORM name=ggTestInputForm action="ggTestOutput" method="post" target = "OutputFrame">
<P>
<FONT size="2" face="VERDANA">Stöð:</FONT>
<SELECT name="cell" onchange="document.ggTestInputForm.submit()">
<OPTION label="DOMUSMV" value="DOMUSMV">DOMUSMV</OPTION>
<OPTION selected label="DRESSMA" value="DRESSMA">DRESSMA</OPTION>
</SELECT>
<FONT size="2" face="VERDANA">Tímabil:</FONT>
<input name="period" value="2005-10" size="20" onchange="document.ggTestInputForm.submit()">
<a href="javascript:void(0)"
onclick="fPopCalendar(document.ggTestInputForm.period);return false;"
HIDEFOCUS
>
<img name="popcal"
align="absmiddle"
src="calbtn.gif"
width="34"
height="22"
border="0"
alt="">
</a>
<FONT size="2" face="VERDANA">
<INPUT type="radio" name="charttype" value="TrafficCongestion" onclick=document.ggTestInputForm.submit() checked >Umferð og frávísun
<INPUT type="radio" name="charttype" value="Drops" onclick=document.ggTestInputForm.submit() >Samtalsslit
<INPUT type="radio" name="charttype" value="DropsResolutionDay" onclick=document.ggTestInputForm.submit() >Samtalsslit (Dagsmeðaltal)
<INPUT type="radio" name="charttype" value="TrafficAverageResolutionDay" onclick=document.ggTestInputForm.submit() >Umferð (Dagsmeðaltal)
</FONT>
</P>
</FORM>
</BODY>
</HTML>
ggTestOutput.html
---------------------
<HTML>
<HEAD><TITLE>ggTestOutput</TITLE>
</HEAD>
<BODY>
<iframe width=174 height=189 name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
<!--
<IMG src="ggTestOutputGraph?period=2005-10&cell=DRESSMA&charttype=TrafficCongestion">
-->
</BODY>
</HTML>
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Thu Oct 27, 2005 4:46 pm Post subject: |
|
|
Please modify your popCalInMainFrame() to be as following:
Code: | function popCalInMainFrame(dateCtrl) {
var w=top.OutputFrame.gfPop;
if(w)w.fPopCalendar(dateCtrl,null,null,null,[70,0,true]);
} |
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
gunnar
Joined: 25 Oct 2005 Posts: 6
|
Posted: Thu Oct 27, 2005 7:25 pm Post subject: |
|
|
I have modified as you suggested but it does not work.
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Thu Oct 27, 2005 9:50 pm Post subject: |
|
|
The code in your ggTestInput.html doesn't call the function in need:
Code: | <a href="javascript:void(0)"
onclick="fPopCalendar(document.ggTestInputForm.period);return false;" HIDEFOCUS> |
It should be changed to:
Code: | <a href="javascript:void(0)"
onclick="popCalInMainFrame(document.ggTestInputForm.period);return false;" HIDEFOCUS> |
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
|