Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to load the value of <a href=""> tag using ajax
    primarykey
    data
    text
    <p>I'm working with Codeigniter Calendar Class library and I want the "next month" and "previous month" button work without reloading the page, just refresh the month.</p> <p>In my Model I've created the calendar template with the following configuration:</p> <pre><code> $this-&gt;conf = array( 'start_day' =&gt; 'monday', 'show_next_prev' =&gt; true, 'next_prev_url' =&gt; base_url().'index.php/admin/reservation' ); $this-&gt;conf['template'] = ' {table_open}&lt;table border="0" cellpadding="0" cellspacing="0"class="calendar"&gt;{/table_open} {heading_row_start}&lt;tr&gt;{/heading_row_start} {heading_previous_cell}&lt;th class="prev_button"&gt;&lt;a href="{previous_url}"&gt;&amp;lt;&amp;lt;&lt;/a&gt;&lt;/th&gt;{/heading_previous_cell} {heading_title_cell}&lt;th colspan="{colspan}"&gt;{heading}&lt;/th&gt;{/heading_title_cell} {heading_next_cell}&lt;th class="next_button"&gt;&lt;a href="{next_url}"&gt;&amp;gt;&amp;gt;&lt;/a&gt;&lt;/th&gt;{/heading_next_cell} {heading_row_end}&lt;/tr&gt;{/heading_row_end} {week_row_start}&lt;tr&gt;{/week_row_start} {week_day_cell}&lt;td&gt;{week_day}&lt;/td&gt;{/week_day_cell} {week_row_end}&lt;/tr&gt;{/week_row_end} {cal_row_start}&lt;tr class="days"&gt;{/cal_row_start} {cal_cell_start}&lt;td&gt;{/cal_cell_start} {cal_cell_content} &lt;div class="day_num"&gt;{day}&lt;/div&gt; &lt;div class="content"&gt;{content}&lt;/div&gt; {/cal_cell_content} {cal_cell_content_today} &lt;div class="day_num highlight"&gt;{day}&lt;/div&gt; &lt;div class="content"&gt;{content}&lt;/div&gt; {/cal_cell_content_today} {cal_cell_no_content} &lt;div class="day_num"&gt;{day}&lt;/div&gt; {/cal_cell_no_content} {cal_cell_no_content_today} &lt;div class="day_num highlight"&gt;{day}&lt;/div&gt; {/cal_cell_no_content_today} {cal_cell_blank}&amp;nbsp;{/cal_cell_blank} {cal_cell_end}&lt;/td&gt;{/cal_cell_end} {cal_row_end}&lt;/tr&gt;{/cal_row_end} {table_close}&lt;/table&gt;{/table_close} </code></pre> <p>And in my View:</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function(){ $('.next_button').click(function(){ alert("working"); }); }); &lt;/script&gt; </code></pre> <p>I just really don't know on how to load the value of the class "prev_button" and "next_button" in my calendar template. So please help! </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload