Jul 27, 2008

Static Elements In Pages - how to achieve this?

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Others

free web hosting

Static Elements In Pages - how to achieve this?

HmmZ
I've had several discouraging replys in my website post about the use of <iframe> and frames in general. So far to me it's the only option of having static elements in my pages (meaning as in having a navigation and header and so it doesnt have to refresh every pagelink you visit)

Now because of those discouraging notes, i am wondering if theres another way of achieving this? (and for the record, i couldnt think of a good searchterm for google...most came out on the non-frame section of a frameset..)

Hopefully thanks in advance

Reply

hulunes
umm,i think it is not a specifed problem.maybe it is right way when you did it.just be careful at saving.you must be sure that several frame to be saved as different pate to make up the main page,if lose one.when you refresh ,it does not work as before.

Reply

mahesh2k
well i stuck up with frames most of times .so never used them also.you see even if ther is need of pictures showing in frame.
i show it the flash gallery way.
anyway you an try to find solutions on w3schools.

Reply

snlildude87
You can make all your pages php and use the include function.
CODE

[html code here]
<?php include("nav.php"); ?>
[more html code]

In the nav.php file, put the HTML code for your navigation bar. That way, when you want to edit something in the navigation, you can just edit nav.php, upload it, and the entire site will change with it.

Good luck!

Reply

HmmZ
Snil..will that make the nav.html static tho? i mean..the thing im trying to chieve is making sure it doesnt have to reload for example the navigation every page you browse through in the website..never payed attention on the included pages tho...biggrin.gif

But that site is as good as done i guess..im working on my first BIG project now...a game :s *wish me luck*

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : static, elements, pages, achieve

  1. Simple Javascript And Password System
    How to protect your pages with password (6)
  2. Pagination
    ? (3)
    People they create the databases in which like the news stories are placed. Then that news stories,
    they are placed on certain page to be displayed and readable by other users on the web-site. How
    people do that thing paging, like you can see bottom, whenever, you go to Any CMS engines. Need the
    concept how you can create, 1, 2 or 3 pages, then next and back buttons, last and beginning page.....
  3. Protect Pages
    HOW? (20)
    I create certain pages for my web-site, and I would like to protect them that no one can hack or see
    their source codes. So, if everybody knows how to do it, please post a reply over here. List of
    the best ways, I can do it. Thanks.....
  4. Php--> Content-only Pages
    Create easy to edit php pages. (9)
    Description Learn to create easy to edit content-only pages with php. By parsing your layout into
    your pages, you can reduce file sizes and files will become much neater. Try it out Ok, lets
    start by creating a file called template.php. CODE <?php
    //--------------------------------- //Layout top section //---------------------------------
    $top = <<< html <!-- include HTML header code here --> <body>
    INSERT CODE FOR [b]TOP[/b] OF LAYOUT HERE. html;
    //--------------------------------- //Layout bottom sec....
  5. Some Pages On My Site Won't Even Load..
    (6)
    Ever since today, my site has been working just fine. I'm maintaining the amount of points I
    need, and the server status has been and still is fine. However, a while ago I tried to access my
    site and it wasn't loading. When I loaded the root URL, it worked fine though. I went to the
    file manager and noticed that the file I was trying to previously access was .php, and the index
    file at my root URL was .html. I deleted the index.html file and made a index.php file, then tried
    loading it again. Safari gave me the following message: QUOTE Safari can’t ope....
  6. Site Error For Php Pages
    Needs to Be Fixed Immediately (6)
    My site has been using Qupis for over a month now, and a few of my pages are php files. My site has
    been operating properly until today. My html pages are working properly, but all of my php pages
    are giving me the following errors. QUOTE Warning: Unknown: open_basedir restriction in effect.
    File(/home/disneyre/public_html/info.php) is not within the allowed path(s): (1) in Unknown on line
    0 Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0 Fatal
    error: Unknown: Failed opening required '/home/disneyre/public_html/info.php&....
  7. 2 Pages Into One
    how? (10)
    Hello, now this may be a stupid question but i'm very new to php so i need some help. what
    i'm wanting to do is combine 2 pages in to one. like for example the install.php for
    invisionpower board it starts with one page and you click continue and it gives you a whole new page
    but if you look at the url you are still using the install.php file but it has somethinglike "?a=2"
    at the end. how can i do this. Thanks....
  8. Php Pages Problem [resolved]
    Please help me im stuck ;-( (5)
    Hi, i have been working with a wap forum script, translating from russian and fixing errors etc..
    but now im stuck, the problem is with the pages while viewing a forum.. Let me explain.. the pages
    are set to show ten topics per page which all works fine as you can see in these screenshots: page
    1: page 2: The problem occurs when there are PINNED topics (with the redish folder), it will
    show ten topics but also the pinned ones on page one, and the "Next" link will appear before it
    should leading to a blank page where there should be topics but they are still on th....
  9. How To Convert Static Ip To Dynamic Ip`?
    (9)
    I have static ip. I want to convert it into dynamic ip. please let me know if its possible to do
    with the help of any software? thanks....
  10. Pages Url Set Up Problem
    (5)
    ok so... im in cpanel making new pages for my website.. (ending the names in .html and saving them
    as an html document) but every now and then my pages, such as this one
    http://www.have-heart.trap17.com/staff.html will not work if you place the WWW. after the http://
    only if you type in http://have-heart.trap17.com/staff.html is there anyway to fix that?
    without going in to all my pages and changing the navigation for each page?? ps.it happens both
    ways,, somethings i wont be able to acess certain pages if it begins with \
    http://have-heart.trap17.com/....
  11. Data Structure -- Arrays -- Odd Number Of Elements
    (0)
    Given an array of elements with many numbers occurring even number of times and two numbers
    occurring odd number of times. Find out the two numbers that occur odd number of times. example:
    Elements in array -- 14433446 The expected result is 1 and 6 One solution 1. Find max of the
    array 2. Hash Function : element/max value 3. Repeat to all elements... 4. Find frequency... yo will
    get the 2 elements with odd frequency. but this is not the optimal.... Do find more solutions to
    this and post it. Look for time and space complexity. Another Solution one more s....
  12. Php An Js Window.open Pages Trouble.
    I need a way to set hidden input values to the new window. (3)
    I have 2 main pages Page A(events_locked.php) and Page B(add_attendance.php). Both are php files.
    Page A takes a post var from another page(not Page B ) and then used to query for displaying records
    in a mysql datase. This variable has set as a session variable because there is 1 <script
    LANGUAGE="JavaScript"> window.name="main_index"; function openFormWindow() {
    OpenWindow=window.open("add_attendance.php", "newwin", "height=250,
    width=400,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=no"); var x =
    getElementByName("form1"); x.target="newwin"; x.s....
  13. What Is C++ Server Pages?
    (1)
    QUOTE C++ Server Pages (CSP) is a Web Engine for advanced Web Application Development, that uses
    blended Markup Language / C++ scripts ( such as HTML/C++, XML/C++, WML/C++ etc.) Similar to ASP and
    JSP, it provides a great easiness in creating web pages with dynamic content, as well as complex
    business applications. However, instead of Java, Javascript or VBscript, it uses C++. This
    brings some significant advantages: Incredibly high processing efficiency. Benchmarks have shown a
    range of 80 to 250 times higher processing speed than ASP. The use of pure C++ all....
  14. Url
    how do you make your URL static? (5)
    Hi guys, can somebody help me with this problem. I want to make my URL static. something like
    this: http://www.example.com/ whenever click some buttons like add/edit/delete... the URL should
    stay as is... (http://www.example.com). ....
  15. Problem With Firefox, Latest Version, Not Loading Pages
    any ideas? (4)
    Hi all Ive had this problem for a little while now, i cant say exactly when but it started with
    sites such as youtube and has spread out from there really, the biggest culprits are youtube and
    myspace. The issue is that if i was on youtube and wanted to watch a video i would obviously click
    the link, firefox would then show the loading bar and my page loading timer would start but it would
    never actually begin loading, the status bar would say "loading" or if i clicked the link again it
    would show "stopped" yet the loading bar would be there. Needless to say the loadin....
  16. Php Pages Permission On Apache Server
    PHP pages permission on Apache Server (1)
    Hello, I want to know what permissions for PHP pages should be given on Apache web server so that
    PHP pages can be executed. If PHP pages are in a folder, what permissions should be given for that
    folder? ....
  17. How To Get All Pages To Be Indexed
    Bot question (3)
    I use the .co.nr url shortening service from freedomain.co.nr But when I submit my site to google,
    only the homepage of my blog is shown in the search results. I can't get my individual posts to
    be indexed. Can I do something?....
  18. Making Custom Error Pages With Cpanel
    Not working properly (4)
    I set up the custom error pages using CPanel, but they aren't working properly. I get the
    standard error code. CODE The requested URL was not found on this server. Additionally, a 404
    Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Plust that little bit on the end. Am I doing something wrong or is it something that needs to be
    handled by an admin?....
  19. Still Getting Old Pages
    :( (6)
    I tried clearing my cache, i even did it manually but still I am getting all pages /sad.gif"
    style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> I made a new topic cuz i
    can't see the old one due to loading of an old page /sad.gif" style="vertical-align:middle"
    emoid=":(" border="0" alt="sad.gif" />. What i did, i pressed delete files in the internet options,
    i enterd the temperorary internet files manually and deleted everything but Iam still getting old
    pages /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> What do....
  20. Pages Not Found?
    (2)
    Hi all, i'm having trouble finding my webpages, right now its just text and a login doodlie
    thing, but i access my files by visiting the page, so i can't see my changes as they happen Has
    this happen to anyone else, any thoughts, etc?....
  21. How Do I View My Site?
    What are the links to my pages?? (4)
    This may be sort of a Noob question but..... How on earth do I view my webpages?? I logged into my
    control panel and uploaded my webpages(html and php) but what are the links to the?? (I mean
    mysite.qupis.com/myfile.html or something like that) Pleez help me mates. /sad.gif"
    style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> /sad.gif"
    style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> /sad.gif"
    style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> My site is
    madmax.qupis.com Need help!!....
  22. What Is Static?
    not static electricity - tv static (6)
    Can anyone clear this up for me? I've tried looking a little bit but couldn't find the
    information i'm looking for. Here's what I want to know. Why do television sets create
    static. Like you know when you're watching the wrong channell and it's all snow or a bunch
    of lines....no picture just black and white things.....what is that? What causes that? Why does
    that happen? Why isn't it colors and just black and white. I'm talking about like.....if
    you only are supposed to leave the t.v. on channel 3 - but switch it to channel 4 and it&#....
  23. Adding Accessibility Features To Your Pages
    Using the :active/:focus pseudo-class (0)
    Here is a tip for its use on your site. Using CSS to tell your visitors where they are on your site
    can be fairly complicated depending on the method you use. The CSS Specifications have defined a
    "pseudo-class" for the link which currently has 'focus' and another pseudo-class for the
    'active' state. They can be used to tell your visitors where their cursor is on the page
    and you do that be altering the CSS for the link which currently has the focus and those which are
    being activated. The ' active' state only occurs momentarily while the ....
  24. Ajax: Achieve Ajax Program In 5 Lines Of Code!
    (1)
    Well Last night, after a week of irritation and errors I finally created an easy Javascript object
    that easily and quickly allows you to develop an AJAX program in just 5 easy steps! Here's
    the link to the object I've created: http://www.demolaynyc.astahost.com/ajaxConn/ajaxConn.js
    Download it and read the Readme file that's under the same directory:
    http://www.demolaynyc.astahost.com/ajaxConn/Readme.html Basically what this object does is to
    connect to a server-side script (".php, .asp, .jsp, etc"), and what ever this script displays is
    sent back ....
  25. Data Access Pages ?
    Help or Assistance with creating a data access page to collect data fr (1)
    QUOTE Hello All. I'm looking for some advise or assistance with getting a web page/access
    page running so that i can have the page online and collect the data live into my database for
    Project Management... Currently I'm developing a database using M$ Access, and need to
    have staff data enter sales information directly into a web form that can be linked to a database?
    I've looked at using a M$ Front page web form with data collected into a .CSV text file and
    extracting the data but i need to be able to let the staff review and update the data....
  26. Dynamic Php Pages
    Nice tutorial (5)
    This is a really good tutorial on making php pages that normally appear as
    www.domainname.com/links.php appear as www.domainname.com/index.php?page=links
    http://nuwen.com/tutorials/php-dynamic-pages ....
  27. How Do You Have Static Ads?
    (12)
    Like seen on www.trap17.net I have been trying to put static ads on all of my site without having to
    type include (file.php) and stuff like that, I want my ads to appear on HTML to! How is it
    possible to make it like trap17.net did it, please help I need this bad ;(....
  28. How To: Make A Simple Php Site
    Making one file show up on all pages using php (21)
    I have looked all over the site and could not find anything that was like this simple, or just like
    this at all.. For some people i know that you are using a basic HTML site...and having a big menu
    if you want to add somthing you have to go into every one of the pages and add or remove or edit
    what you want to do, but with somthing verry simple all you would have to do is edit one file, and
    all of the pages that have the PHP script on them would suddenly change to what that one file is.
    So to start off if you are planning on using this little tirck, the page that you a....
  29. Custom 404 Error Pages
    A Tutorial On How To Make Custom 404 Error Pages (17)
    I've seen a tutorial on here and no offense but it was horrific, this is the real way you do a
    404 Error Page. Make a file called: htaccess.txt Open it up and put this: CODE ErrorDocument
    404 /myerrorpage.html You will need to change myerrorpage.html to whatever your page is called.
    Also when you upload this file to your server you need to rename it to: .htaccess Yes, the dot is
    before the words. You need to do this on the server because on Windows you cannot do that!....
  30. Test Your Php Pages W/o Upload/internet
    complete *working* guide on how to test your php pages (57)
    In this tutorial, I'm going to show you how to test your PHP pages without the Internet or
    uploading the files to your trap17 server. This tutorial is similar to doom's, but the links he
    provided does not work, so I decided to make my own tutorial with working links. The program that I
    will be using for this tutorial is called XAMPP . XAMPP is a modification of the popular Apache
    server, and I'm using XAMPP because of its simplicity to install as well as maintain. The
    current version of XAMPP is 1.4.13 and it has the following bundled in the download: QUOT....

    1. Looking for static, elements, pages, achieve

Searching Video's for static, elements, pages, achieve
Similar
Simple
Javascript
And Password
System - How
to protect
your pages
with
password
Pagination -
?
Protect
Pages - HOW?
Php-->
Content-only
Pages -
Create easy
to edit php
pages.
Some Pages
On My Site
Won't
Even Load..
Site Error
For Php
Pages -
Needs to Be
Fixed
Immediately
2 Pages Into
One - how?
Php Pages
Problem
[resolved] -
Please help
me im stuck
;-(
How To
Convert
Static Ip To
Dynamic Ip`?
Pages Url
Set Up
Problem
Data
Structure --
Arrays --
Odd Number
Of Elements
Php An Js
Window.open
Pages
Trouble. - I
need a way
to set
hidden input
values to
the new
window.
What Is C++
Server
Pages?
Url - how do
you make
your URL
static?
Problem With
Firefox,
Latest
Version, Not
Loading
Pages - any
ideas?
Php Pages
Permission
On Apache
Server - PHP
pages
permission
on Apache
Server
How To Get
All Pages To
Be Indexed -
Bot question
Making
Custom Error
Pages With
Cpanel - Not
working
properly
Still
Getting Old
Pages - :(
Pages Not
Found?
How Do I
View My
Site? - What
are the
links to my
pages??
What Is
Static? -
not static
electricity
- tv static
Adding
Accessibilit
y Features
To Your
Pages -
Using the
:active/:foc
us
pseudo-class
Ajax:
Achieve Ajax
Program In 5
Lines Of
Code!
Data Access
Pages ? -
Help or
Assistance
with
creating a
data access
page to
collect data
fr
Dynamic Php
Pages - Nice
tutorial
How Do You
Have Static
Ads?
How To: Make
A Simple Php
Site -
Making one
file show up
on all pages
using php
Custom 404
Error Pages
- A Tutorial
On How To
Make Custom
404 Error
Pages
Test Your
Php Pages
W/o
Upload/inter
net -
complete
*working*
guide on how
to test your
php pages
advertisement



Static Elements In Pages - how to achieve this?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE