English 中文(简体)
jQuery Address Plugin - Not allowing loading ajax?
原标题:

I am trying to test the jQuery Address Plugin and it seems to not allow ajax to work in the change function.

I am using:

$.address.change(function(event) {
    $( #content ).load(event.value+  #content );
    $.address.title(event.value);
});
$( a ).click(function() {
    $.address.value($(this).attr( href ));
});

While I can use event.value for other things, it just does not seem to let the .load() function work. Even trying a static URL in .load() does nothing. Is something in the plugin preventing this? I thought this was the point of the plugin!

最佳回答

Try using event.pathNames instead, I think you cant get this to work because you are not replacing the "/" from the value. Using event.pathNames you dont have to do that....

$( #content ).load(event.pathNames+ .htm #content );
问题回答

暂无回答




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签