Welcome Guest, Not a member yet? Register   Sign In
js_calendar plugin does not writes the selected date to the text field
#1

[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">
&lt;html &gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;?php echo js_calendar_script('munka');  ?&gt;
&lt;/head&gt;
&lt;body&gt;

The main view file (v_clndr.php):
Code:
&lt;?php echo js_calendar_write('entry_date', time(), true);?&gt;
&lt;form name="munka"&gt;
&lt;input type="text" name="entry_date" value=""&gt;
<p><a href="[removed]void(0);">Today</a></p>
&lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;

Thank you in advice, every idea is appreciated.
Coriolan




Theme © iAndrew 2016 - Forum software by © MyBB