www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] [Javascript] Deep-Linking not working in IE8

Hybrid View

  1. #1
    Join Date
    Jun 2012
    Posts
    2

    resolved [RESOLVED] [Javascript] Deep-Linking not working in IE8

    http://forums.aspfree.com/html-javas...tml#post979566
    http://forum.snom.com/index.php?showtopic=9895
    http://websized.com/java-jquery-deep...en-in-ie8-fout

    Dear all,

    My deep-linking doesn't work anymore in IE8, the cause for this is unkown.
    This works in: IE9, Firefox, Chrome, Opera.

    Fo the persons who are unkown with deep-linking: http://www.asual.com/jquery/address/

    My code in index.html
    Code:
            <script type="text/javascript" src="js/jquery.js"></script>
    	<script type="text/javascript" src="js/address.js"></script>
    	<script type="text/javascript" src="js/script.js"></script>
    	<script type="text/javascript">
    
    $('article').load("pages/Home/Home.html");
    $('#News').load("pages/nieuws/nieuws.html");
    $(window).load(function() {
    $('#slider').nivoSlider();
    });	</script>
    My code in script.js:

    Code:
    $(document).ready(function($) {
    	$.address.change(function(event)	{
    		var page = event.value;
    		if (page == '/') {
    			page = 'Home';
    			}
    
    		$('article').load(page.replace("/", ''), function(){
                $(this).find('#slider').nivoSlider();});
    
    	});
    		
    	$('nav a').address(function()	{
    		return $(this).attr('href').replace(/^#/, '');
    	});
    })(jQuery);
    I updated both jquery.js and address.js to the latest verison.
    I tried the minified and the 'big' version. With both no success.

    I do get an error message in IE8:
    "Function expected" on script.js on line 1 char 1

    Ofcourse I googled this problem but I couldn't find anything.
    Maybe I'm searching in the wrong direction.

    Does any one knows how to fix this problem?

    Thanks in advance.

  2. #2
    Join Date
    Jun 2012
    Posts
    2
    Finally got it working, used an IE8 tag in my index.html
    Had to insert an html5 hack for ie8.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles