I have used jquery for my page and all browsers but in IE it's not working and after a lot of struggle I came to know it was because json is not working and I tried placing this code and even after then it's not working.
<!--[if lt IE 8]>
<script src="http://www.json.org/json2.js"></script>
<![endif]-->
So, how can I make json to work for ie7, ie8...?
I've something like this:
<?php
$app = JFactory::getApplication();
$menu = $app->getMenu();
$link1 = 'index.php?Itemid=546';
$link2 = 'index.php?Itemid=540';
?>
<!--[if lt IE 8]>
<script src="http://www.json.org/json2.js"></script>
<![endif]-->
<script>
jQuery(document).ready(function($){
var $morenews = $('<a>',{
class: 'all-news-link',
href: <?php echo json_encode( $link1 ); ?>
});