Welcome Guest, Not a member yet? Register   Sign In
How can i create a popup window with result
#1

[eluser]Waqar[/eluser]
Code:
function view_schedule_by_machine()
    {
        $data['query']= $this->empress_model->get_by_machine();
        if($popup = $this->input->post('popup')){
        $atts = array(
                      'width'      => '800',
                      'height'     => '600',
                      'scrollbars' => 'no',
                      'toolbar'   => 'no',
                      'status'     => 'no',
                      'resizable'  => 'no',
                      'screenx'    => '0',
                       'screeny'    => '0'
                  );

        //this should be my popup result page
  
         $this->load->view('popup',$data,$atts);

          // this should be the original record page

         $this->load->view('sch_by_machine',$data);
        }
        else
        {
              //this if popup checkbox not ticked
        $this->load->view('sch_by_machine',$data);
        }
        
    }

help needed regarding creating popup window from controller
Thanks in advance
#2

[eluser]jedd[/eluser]
Does [url="http://ellislab.com/forums/viewthread/91251/"]this thread[/url] help?

Try using the square-bracket code-tags within your messages to quote your code snippets - it makes it much easier to read.
#3

[eluser]Waqar[/eluser]
Thanks hope it is readable now
#4

[eluser]Waqar[/eluser]
Can anyone help please regarding a popup window from controller???

Thanks in advanc




Theme © iAndrew 2016 - Forum software by © MyBB