Date alignment Issue #2 - Post ID 249475

User 2033548 Photo


Registered User
40 posts

Hi:

I am having an issue with my dates not being in the correct boxes on the calendar. I was hoping someone could look at my code and help me? Here is my current coding:

<p class="auto-style1">
<br />
</p>
<p class="auto-style1">
<div align="center"> <!-- This is where the calendar HTML will be inserted -->
<div id="cc_webcalendar">
<p>Error, content did not load.</p>
</div>

<!-- this loads the calendar -->
<script type="text/javascript">
var maxdate=new Date("06/01/2016");
var mindate=new Date("03/01/2015");
loadTodaysCalendar(mindate,maxdate,"calendar");
</script>
</div>
</div>

Thanks!

MAUIWH
User 187934 Photo


Senior Advisor
20,181 posts

Hi Walter,
Were going to need a link to the page because it's probably something else on your page affecting your calendar.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2033548 Photo


Registered User
40 posts

Hello Eric:

Thanks so much for responding, I am working on this for my High School. I am not good with code but I am trying to learn. Here is the link to my page:

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

Regards,

MAUIWH
User 187934 Photo


Senior Advisor
20,181 posts

I would fix a few of these errors first and see if that helps.
https://validator.w3.org/check?uri=http … mp;group=0
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2033548 Photo


Registered User
40 posts

Yikes:

Sorry but this is way above what I know how to do. Eric do you work on issues like this for people? I need to fix this and can pay a bit to someone who can help.

Regards,

MAUIWH
User 187934 Photo


Senior Advisor
20,181 posts

The best thing to do is to look at them one at a time. The area that looks to be most of the problem is here.

<p class="auto-style1">
<div align="center">
<!-- This is where the calendar HTML will be inserted -->
<div id="cc_webcalendar">
<p>Error, content did not load.</p>
</div>

<!-- this loads the calendar -->
<script type="text/javascript">
var maxdate=new Date("06/01/2016");
var mindate=new Date("03/01/2015");
loadTodaysCalendar(mindate,maxdate,"calendar");
</script>
</div>
</div>

<!-- this loads the calendar -->
<script type="text/javascript">
var maxdate=new Date("06/01/2016");
var mindate=new Date("03/01/2015");
loadTodaysCalendar(mindate,maxdate,"calendar");
</script>
&nbsp;<br />
<br />
</p>

There appears to be a stray div tag
loadTodaysCalendar(mindate,maxdate,"calendar");
</script>
</div>
</div>

<!-- this loads the calendar -->
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2033548 Photo


Registered User
40 posts

Hi Eric:

So do you think I should try removing what I marked below?:

loadTodaysCalendar(mindate,maxdate,"calendar");
</script>
</div>
</div> REMOVE THIS ONE LINE ITEM ERIC?
User 187934 Photo


Senior Advisor
20,181 posts

It either needs to me removed or moved to it's proper location. I would try removing it first. If the validator says you have one missing you can put it back in the page in the correct spot.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2033548 Photo


Registered User
40 posts

Hi:

OK I tried removing these one at a time, no change even with both removed. I guess I should make it clear that its the event that is now showing up in the date box, the event straddles two different dates.

Thanks!

Mauiwh
User 187934 Photo


Senior Advisor
20,181 posts

Change the div for the calendar to this.
<div id="cc_webcalendar" style="width:800px">
<p>Error, content did not load.</p>
</div>

I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.