开发者

How can I link to a specific tab created with Dojo/Zend Combination

I have the following html / Javascript:

http://pastie.org/782618

And the following Zend PHP Code for the tabs:

http://pastie.org/782620

I would like to link to the Second Tab (Event Information2). If possible I would prefer to be able to have a button on the first tab that when clicked it goes to the next form. If that isn't possible I could also do a link to the second tab as long as it wouldn't refresh the page (there will be content in a form that will need to not be lost).开发者_运维技巧


I figured it out, for future users:

    $next = new Zend_Form_Element_Button ('next', array('onClick'=>"dijit.byId('createEventForm-TabContainer').forward()"));
    $next->setLabel('Next');                   

    $back = new Zend_Form_Element_Button ('back', array('onClick'=>"dijit.byId('createEventForm-TabContainer').back()"));
    $back->setLabel('Back'); 
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜