Tom Lehman
Tom Lehman

Reputation: 89313

Can't get `Spinner` option to work (jQuery UI tabs)

According to http://jqueryui.com/demos/tabs, tabs that load content via AJAX will show "Loading..." while the content loads. If you want to customize this message, you can (supposedly) set the spinner option:

$("#tabs").tabs({ spinner: "Just a sec..."});

However, I'm having these problems:

Any thoughts?

Upvotes: 1

Views: 457

Answers (1)

Tom Lehman
Tom Lehman

Reputation: 89313

Okay, I found the answer (http://osdir.com/ml/jquery-ui/2009-04/msg00769.html) -- the contents of the tab need to be enclosed in a <span>:

<li><a href="http://url">will not work</a></li>

<li><a href="http://url"><span>WILL work</span></a></li>

Needless to say, it's pretty insane that this is:

  • Not documented anywhere
  • Incorrect on the example page

Upvotes: 2

Related Questions