CodeIgniter Forums
iframe not loding - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: iframe not loding (/showthread.php?tid=28378)



iframe not loding - El Forum - 03-09-2010

[eluser]pendalpusher[/eluser]
We have a third-party java based web app that we can display on a webpage by using iframes

I made a file outside of the CI application on our webserver called test.php which has this in it.

Code:
<iframe id="prooferFrame" src="http://green:50000/viewer.html?file=About_Stacks.pdf" width="100%" height="700"/></iframe>

The app loads and works just great.

however, from within CI my controller looks like this.

Code:
...
  function view_it()
  {
    $this->load->view('header');
    $this->load->view('viewer');
    $this->load->view('footer');
  }
...

the viewer.php (view file) has the exact same code that the test.php file has it. I copy and pasted it.

however, when I try to access the page, the web app does not load correctly.

Any ideas why CI and this iframe source are not playing well together?

I was going to assume that the problem was with the other web application, but it loads fine outside of CI.

Thanks,
Chris


iframe not loding - El Forum - 03-10-2010

[eluser]pendalpusher[/eluser]
just updating. I was able to get this working by pushing the iframe source as a single variable instead of pieces three parts together in the view.

it was probabaly a typo or something, but it is working now.