jquery fancy box 팝업창을 사용하여 .... 팝업으로 ... 그러나 제출할 때 ... 리디렉션하는 양식 같은 창에서 ..... 팝업창에 ... 내 페이지를 열려있는 다른 창으로 리디렉션하고 싶습니다 .... 같은 팝업이 아님 ...jquery fancybox에서 리디렉션하는 방법 다음 페이지로 ... jquery에서
대상 빈을 사용했지만 모든 작업이 ... 클릭에 시간 ... 나는 내 로그인이 완료 왔을 때 .... 내가 CodeIgniter의 내 프로젝트를 만드는 해요 .....
내 컨트롤러 ....
public function login()
{
if ($this->input->post('action'))
{
$this->form_validation->set_rules('user_name', 'Username','required|valid_email');
$this->form_validation->set_rules('password', 'Password', 'required|');
if ($this->form_validation->run() == TRUE)
{
$username = $this->input->post('user_name');
$password = $this->input->post('password');
$rember = ($this->input->post('remember')!="") ? TRUE : FALSE;
if($this->input->post('remember')=="Y")
{
set_cookie('userName',$this->input->post('user_name'), time()+60*60*24*30);
set_cookie('pwd',$this->input->post('password'), time()+60*60*24*30);
}
else
{
delete_cookie('userName');
delete_cookie('pwd');
}
$this->auth->verify_user($username,$password);
if($this->auth->is_user_logged_in())
{
if($this->session->userdata('ref')!="" )
{
redirect($this->session->userdata('ref'),'');
}
else
{
redirect('members/myaccount','refresh');
}
}
else
{
$this->session->unset_userdata(array("ref"=>'0'));
$this->session->set_userdata(array('msg_type'=>'error'));
$this->session->set_flashdata('error',$this->config->item('login_invalid'));
redirect('users/login', '');
}
}
else
{
$data['heading_title'] = "Login";
$this->load->view('users_login',$data);
}
}
else
{
$data['heading_title'] = "Login";
$this->load->view('users_login',$data);
}
}
리디렉션 할 필요가
$(window).load(function (e) {
$("#back-top").hide();
$(function() {
$(window).scroll(function() {
if ($(this).scrollTop() > 100) {
$('#back-top').fadeIn();
} else {
$('#back-top').fadeOut();
}
})
});
$(".login").fancybox({
'width': 367,
'height': 600,
'autoScale': false,
'type': 'iframe'
});
$(".fotget").fancybox({
'width': 425,
'height': 286,
'autoScale': false,
'type': 'iframe'
});
$(".profile").fancybox({
'width': 700,
'height': 505,
'autoScale': false,
'type': 'iframe'
});
$(".details").fancybox({
'width': 400,
'height': 200,
'autoScale': false,
'type': 'iframe'
});
$(".enquiry").fancybox({
'width': 359,
'height': 450,
'autoScale': false,
'type': 'iframe'
});
$(".contact").fancybox({
'width': 317,
'height': 353,
'autoScale': false,
'type': 'iframe'
});
$(".map").fancybox({
'width': 425,
'height': 355,
'autoScale': false,
'type': 'iframe'
});
});