Welcome Guest, Not a member yet? Register   Sign In
iframe not loding
#1

[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
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB