Welcome Guest, Not a member yet? Register   Sign In
CI calendar + ajax
#1

[eluser]Mitja B.[/eluser]
http://ajax.fencecompany.net/calendar

i want to use this calendar but i have problem.

This is my code:

controler

Code:
function dodajPromocijo()
    {
        $data['title'] = ":: Dodaj promocijo ::";
                      
        $this->load->library('calendar');

        $this->load->plugin('js_calendar');
                            
        $this->load->view('promotion_add', $data);
    }

and view:

Code:
<link rel="stylesheet" type="text/css" href="<?=base_url()?>css/calendar_pi.css" />
<?php echo js_calendar_script('my_form');  ?>

<h1 id="introduction">Calendar</h1>


<table border="0" cellpadding="10" cellspacing="0">
<tr>
    <td valign="top">
        &lt;?php echo js_calendar_write('entry_date', time(), true); ?&gt;
        &lt;form name="my_form"&gt;
            &lt;input type="text" name="entry_date" value=""&gt;
        &lt;/form&gt;
    </td>
</tr>
</table>

JS calendar does not work, when i click on date nothing happens. No date is written.
Problem is with &lt;input type="text" name="entry_date" value=""&gt;

What i am doing worng?

Can i change the translation on JS calendar. January 2009 to Januar 2009 and if yes how?

Thx
#2

[eluser]Mitja B.[/eluser]
i check for JS error and i get insert_date is not defined
#3

[eluser]meigwilym[/eluser]
Check that the actual javascript source code is included in the page. The example does not show where the js is linked to (usually in the document &lt;head&gtWink.

Download Firebug extension for Firefox to aid you.

Mei




Theme © iAndrew 2016 - Forum software by © MyBB