Hi All,
I'm developing a Calendar project . I have all the concepts and framework with me upto my knowledge.
I need to show the events on a particular day which i will fetch it from mysql values by PHP.
Forgive me if im not posting in a professional way.
<td class="cal_events" onclick="createEventonDate('18-3-2010')">//createEventonDate('18-3-2010') makes the form for events creation asking for event name and event place
<a title="" href="showMonthEvents.php?event=67&sho=0">18</a>
<br/>
<div id="viewEvent18-3-2010" style="display: none; height: 121px; width: 229px;"> // I will Not show this div content until an Onclick Event, which calls
displayEvent(18) occurs.
<p>1st Event</p>
<p>2nd Event</p>
<p>
<a id="close" onclick="closeViewEvents(18)" href="javascript:void(0)">Close</a>
</p>
</div>
<p onclick="displayEvent('18-3-2010')">Show events on 18</p> // displayEvent(18-3-2010) makes the viewEvent18-3-2010 display:block from display:none;
</td>
:
But what my problem is Onclick <p> tag is available inside the <td> so that whenever the function displayEvent('18-3-2010') on <p> tag is called automatically "createEventonDate('18-3-2010')" is called on background. I can manually make to hide the form in displayEvent(18-3-2010) function which is not the right way,makes the design collapse and also it doesnt make sense in a professional manner. how to solve this problem. I will be pleased to anyone who Have come across these kind of problems and help me.ANY SUGGESTIONS. I dont where im going wrong. '(:'(;);)