[eluser]Unknown[/eluser]
Hi, first of all, sorry, if this question has been answered elsewhere, tried to look for it.
I have a strange problem with the js_calendar plugin. Tried to make everything just like the comments said in the file, but when I load the page, the calendar comes up nicely, but it won't add the date i pick on to the text field. Here are my controller and view files:
The controller:
Code:
<?php
class Clndr extends Controller {
function index()
{
parent::Controller();
$this->load->plugin('js_calendar');
$this->load->view('v_munka_header');
$this->load->view('v_clndr');
}
}
The header view file(v_munka_header.php):
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<?php echo js_calendar_script('munka'); ?>
</head>
<body>
The main view file (v_clndr.php):
Code:
<?php echo js_calendar_write('entry_date', time(), true);?>
<form name="munka">
<input type="text" name="entry_date" value="">
<p><a href="[removed]void(0);">Today</a></p>
</form>
</body>
</html>
Thank you in advice, every idea is appreciated.
Coriolan