Welcome Guest   | Login   
  Search  
  Index |  Recent Threads |  Register | 


Quick Go »
Thread Status: Normal
Total posts in this thread: 9
[Change thread status] [Delete this Thread] [Move this Thread]
[Add To My Favorites] [Watch this Thread] [Post new Thread]
Author
Previous Thread This topic has been viewed 221 times and has 8 replies Next Thread
jamiecd77
Veteran
Member's Avatar


Joined: Oct 25, 2006
Posts: 77
Status: Offline
Edit this Post   Embedded calendar start date W/O hard coding html! Reply to this Post
Reply with Quote
[Delete this Thread]

I have a wonderful thought, and no idea how to implement.

you can see both of my embedded calendars at

http://www.djjamie.com/calendar.htm


What I would like to do, is call out a start date for the embedded calendar, but NOT from the page it is embedded in.

in other words, with the url above, I could easily make the start date pull.

What I want is a link, located on say a forum, or something, to link to MY page, with the embedded date.

like

http://www.djjamie.com/calendar.htm?start_date=1/1/09

of course, my html page has no idea what that means, and ignores the ?start_date=1/1/09

Is there html code to pass that start info on to the embedded calendar?

I realize this may be a regular html question versus localendar, but hey, how cool would that be?
----------------------------------------
Peer-Support Specialist
[Jan 29, 2008, 7:34:51 PM] [68.202.117.182] Show Post Printable Version    http://www.djjamie.com [Link] Report threatening post: please login first  Go to top 
jamiecd77
Veteran
Member's Avatar


Joined: Oct 25, 2006
Posts: 77
Status: Offline
Edit this Post   Re: Embedded calendar start date W/O hard coding html! Reply to this Post
Reply with Quote
[Delete this Post]

Could also use this to create a "jump to" date option on my page, for the embedded calendar...
----------------------------------------
Peer-Support Specialist
[Jan 29, 2008, 7:49:37 PM] [68.202.117.182] Show Post Printable Version    http://www.djjamie.com [Link] Report threatening post: please login first  Go to top 
support
localendar Expert
Member's Avatar


Joined: Aug 9, 2022
Posts: 6437
Status: Offline
Edit this Post   Re: Embedded calendar start date W/O hard coding html! Reply to this Post
Reply with Quote
[Delete this Post]

Of course;

http://www.localendar.com/public/jamiecd77?start_date=1/1/2008

is the format that works with localendar. As for passing it from one url to another, generally that would work by examining the url request object and adding it to a redirect. Easily done with JSP and ASP; not sure if there's some way to kludge a solution together with just javascript.
----------------------------------------
Marc Higgins
Support Associate, localendar.com
Follow us on Twitter! http://www.twitter.com/localendar_news
[Jan 30, 2008, 4:35:51 PM] [171.159.192.10] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
jamiecd77
Veteran
Member's Avatar


Joined: Oct 25, 2006
Posts: 77
Status: Offline
Edit this Post   Re: Embedded calendar start date W/O hard coding html! Reply to this Post
Reply with Quote
[Delete this Post]

Check this out, shinizzle!!!!!

http://www.djjamie.com/caltest.php?start_date=1/1/11
----------------------------------------
Peer-Support Specialist
[Feb 8, 2008, 2:22:17 PM] [68.202.117.182] Show Post Printable Version    http://www.djjamie.com [Link] Report threatening post: please login first  Go to top 
support
localendar Expert
Member's Avatar


Joined: Aug 9, 2022
Posts: 6437
Status: Offline
Edit this Post   Re: Embedded calendar start date W/O hard coding html! Reply to this Post
Reply with Quote
[Delete this Post]

Ah, but you used PHP which is cheating, right? wink
I'm wondering if there's a way to do this with plain HTML...
If think if you can get the request parameter from javascript you can do it...

First, you'd have to get the querystring ..
var queryString = window.top.location.search.substring(1);

then you'd have to parse out the start_date, and you could do something like

document.write("localendar include code?start_date="+dateyouparsed)

Maybe I'll try and work up actual code this w/e.
----------------------------------------
Marc Higgins
Support Associate, localendar.com
Follow us on Twitter! http://www.twitter.com/localendar_news
[Feb 8, 2008, 10:42:15 PM] [67.86.148.33] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
jamiecd77
Veteran
Member's Avatar


Joined: Oct 25, 2006
Posts: 77
Status: Offline
Edit this Post   Re: Embedded calendar start date W/O hard coding html! Reply to this Post
Reply with Quote
[Delete this Post]

That's what I really wanted, but I got the php code from some anonymous stranger on the internet...I don't do java or php, so I'm stuck with whatever those who code can offer....
----------------------------------------
Peer-Support Specialist
[Feb 18, 2008, 2:04:26 PM] [68.202.117.182] Show Post Printable Version    http://www.djjamie.com [Link] Report threatening post: please login first  Go to top 
westlake
New Member



Joined: Apr 27, 2008
Posts: 3
Status: Offline

Edit this Post   Re: Embedded calendar start date W/O hard coding html! Reply to this Post
Reply with Quote
[Delete this Post]

http://www.localendar.com/public/westlake?style=W1

lists the events starting from Monday, which was 3 days ago. How do I list events in W format starting from today, or tomorrow? Is start_date an option with localendar? I tried using

http://www.localendar.com/public/westlake?style=W1?start_date=5%2F1%2F2008

but that didn't work.

Thanks,
glenda
[May 1, 2008, 3:32:58 PM] [70.132.22.10] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
jamiecd77
Veteran
Member's Avatar


Joined: Oct 25, 2006
Posts: 77
Status: Offline
Edit this Post   Re: Embedded calendar start date W/O hard coding html! Reply to this Post
Reply with Quote
[Delete this Post]

You were on the right track,

you need to use an ampersand after your style, but before the start date.



http://www.localendar.com/public/westlake?style=W1&start_date=5/2/2008

Hope this helps,
Jamie
Non-Monetarily Compensated Peer-Support Specialist.
----------------------------------------
Peer-Support Specialist
[May 1, 2008, 6:03:09 PM] [68.204.203.225] Show Post Printable Version    http://www.djjamie.com [Link] Report threatening post: please login first  Go to top 
jamiecd77
Veteran
Member's Avatar


Joined: Oct 25, 2006
Posts: 77
Status: Offline
Edit this Post   Re: Embedded calendar start date W/O hard coding html! Reply to this Post
Reply with Quote
[Delete this Post]

An important thing to remember, using the week style, you get events for the entire week, including those which have already occurred.

If you want to only have "upcoming events" try style D2.
----------------------------------------
Peer-Support Specialist
[May 1, 2008, 6:04:48 PM] [68.204.203.225] Show Post Printable Version    http://www.djjamie.com [Link] Report threatening post: please login first  Go to top 
[Show Thread Printable Version] [Post new Thread]

Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us