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/
精彩评论