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.

Website Design Forum


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



Freelance Jobs

Reply
Help with css and replacing iFrames
Old 10-23-2006, 03:42 PM Help with css and replacing iFrames
Y-aji's Avatar
Skilled Talker

Posts: 53
Name: Keith
Trades: 0
Hello all, I have almost given up hope on this issue and am leaning towards just using iframes as this website is for a small school district. I dont even know if this is the right place to put this..

Let me give the skinny:
I have been assigned to create a new website for my local school. They have multiple people accessing this website, one for each building, basically. So, there is a total of 6 or 7 people using it. Our concern is that they may screw it up somehow if we give them too much access.. The solution presented to me (and somewhat well known, but just feels dirty) is to use iframes and just make seperate pages within the main template and smash them in place with some divs. I would prefer not to do that, as i know very little supports any form of frame use any longer, and never really has very effectively, in all honesty.
What language do i need to learn to accomplish this? I dont even know where to turn, a friend mentioned php, which i dont even really know anything about php. Would php do what I need it to, and if so, where do i start?
I'm seriously giving into the iframe thing, because it would be so easy, but the easy route is usually the wrong one, right? also, is there a command within a css file that can add/change a link to something? like (this is wrong, i know)

#mylinks {
ahref: index2.htm;-name-"Important links";
}

or is this another feature of php, possibly?

Thanks so much,
Keith
Y-aji is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-23-2006, 05:26 PM Re: Help with css and replacing iFrames
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
If I'm understanding right, the PHP thing was presented to you as a solution is the include function. In a way it's simialr to using a frame. I use it for things that will repeat across to pages to keep everything in one file, but you could use them to include something on a single page if you want.

Lets say you have an index file. It will need to be index.php. And you want to include a menu on the page. You might make a file then called menu.php with all your menu code. Then in the index.php file where you would want that menu code to appear you would have something like:

<?php include "path-to-menu.php" ?>

That's really all the php you would need for this. You would need to make sure the server has PHP included as an option (which it most likely does) and make sure that any file that uses the included has a php extension.

Here's a link to the include function from the php.net site.

I'm not sure I understand what you're asking about changing links. There are ways you can change the href attribute of of a link using css and javascript, but I'm not sure if it's what you're looking for. Could you describe what you're wanting to do with changing the link?
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 10-23-2006, 11:38 PM Re: Help with css and replacing iFrames
Y-aji's Avatar
Skilled Talker

Posts: 53
Name: Keith
Trades: 0
Thanks so much, i think you have definately pushed me in the right direction. I've since spoken with the friend in more detail about the situation and have a more full understanding of both css and php...
Forget about the change links thing, im definately mistaken on that idea.. Thanks again..
Y-aji is offline
Reply With Quote
View Public Profile
 
Old 10-24-2006, 03:41 PM Re: Help with css and replacing iFrames
Y-aji's Avatar
Skilled Talker

Posts: 53
Name: Keith
Trades: 0
Okay, next question, i now am using the following in my script:

<div id="mainbody">
<?php
include "hs001.php"
?>
</div>

now, how do i clear that data (hs001.php) and insert new data (hs002.php) with a link reference?

<a href="prim.php">District</a>&nbsp;|
<a href="school.htm">School</a>&nbsp;|
<a href="pschool.htm">Powerschool</a>&nbsp;|

i need my links to target new data, this is how it's setup now. Basically, i'm trying to emulate <ahref src="whatever.htm" target="iframe">, by retrieving data, rather than pulling a second webpage up at the same time.
Y-aji is offline
Reply With Quote
View Public Profile
 
Old 10-24-2006, 06:44 PM Re: Help with css and replacing iFrames
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Well with the include you would generally send the link to a new page and on that page you would include the new files with PHP.

When I set up a site I usually pull out all the elements that will be common on every page. The header becomes it's own file, the menu becomes it's own file, the footer becomes it's own file. When I'm done I may have a page that looks like:

<body>
<?php include "path-to-header.php" ?>
<?php include "path-to-menu-php" ?>

<div id="content">
code for main content here
</div>

<?php include "path-to-footer.php" ?>
</body>

That's overly simplified, but it's the basic idea. It's less about chaning one part of the page as it is loading a new page, but not needing the code for the parts of the page that repeat.

If you only wanted to change a portion of a page without loading a new page I think you're looking at using an iframe of perhaps some AJAX programming.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Help with css and replacing 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.16863 seconds with 12 queries