开发者

jQuery History Plugin Error: $.history is undefined

I'm not exactly a novice, but I can't for the life of me figure out why something so simple isn't working.

I'm getting an error $.history is undefined when trying to run this jQuery plugin...

http://www.mikage.to/jquery/jquery_history.html

here is开发者_StackOverflow社区 my page...

http://hupcapstudios.com/includeTest/getit.php

can anyone tell me what I'm missing?

EDIT: (BTW. Using FF 3.5 on Mac and reading the error in Error Console)


Your problem seems to be in the misuse of the history plugin. If you read the source of the file you've included in your page you'll see it simply doesn't define a history member.

I think you're looking for $.historyInit instead of $.history.init


The $.history.init() format is from the newer version of the plugin, found here: http://github.com/tkyk/jquery-history-plugin

You just need to update your jquery.history.js :)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜