How to POST form values to controller function(codeigniter) using jquery modal?

Hi guys,
Actually i am trying to submit form and post values to controller
function using jquery modal popup.
But it’s sending values in URL as parameters. i need to post values
because values can be large that can be cause of “the requested url’s
length exceeds the capacity” error.
so, please help me how i can do it?

here is my js funciton.

  function hierarchyManagementPrompt(){
  var width = 900;
  var height= 500;
  var resizablez=false;
  var address='top_menu/hierarchy_management_prompt/'; 

  var $form = $('#showBI'),
  $inputs = $form.find("input, select, button, textarea"),
  serializedData = $form.serialize();

       $.modal({
                url: site_url+address,
                data: serializedData,
                title: 'Transfer Detail',
                width:width,
                resizable:resizablez,
                height:height,
                buttonsAlign : 'left',
                buttons: {
                        '<img src="../resources/images/icons/fugue   /tick-circle.png">&nbsp;<span id="modelGoBtn">Back To Transfer</span>': function(win) {win.closeModal();}
                }
            }); 
warningMsg();}

Hi,

If I understand your question correctly, you are trying to POST values from a jQuery modal to a PHP script (forget that it’s codeigniter for now). Is that correct?

If so, could you make a runnable example of the jQuery modal popup which demonstrates the problem you are having.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.