⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

No success message when updating/go back to the list



livewire

livewire
  • profile picture
  • Member

Posted 28 November 2012 - 07:56 AM

Im having a strange issue... My crud works fine apart from the[b] UPDATE CHANGES[/b] and [b]GO BACK TO THE LIST[/b].

I have been banging my head for over a week now trying to sort this thing

When i click on update changes it doesn’t show me any success message or this loading thing as in the demo. Instead it shows me,

<textarea>{"success":true,"insert_primary_key":true,"success_message":"<p>Your data has been successfully updated. <a href='http:\/\/localhost\/muk\/index.php\/settings\/fees'>Go back to list<\/a><\/p>","success_list_url":"http:\/\/localhost\/muk\/index.php\/settings\/fees\/success\/15"}</textarea>


and when i click on update and go the list nothing happens...

can anyone please help me...

victor

victor
  • profile picture
  • Member

Posted 28 November 2012 - 09:28 AM

Try reinstall the GC library

livewire

livewire
  • profile picture
  • Member

Posted 28 November 2012 - 14:02 PM

i reinstalled but still the same problem...

victor

victor
  • profile picture
  • Member

Posted 28 November 2012 - 15:38 PM

Show your template and controller.

livewire

livewire
  • profile picture
  • Member

Posted 28 November 2012 - 17:28 PM

Controller


function settings()
{
if ($this->session->userdata('user_level')!='1'):
$data['status_msg']= "Sorry you don't have permission to access this feature";
$data['body'] ='status/wrong';
$this->load->view('includes/body',$data);

else:
$crud = new grocery_CRUD();
$crud->set_table('fees')
->set_subject('Information')
->columns('class','fees')
->display_as('class','Grade')
->display_as('fees','Fees');


$crud->required_fields('class','fees');


$data['output'] = $this->grocery_crud->render();
$data['body']='options/settings';
$this->load->view('includes/body',$data);

endif;

}


view
<div class="widget_contents noPadding">

<?php echo $output->output;?>
</div>

livewire

livewire
  • profile picture
  • Member

Posted 29 November 2012 - 18:55 PM

any help on this please?

victor

victor
  • profile picture
  • Member

Posted 29 November 2012 - 19:01 PM

can you send me your project with database dump ?


victor

victor
  • profile picture
  • Member

Posted 01 December 2012 - 19:00 PM

what browser do you use? I have this bug in Opera.
But yesterday it worked well.
It's strange

victor

victor
  • profile picture
  • Member

Posted 01 December 2012 - 20:47 PM

I reinstalled the browser and now it works stable

livewire

livewire
  • profile picture
  • Member

Posted 11 January 2013 - 12:43 PM

im back on this project but i still cant seem to get the edit message working. I did a complete fresh GC installation but still no use


when i click on update i get the below page
[IMG]http://i46.tinypic.com/qyd8i9.jpg[/IMG]

when i click on update and go back to the list or cancel nothing happens..


can someone please help on this?

victor

victor
  • profile picture
  • Member

Posted 11 January 2013 - 12:46 PM

what browser do you use?

livewire

livewire
  • profile picture
  • Member

Posted 11 January 2013 - 15:10 PM

i tried in firefox and chrome.. still the same :(

livewire

livewire
  • profile picture
  • Member

Posted 30 January 2013 - 19:30 PM

oh god.. It has been terrible tryn to sort this issue. But i finally figured out that there is a conflict with my template. so,

added the below codes but didnt work
	 $crud->unset_jquery();
$crud->unset_jquery_ui();


i removed all the additional javascripts and tried but i still get the same problem. When i just output the results without the template it works fine.

while going through the code i found in grocery_crud.php line 1884

/* The textarea is only because of a BUG of the jquery form plugin with the combination of multipart forms */
echo "<textarea>".json_encode(array(
'success' => true ,
'insert_primary_key' => $update_result,
'success_message' => $success_message,
'success_list_url' => $this->getListSuccessUrl($state_info->primary_key)
))."</textarea>";


looks like instead of showing the success message its showing me the textarea. in the comment in that code it says about a bug in the jquery form plugin. can someone tell me what is that plugin and how can fix that issue please?

victor

victor
  • profile picture
  • Member

Posted 30 January 2013 - 19:38 PM

Can I see your project or your project is in your local machine?

carmad94

carmad94
  • profile picture
  • Member

Posted 19 August 2014 - 06:39 AM

I have this issue before. I fixed this by removing 2 javascript link in my footer. Must be a conflict in the javascript


Hector Davila

Hector Davila
  • profile picture
  • Member

Posted 19 August 2015 - 22:06 PM

Excuse from my english bad.

 

but the problem is in jquery.min.js

 

I fixed this by removing my footer.

 

Grettings since Venezuela.


Sanaa Alauddin Khan

Sanaa Alauddin Khan
  • profile picture
  • Member

Posted 22 August 2015 - 03:11 AM

Im getting this issue too. But I have no footer in my view. How and where do I disable the extra javascript then?