Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Calling External .php W/out Use of <iframe>
Closed Thread
Old 11-26-2004, 05:50 PM   #1 (permalink)
 
Junior Techie

Join Date: Sep 2004

Posts: 85

ayenem

Default Calling External .php W/out Use of <iframe>

I am attempting to embed a "shout box" onto my site. The readme file for this code says to use the iframe tag in order to call the .php file for the tag board.

I'd rather not use iframe because only IE understands it. I played with <div> and <span> and also attempted a simple jscript to call in the file(although Im not very handy with js yet I may have coded it wrong) and neither worked.

Your thoughts?

Let me know if I need to include more info\data, thanks for your time!
ayenem is offline  
Old 11-28-2004, 12:28 PM   #2 (permalink)
 
Monster Techie

Join Date: Jul 2003

Posts: 1,179

Emily is on a distinguished road

Send a message via AIM to Emily
Default

On the page that you want to call the file, is it a .php file itself? If it is, you can just use a php include():
Quote:
<?php include("shoutbox_file.php"); ?>
Hope this helped.
__________________
<a href=\"http://www.upstark.com\">www.upstark.com</a>
Emily is offline  
Old 11-29-2004, 02:49 PM   #3 (permalink)
 
Junior Techie

Join Date: Sep 2004

Posts: 85

ayenem

Default

"php include(filename)" is already being used. I was looking for a way to place it in a specific spot on the web page and be able to position it to my liking. I ended up going with iframe. I tested it in firefox and it works fine. Im assuming other browsers have adopted iframe by now also so I'll just stick with iframe and I'll figure out something else if it becomes problematic.

Thank you for your feedback though, Emily, I appreciate it! =]
ayenem is offline  
Old 11-29-2004, 02:54 PM   #4 (permalink)
 
True Techie

Join Date: Sep 2004

Posts: 129

gabe

Send a message via AIM to gabe
Default

You can use as many include instances as needed in one file, just make sure you close the instance with ?>
__________________
<b>My advise is my property. Use it at own risk.</b>
gabe is offline  
Old 11-29-2004, 03:07 PM   #5 (permalink)
 
Junior Techie

Join Date: Sep 2004

Posts: 85

ayenem

Default

Ya know.... I think I missunderstood Emily's statement. < Im Super tired right now =[
I'll try out the 'include' tag when I get a chance tonight.
And thanks for your words Gabe, didnt realize I could use more then one.
ayenem is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On