|
Index | Recent Threads | Register | |
![]() |
Forums » List all forums » Forum: Wish List » Thread: Embedded calendar start date W/O hard coding html! |
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 |
|
jamiecd77
Veteran ![]() Joined: Oct 25, 2006 Posts: 77 Status: Offline |
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 |
||
|
jamiecd77
Veteran ![]() Joined: Oct 25, 2006 Posts: 77 Status: Offline |
Could also use this to create a "jump to" date option on my page, for the embedded calendar... ---------------------------------------- Peer-Support Specialist |
||
|
support
localendar Expert ![]() Joined: Aug 9, 2022 Posts: 6437 Status: Offline |
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 |
||
|
jamiecd77
Veteran ![]() Joined: Oct 25, 2006 Posts: 77 Status: Offline |
Check this out, shinizzle!!!!! http://www.djjamie.com/caltest.php?start_date=1/1/11 ---------------------------------------- Peer-Support Specialist |
||
|
support
localendar Expert ![]() Joined: Aug 9, 2022 Posts: 6437 Status: Offline |
Ah, but you used PHP which is cheating, right? ![]() 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 |
||
|
jamiecd77
Veteran ![]() Joined: Oct 25, 2006 Posts: 77 Status: Offline |
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 |
||
|
westlake
New Member
|
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 |
||
|
jamiecd77
Veteran ![]() Joined: Oct 25, 2006 Posts: 77 Status: Offline |
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 |
||
|
jamiecd77
Veteran ![]() Joined: Oct 25, 2006 Posts: 77 Status: Offline |
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 |
||
|
[Show Thread Printable Version] [Post new Thread] |
Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us |