Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
help! need to load external html and can't use iframes
Old 07-15-2005, 07:23 PM help! need to load external html and can't use iframes
violent_twinkie's Avatar
Registered User

Posts: 1
Trades: 0
hi

i got this problem:

i have this cool nested dropdown list that is very painful and boring to edit. i have the html, css, and javascript in another file, and i want to find a way to show that in all the websites i need to by only editing it once and uploading it, and in doing so, eliminating the need to painfully update it on every page every time i change it. I've already tried it with an iframe and i saw the list, but when i rolled the mouse over it it changed the text color and background color changed, but i couldn't see the dropdown options. its possible i did something wrong there; this is only my hobby.

thanks!
violent_twinkie is offline
Reply With Quote
View Public Profile Visit violent_twinkie's homepage!
 
 
Register now for full access!
Old 07-15-2005, 07:26 PM
brokensoul2271's Avatar
- - - - - - - - -

Posts: 750
Location: Lancashire, UK
Trades: 0
I'd imagin this is something php includes would be useful for.. I'm only starting out with PHP though so you'd have to ask someone else, sorry...
__________________
Yes, indeed...

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
brokensoul2271 is offline
Reply With Quote
View Public Profile Visit brokensoul2271's homepage!
 
Old 07-15-2005, 09:16 PM
fancymoustache's Avatar
Ultra Talker

Posts: 316
Location: Michigan
Trades: 0
Yes... PHP includes are the way to go! I'll give you an example:
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>
 Sample
</title>
</head>
<body>
<?php
 
//Change "menu.txt" to your own file
 
include('menu.txt');
?>
<p>The rest of your webpage can go here</p>
</body>
</html>
You'll need to save this file as *.php. It will call up all the code from your menu file and put it in with the rest of your page. You can do this with as many pages as you need.

Hope that helps,
Micah
fancymoustache is offline
Reply With Quote
View Public Profile
 
Old 07-15-2005, 09:18 PM
Experienced Talker

Posts: 47
Trades: 0
The reason you couldn't see your menus was probably because the iframe was too small to show it. Think of an iFrame like a ... box, that is held inside the website, in that box you can only see what fits in it. The menu dropdowns are outside the visible area so you can't see them unless you were to use a scrollbar which probably isn't an option. The only way I can think of doing it is in PHP. If you have PHP installed you could just put this.

PHP Code:
<?php include("file.html"); ?>
Where the menu is installed and it will include the menu there. Just add that to every page. Of course this will only work when the site is running off of a server, so if you were to look at the page on your computer all you'd see is a blank space. Hopefully this solves your problem. I can't see any other solution than this though. So hoepfully you have PHP installed.
Synchronize is offline
Reply With Quote
View Public Profile
 
Old 07-15-2005, 09:20 PM
Experienced Talker

Posts: 47
Trades: 0
Oh, I guess someone submitted an answer right before I did. Well, we both have similar answers so hope you can get it to work
Synchronize is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to help! need to load external html and can't use iframes
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21446 seconds with 12 queries