Using the Joomla Calendar in a form

Post any questions you may have here

Using the Joomla Calendar in a form

Postby mariokrupik on Sat Jul 28, 2007 9:29 pm

Hi,

I am trying to get the joomla calendar to work inside a form of chronoforms within joomla1.5

I am using this html code:
Code: Select all
<link href="style.css" rel="stylesheet" type="text/css">

<? JHTML::_('behavior.calendar'); ?>


<div id="form">
<table width="610px" class="table_form" cellspacing="0">
<tr>
  <td class="td_dark" colspan="2"> Anreisetermin:
</td>
</tr>
  <td class="text_links"> Anreisedatum:
</td>
    <td class="text_rechts">
<input class="inputbox" type="text" name="dates" id="dates" size="15" maxlength="10" value="<? php echo $this->row->dates; ?>" />
<a href="#" onclick="return showCalendar('dates', 'dd-m-y');"><img class="calendar" src="images/blank.png" alt="calendar" /></a>

      Anfrage<br/></td>
</tr>
</table>
</div>


But I get an error message of the 2nd php variable.
so I exchanged:
value="<? php echo $this->row->dates; ?>"
with value="Your Date"

Now the Form Displays correctly, but I don`t see the calendar, neither is it working

Mario
mariokrupik
Senior Boarder
 
Posts: 40
Joined: Wed Jun 27, 2007 11:48 am

Re:Using the Joomla Calendar in a form

Postby admin on Sat Jul 28, 2007 11:13 pm

Hi Mario,

If its Joomla 1.0 then I would be able to help, but with joomla 1.5 I can't help you at least for now, Please let me know if you need the joomla 1.0 code.

Cheers

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3173
Joined: Mon Aug 14, 2006 5:29 am

Re:Using the Joomla Calendar in a form

Postby mariokrupik on Sat Jul 28, 2007 11:15 pm

If you can post me the code for joomla 1.0, I`m sure to get a whole step further.

thanks,
Mario
mariokrupik
Senior Boarder
 
Posts: 40
Joined: Wed Jun 27, 2007 11:48 am

Re:Using the Joomla Calendar in a form

Postby admin on Sat Jul 28, 2007 11:24 pm

Mario,

You will need to add these lines of code :

Code: Select all
<?php
mosCommonHTML::loadCalendar();
?>
<link rel="stylesheet" type="text/css" media="all" href="includes/js/calendar/calendar-mos.css" title="green" />
      <script type="text/javascript" src="includes/js/calendar/calendar.js"></script>
      <script type="text/javascript" src="includes/js/calendar/lang/calendar-en.js"></script>

<input class="inputbox" type="text" id="start_date" name="start_date" value="<?php echo $row->start_date; ?>" size="11" maxlength="11" />
            <input type="reset" class="button" value="..." onclick="return showCalendar('start_date', 'mm-dd-y');" />

ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3173
Joined: Mon Aug 14, 2006 5:29 am

Re:Using the Joomla Calendar in a form

Postby mariokrupik on Mon Jul 30, 2007 3:59 pm

HI,

got it working now.

Code: Select all
<?php JHTML::_('behavior.calendar'); ?>
<link rel="stylesheet" href="templates/forms/anfrage.css" type="text/css">
<script type="text/javascript" src="includes/js/joomla.javascript.js"></script>

<input class="inputbox" type="text" name="anreise" id="anreise" size="25" maxlength="10" value="" />
<a href="#" onclick="return showCalendar('anreise', 'dd-mm-y');"><img class="calendar" src="images/blank.png" alt="calendar" /></a>



too bad, it`s just not working in IE6.
Must be a problem with the Calendar itself, as the calendar is not working in the joomla backend either with ie6.

thanks again,
Mario
mariokrupik
Senior Boarder
 
Posts: 40
Joined: Wed Jun 27, 2007 11:48 am

Re:Using the Joomla Calendar in a form

Postby texttoscreen on Thu May 08, 2008 9:20 pm

Hi Guys

I'm using to use the Code in Post #1492, but I can't seem to get it to work with my Joomla 1.14 Version Using ChronosForm.

Please help with a Step by Step instructions
Raoul
texttoscreen
Fresh Boarder
 
Posts: 2
Joined: Thu May 08, 2008 5:27 pm

Re:Using the Joomla Calendar in a form

Postby texttoscreen on Thu May 08, 2008 9:21 pm

Here's my website http://www.firetext.tv and I have the code running on

http://www.theironhorse.info/party-bookings.html
texttoscreen
Fresh Boarder
 
Posts: 2
Joined: Thu May 08, 2008 5:27 pm

Re:Using the Joomla Calendar in a form

Postby GreyHead on Fri May 09, 2008 7:30 pm

Hi texttoscreen,

Please check this thread the answers are there or are linked to from there IIRC.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3412
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany


Return to ChronoForms Questions & Answers

Who is online

Users browsing this forum: chakatz, Google [Bot], MSNbot Media, Yahoo [Bot] and 1 guest

cron