开发者

load remote content and append url with #pageTitle

开发者 https://www.devze.com 2023-02-11 02:17 出处:网络
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

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

精彩评论

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