This is a migrated thread and some comments may be shown as answers.

Tabstrip: load a content using jquery

1 Answer 100 Views
TabStrip (Mobile)
This is a migrated thread and some comments may be shown as answers.
Vanni
Top achievements
Rank 1
Vanni asked on 20 Jul 2012, 08:28 AM
I'm tryiing to "play" with mobile example to see how can be easy is to make a port to kendo an application that use another framework.

I have added:
    <div data-role="footer">
        <div data-role="tabstrip">
            <a href="#tabstrip-profile" data-icon="contacts">Profile</a>
            <a href="#tabstrip-sales" data-icon="history">Sales</a>
            <a href="#tabstrip-rating" data-icon="favorites">Rating</a>
            <a href="#tabstrip-settings" data-icon="settings">Settings</a>
            <a onclick="javascript:apriFig();" data-icon="settings">Fig</a>
        </div>
    </div>


and made a javascript that do:
<script>  
    function apriFig() {
      $("#tabstrip-profile").empty().html('<img src="/static/indicator.gif"/>');
      $('#tabstrip-profile').load('/newtab/');
  }
</script>  

but it don't work: in the response of url /newtab/ i tryed to replace tabstrip-profile... but i don't understand why it don't work.

1 Answer, 1 is accepted

Sort by
0
Francois Lorrain
Top achievements
Rank 1
answered on 16 Aug 2012, 08:53 PM
I'm trying to do the same think but it doesn't work. Anybody have a workaround?

Thanks!
Tags
TabStrip (Mobile)
Asked by
Vanni
Top achievements
Rank 1
Answers by
Francois Lorrain
Top achievements
Rank 1
Share this question
or