CodeIgniter Forums

Full Version: Error Maximum function nesting level of '100' reached
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I'm trying to create a jQuery update function. I have it so when you click on a link, a light box opens and you are able to edit the content. However once you try to submit the form via AJAX I get this error.

"Maximum function nesting level of '100' reached"
I can't figure out why it's running an infinite loop.

This is the page that opens inside the light box.
  var description = $("#description").val();
    type: "POST",
    url: "<?php echo site_url('builder/update_header'); ?>",
    data: { description: description,
    //data: "name="+status+"_"+record,
    success: function(html) {
     if(html == 1)
      $(".success").html('The header has been updated successfully.');
     else if (html == 0)
  return false;
$header_attr = array(
'name' =>'description',
'id' =>'description',
'value' =>$header_content,
<div class="success"></div>
&lt;?php echo form_open('','id="edit_header"'); ?&gt;
&lt;?php echo form_textarea($header_attr); ?&gt;<br />
&lt;?php echo form_submit('submit','Update Header'); ?&gt;
&lt;?php echo form_close(); ?&gt;

And this is the update function

public function update_header()
  $data = array(
  $this->x_builder->update_header($this->user_id, $data);

  echo 1;