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

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

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

[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?
#4

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

That should do it.
#5

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




Theme © iAndrew 2016 - Forum software by © MyBB