Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Popup link to load into iframe
Old 08-12-2005, 07:28 PM   #1
ShamanHack
Calendar User
 
ShamanHack is offline
Join Date: Aug 2005
Posts: 3
Default Popup link to load into iframe

Hi all,

I have purchased the calendar and like it (good job!). I have the calendar working but I would like to have the popup (overlib) windows link to a page that is in a iframe. I have searched the FAQ but have found no solution to this.

In a normal html page I would do this:
<a href="#" onClick="javascript:document.getElementById('myfra me').src = 'mydetails.html';">Details</a>

This would load the mydetails.html page into the frame called 'myframe'. But when I try this in the popup it does not work. I tried many variations of escaping characters but no joy.

Thanks for your help.
Shaman
 

Old 08-12-2005, 07:51 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

I'm not too sure how to do this... I'll look into it, but, maybe someone else has an idea?

The overLIB forums may be helpful...
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 08-15-2005, 10:16 AM   #3
ShamanHack
Calendar User
 
ShamanHack is offline
Join Date: Aug 2005
Posts: 3
Default

Brian,

Thanks for the reply. I believe this is not an overlib issue for this reason:

When I add an event to the calendar I can put a Short Description entry like this:

<a href="http://www.google.com">Test not iframe</a>

This will put a link directly on the calendar that when clicked goes to Google.

However, when I put a Short Description entry like this:

<a href="#" onClick="javascript:document.getElementById('conte ntframe').src = 'http://www.google.com';">Test iframe</a>

It does not work. In this example, I'm not trying to click on the popup but on the calendar itself.

Your thoughts?

Shaman
 

Try this
Old 08-15-2005, 10:56 AM   #4
Macambo
Calendar User
 
Macambo is offline
Join Date: Aug 2005
Posts: 1
Default Try this

Try this one. I am 99% sure it will work.
Just replace the bold code with you own.

Mac

<head>
<script language="JavaScript" type="text/JavaScript">
<!--
function popup(){//v1.44
var v1=arguments,v2=v1[2].split(","),v3=(v1.length>3)?v1[3]:false,v4=(v1.length>4)?parseInt(v1[4]):0,v5=(v1.length>5)?parseInt(v1[5]):0,v6,v7=0,v8,v9,v10,v11,v12,v13,v14,v15,v16;v11= new Array("width,left,"+v4,"height,top,"+v5);for (i=0;i<v11.length;i++){v12=v11[i].split(",");l_iTarget=parseInt(v12[2]);if (l_iTarget>1||v1[2].indexOf("%")>-1){v13=eval("screen."+v12[0]);for (v6=0;v6<v2.length;v6++){v10=v2[v6].split("=");if (v10[0]==v12[0]){v14=parseInt(v10[1]);if (v10[1].indexOf("%")>-1){v14=(v14/100)*v13;v2[v6]=v12[0]+"="+v14;}}if (v10[0]==v12[1]){v16=parseInt(v10[1]);v15=v6;}}if (l_iTarget==2){v7=(v13-v14)/2;v15=v2.length;}else if (l_iTarget==3){v7=v13-v14-v16;}v2[v15]=v12[1]+"="+v7;}}v8=v2.join(",");v9=window.open(v1[0],v1[1],v8);if (v3){v9.focus();}document.MM_returnValue=false;ret urn v9;}
//-->
</script>
</head>
<body>
<a href="pagename.htm" target="targetframe"onClick="popup(this.href,'popupLink','width=200,h eight=200,toolbar=yes,location=yes,status=yes,menu bar=yes,scrollbars=yes,resizable=yes',1);return document.MM_returnValue">pagetitle</a>
</body>
 

Old 08-15-2005, 11:31 AM   #5
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Make sure you have allow HTML enabled in the Setup Manager too...
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 08-17-2005, 10:11 AM   #6
ShamanHack
Calendar User
 
ShamanHack is offline
Join Date: Aug 2005
Posts: 3
Default

Macambo,

Thank you!

That works great! You made my day!

Shaman
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Date link to list page - not popup cantley General 1 08-16-2005 01:53 PM
POPUP link .iNiz General Support 0 07-13-2005 01:14 PM
iframe vs popup = _blank JohanLM General 2 04-04-2005 02:53 AM
How can I link from event day with no popup aemilius General Support 6 07-15-2004 11:23 AM



All times are GMT -4. The time now is 04:28 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |