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 

Accessing the calendar when under a secure protocol.

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



Joined: 23 May 2006
Posts: 27

PostPosted: Wed Jun 21, 2006 9:14 pm    Post subject: Accessing the calendar when under a secure protocol. Reply with quote

I need to use the calendar in a secure page. I am not able to do this since the calender is under a non secure protocol.

Has this been ran into before Question If so, what was the solution Question

If not, do you have any ideas Question
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Thu Jun 22, 2006 4:53 am    Post subject: Reply with quote

Well, just make sure you didn't specify "http://" as part of the src attribute of the iframe tag. In other words, always use relative path.

The calendar should work fine no matter you access it via secure or non-secure protocol. e.g. You may navigate our online demo via https.

https://www.calendarxp.net/tt_pop.shtml

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
Vermule



Joined: 23 May 2006
Posts: 27

PostPosted: Fri Jul 07, 2006 6:57 pm    Post subject: Reply with quote

I am still having issues.

The FF error I get is "Permission denied to get property HTMLDocument.getElementById".

The IE error I get is "Access is denied." with the URL of "http://localhost/common/calendar/ipopeng.jsp"
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Fri Jul 07, 2006 11:15 pm    Post subject: Reply with quote

What's the code you use for iframe? Do you have an URL for us to test?

BTW, FF will deny access if and only if the iframe is trying to load a document that's not in the same domain as the container page (for security concern). Anyway, we need to see the code in action so as to help you solve the problem.

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
Vermule



Joined: 23 May 2006
Posts: 27

PostPosted: Mon Jul 10, 2006 2:37 pm    Post subject: Reply with quote

Here is the code for the iframe.

Code:
<iframe name="gToday:radleft:agenda.js:gfPop_1" id="gToday:radleft:agenda.js:gfPop_1" src="/common/calendar/ipopeng.jsp" scrolling="no" frameborder="0" style="width:189px; height:189px; visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
<iframe name="[gToday[0],gToday[1]+1]:radright:share[gfPop_1]:gfPop_2" id="[gToday[0],gToday[1]+1]:radright:share[gfPop_1]:gfPop_2" src="/common/calendar/ipopeng.jsp" scrolling="no" frameborder="0" style="width:189px; height:189px; visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>


Unfortunately, I can not provide you with a link to the "working" site. This is only accessible on our internal dev environment. So, it is not accessible outside of our firewall.

I know this will make it more difficult, but I thank you in advance for your assistance.
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Mon Jul 10, 2006 6:05 pm    Post subject: Reply with quote

Well, would you mind sending me the source code of ipopeng.jsp? I also need to see everything under the /common/calendar/ folder (please package them in a zip file).

Also, when you see errors in Firefox, could you please copy me the fully message? And when you click the error link in the javascript console, it should bring you to the line of code where the error was occurred - could you please also tell me which line it is?

Since we can't access it directly, I do need the above info to identify the problem.

Thanks.

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
Vermule



Joined: 23 May 2006
Posts: 27

PostPosted: Mon Jul 10, 2006 6:26 pm    Post subject: Reply with quote

I didn't include my license.js, I didn't think that you would need it.

I included a screen shot of the javascript console for you to see all of the errors.

Thank you again for your help.
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Mon Jul 10, 2006 10:53 pm    Post subject: Reply with quote

Thanks for the screen shots.

One quick question - when did those errors show up, before or after you clicking the popup button?

Also, I need you replace the ipopeng.jsp with the original ipopeng.htm and refresh your browser to see if it works.

Finally, I suppose your webpage's url was started with http://localhost/, please let me know if it's not.

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
Vermule



Joined: 23 May 2006
Posts: 27

PostPosted: Tue Jul 11, 2006 1:40 pm    Post subject: Reply with quote

The errors showed up on page load.

I'll try to replace the jsp version with the htm version to see if it still happens.

The webpage's url started https://localhost/, but when I checked the errors in IE it showed the calendar's url as http://localhost/.
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Tue Jul 11, 2006 2:06 pm    Post subject: Reply with quote

After you replaced the ipopeng.htm, if the error persists, please add the following javascript to the top of ipopeng.htm:

alert(self.location.href);

After reloading the page you should see a popup with the URL - take a look at the protocol and domain portion and see if they are consistent with the one on your address bar.

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
Vermule



Joined: 23 May 2006
Posts: 27

PostPosted: Tue Jul 11, 2006 3:13 pm    Post subject: Reply with quote

Correct domain, wrong protocol. (See screenshot.)
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Wed Jul 12, 2006 4:21 am    Post subject: Reply with quote

Which web server are you using? We can't seem to be able to reproduce the problem on tomcat 5.0. If you access our website with secure protocol https, e.g. https://www.calendarxp.net, you'll see that all online examples are working well with no errors or exceptions.

After replacing the ipopeng.htm, we got the rest running by re-enabled the gMonths and gWeekDay options in radleft.js and radright.js files. We also added
Code:
gNextYear=[gd.getFullYear()+1,gd.getMonth()+1,gd.getDate()];
to the 1st line of both js files. The calendar then pops up without any errors under either https or http.

I've attached the modified files here for your reference (you just put the ipopeng.htm in).

I'd also like to tip on the way you modify the engine - you shouldn't do that way. The best way to add control is to modify the plugins.js, changing it to plugins.jsp and move all your server-side definitions there, e.g. redefine the gMonths and gWeekDay, as well as the gEnd. Everything defined in plugins.js will override the values defined in the theme-name.js file. Finally, you just need to modify the name & id of the iframe tags to use plugins.jsp instead of the default plugins.js, while keeping ipopeng.htm unchanged. e.g.

Code:
<iframe name="gToday:radleft:agenda.js:gfPop_1:plugins.jsp" id="gToday:radleft:agenda.js:gfPop_1:plugins.jsp" src="/common/calendar/ipopeng.htm" scrolling="no" frameborder="0" style="width:189px; height:189px; visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Wed Jul 12, 2006 2:33 pm    Post subject: Reply with quote

So let's start from scratch - please install the HelloWorld demo from the package in your localhost web server. Then access it through https and see if any error coming up. If no error, then you may proceed to modify it to your favor and test it step by step until you got the error. This way you will know which part of your code is the actual culprit.
_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
Vermule



Joined: 23 May 2006
Posts: 27

PostPosted: Fri Jul 14, 2006 5:08 pm    Post subject: Reply with quote

I found out the issue. It was actually an internal security filter that I was not aware of.

Thank you for your help with this issue.
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