How to access fuelux wizard form data?

有些话、适合烂在心里 提交于 2019-12-25 06:27:53

问题


I am using fuelux wizard with a form. I am submitting the form using javascript through finished.fu.wizard event. Is there any other/better way to submit the form? When I am trying to access the data in controller, I am getting nothing.

View Part

<div id="wizard1" class="wizard wizard-ux">
    <ul class="steps">
        <li class="active"> Step 1</li>
    </ul>
    <div class="step-content">
        <form action="/controller_function" class="form-horizontal" id="form1">
            <input type="text" id="input1" name="input1">
        </form>
    </div>
</div>

jquery part:

$('#wizard1').on('finished.fu.wizard', function(e){
    $('#form1').submit();
});

Controller part:

function controller_function(){
    var_dump($this->input->post);
}

No Post variables are visible in controller part.(I am using codeigniter framework but I dont think that is creating any problem). What is it that I am missing here? Any help is really appreciated.


回答1:


Submitting the form on the finished.fu.wizard works. You can check this fiddle to verify: http://jsfiddle.net/yu4qeqs0/1/

I'd have to say the problem lies with your contoller code, framework, environment, etc...



来源:https://stackoverflow.com/questions/35715108/how-to-access-fuelux-wizard-form-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!