CalendarXP.net Support Forum Index CalendarXP.net Support
Most forums here are private and invisible to public.
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Trying to integrate Cross Frame demo to a web site

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> PopCalendarXP Related
View previous topic :: View next topic  
Author Message
gunnar



Joined: 25 Oct 2005
Posts: 6

PostPosted: Thu Oct 27, 2005 3:43 pm    Post subject: Trying to integrate Cross Frame demo to a web site Reply with quote

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
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Thu Oct 27, 2005 4:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
gunnar



Joined: 25 Oct 2005
Posts: 6

PostPosted: Thu Oct 27, 2005 7:25 pm    Post subject: Reply with quote

I have modified as you suggested but it does not work.
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Thu Oct 27, 2005 9:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> PopCalendarXP Related All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Copyright 2003- Idemfactor Solutions, Inc. All rights reserved.
Powered by phpBB © 2001, 2005 phpBB Group