Prototype 1.7?

16 views
Skip to first unread message

David C. Moody

unread,
Mar 22, 2011, 12:06:15 PM3/22/11
to mytab...@googlegroups.com
Anyone tried mytablegrid with Prototype 1.7 yet?  I was doing some testing, but i never see data.  It stays stuck on the "Loading" screen.  That's the only thing that has changed is prototype/scriptaculous version.

Thanks,
-David

David C. Moody

unread,
Mar 22, 2011, 12:23:50 PM3/22/11
to mytab...@googlegroups.com
Figured it out myself.  Prototype's 1.7 evalJSON function must have gotten stricter.

You have to enclose keys & values in double quotes.  Like below:

{
"options": {
     "pager": {
         "currentPage": "<?php echo $page; ?>",
            "total": "<?php echo $count; ?>",
            "from": "<?php echo $from; ?>",
            "to": "<?php echo $to; ?>",
            "pages": "<?php echo $numPages; ?>"
        }
    },
"rows": <?php echo json_encode($result); ?>
}
Reply all
Reply to author
Forward
0 new messages