Welcome Guest, Not a member yet? Register   Sign In
How can i call a jquery dialogue box if form submitted successfully ?
#1

[eluser]Kiran cet[/eluser]
I want to call a jquery dialogue box after successful form submission ?

I am using ocular template library.

Code:
<?php

class College_registration extends CI_Controller
{
function __construct()
{
  parent::__construct();
  
}

function registration()
{
  $this->template->current_view = ('college');
  $this->form_validation->set_error_delimiters('<div class="error2">', '</div>');

  $this->form_validation->set_rules('college_url','this field','required');
  $this->form_validation->set_rules('admin_id','this field','required|is_unique[admin_details.userid]');
  $this->form_validation->set_rules('college_code','college code',
  
  if($this->form_validation->run()==FALSE)
  {
   $this->template->render();
  }
  else
  {
   $this->load->model('College_Register_Model');
   $this->College_Register_Model->insert_data(); //data inserted successfully

   // then i want to call a jquery function
  
  }
}
}


Please help me....


Messages In This Thread
How can i call a jquery dialogue box if form submitted successfully ? - by El Forum - 07-24-2012, 11:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB