开发者

load remote content and append url with #pageTitle

How do you load a remote file and append the page's URL with the loaded contents title or other attribute and make them bookmarkable? I need to be able to enter the appended URL and have that content loaded. The BBQ plug in is too bulky.

Using the following it appends the URL with #undefined

var href = $(this).attr('href');
        $("#content").load(href, function() {
            var request=$(this).attr('id');                           
            wind开发者_如何学Pythonow.location.hash = request.hash;
        });


You could try sammy.js http://sammyjs.org/


Or you can use ajax upload http://valums.com/ajax-upload/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜