Yii Framework Forum: Yiibooster Wizard - How Do I Use It For Ajax Forms? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yiibooster Wizard - How Do I Use It For Ajax Forms? Rate Topic: -----

#1 User is online   IainG 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 14-December 11

Posted 13 March 2013 - 08:01 AM

I'm having trouble getting the YiiBooster Wizard Extension to work with forms.

What I'm trying to do is have a form on each page, and then use the onNext event to submit the form via jQuery.ajax().

I've got the submission working ok, and I can process the result as JSON using the callback, but where I'm stuck is getting the wizard to either stay on the existing page or proceed to the next page based on the result of the JSON.

I've tried getting onNext to return false so that it does't automatically proceed, then using .done to trigger the wizard's next() method, but that doesn't seem to work, the wizard just stops.

Any suggestions?

Iain
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users