jquery - Encountering "Property 'getItem' of object #<Object> is not a function" in DataTables in Chrome -


the datatables search not working in chrome. code works fine in firefox.

i checked chrome console: uncaught typeerror: property 'getitem' of object #<object> not function

this code:

html:

<table class="table-announcement" id="announcement"> <thead>     <tr>         <th class="header">announcement</th>         <th class="header">date</th>         <th class="header">posted by</th>     </tr> </thead> <tbody> <?php foreach ($announcement $post): ?>     <?php $msg = "'<h1>" . $post['title'] . "</h1><h2>by: " . $post['username'] . "</h2><br/>" . str_replace("\r\n", "", nl2br(htmlspecialchars($post['body']))) . "'";?>      <tr>          <td><a href="javascript:;" class="prompt" onclick="$.prompt(<?php echo $msg;?>)"><?php echo $post['title'];?></a></td>          <td><?php echo $post['date'];?></td>          <td><?php echo $post['username'];?></td>      </tr> <?php endforeach;?> </tbody> 

this jquery:

$(document).ready( function () {     $('#announcement').datatable();     $('#user').datatable();     $('#school').datatable(); } ); 


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -