CodeIgniter Forums
iframe - 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 (/showthread.php?tid=11840)



iframe - El Forum - 09-25-2008

[eluser]PHP Programmer[/eluser]
I want to use iFrame in my web application but I am unable to assign a path to that.

I am using:
<iframe src="jobs/ViewMap" name="mapView"></iframe>

I have a file ViewMap.php to be displayed in iFrame.

What should I write in 'src' to make it work?


iframe - El Forum - 09-25-2008

[eluser]manilodisan[/eluser]
Augh man...down to the principles of HTML. http://www.yourhtmlsource.com/frames/inlineframes.html


iframe - El Forum - 09-25-2008

[eluser]PHP Programmer[/eluser]
That's fine...but I am not getting the exact point what I need in iFrame. What specifically should I write in src?


iframe - El Forum - 09-25-2008

[eluser]Dan Bowling[/eluser]
Code:
<iframe src="<?php echo base_url(); ?>index.php/jobs/ViewMap" width="80%" height="110"> </iframe>

That should do it.


iframe - El Forum - 09-25-2008

[eluser]Yash[/eluser]
just a tip use php short tags..

Code:
<iframe src="<?=base_url(); ?>index.php/jobs/ViewMap" width="80%" height="110"> </iframe>

also use htaccess and remove index.php if you have ...