473,395 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Frame alternative using CSS

I am seeting up a help system that uses some common text. Using a frame
I can link to the common text :
<FRAMESET ROWS="100,*" >
<FRAME SRC="SpecificTextForHelpPage1.htm" scrolling=no frameborder=0
noresize >
<FRAME SRC="GenericText.htm" frameborder=0 noresize>
</FRAMESET>

This is repeated for SpecificTextForHelpPage2.htm and so on, using the
same Generictext on the lower part of the page.

All I really want to do is have a method whereby I can change parts of
the common text and it changes on all the pages. I had thought of an
alternative of using an image but it then doesn't allow me to change
the attributes using my style sheet.

Everything works within reason - there are a few things I'd like to
changes such as fixed widths etc but I could do that with frames/tables
etc.
I cannot use any server side due to the environment - i.e. it CANNOT be
used.

(sorry to shout !)

I did post a message about 'including' common code in HTML - no joy
unless I use a package but I cannot do that either.

Any thoughts ?
Solutions not essential just a few ideas would be good !

Cheers

Oct 6 '05 #1
7 2233
ma******@hotmail.com wrote:
All I really want to do is have a method whereby I can change parts of
the common text and it changes on all the pages.


Any decent editor has a Search and Replace function, good ones offer
multi line S&R, really good ones also allow regular expressions to be
used.

--
Spartanicus
Oct 6 '05 #2
ma******@hotmail.com writes:
I am seeting up a help system that uses some common text. Using a frame
I can link to the common text :
<FRAMESET ROWS="100,*" >
<FRAME SRC="SpecificTextForHelpPage1.htm" scrolling=no frameborder=0
noresize >
<FRAME SRC="GenericText.htm" frameborder=0 noresize>
</FRAMESET>

This is repeated for SpecificTextForHelpPage2.htm and so on, using the
same Generictext on the lower part of the page.

All I really want to do is have a method whereby I can change parts of
the common text and it changes on all the pages. [...]
I cannot use any server side due to the environment - i.e. it CANNOT be
used.


In such circumstances I'd use a macro preprocesor (such as
m4, though for this anything that can process an "include"
would do) and then use a makefile to ensure the changes are
propagated to all the resulting .html files before uploading
to the server.

--
Jón Fairbairn Jo***********@cl.cam.ac.uk
Oct 6 '05 #3
ma******@hotmail.com wrote:
(snip)
All I really want to do is have a method whereby I can change parts of
the common text and it changes on all the pages. I had thought of an
alternative of using an image but it then doesn't allow me to change
the attributes using my style sheet. (snip) I cannot use any server side due to the environment - i.e. it CANNOT be
used. (snip) I did post a message about 'including' common code in HTML - no joy
unless I use a package but I cannot do that either.

(snip)
mal_l100,

Not sure what you mean by 'package', but another preprocessor which will
include code into a page is PPWizard. Info at
http://dennisbareis.id.au/ppwizard.htm.

A preprocessor is run on your development system, not on the server.
When you make a change to the common code, you run everything through
the preprocessor, which picks up the revised version of the code and
inserts it into every source file at the location you specify.

PPWizard will do a lot more than this, but is small and fast enough that
it isn't a waste to use it for simple including such as you describe.

It is free.

Chris Beall

Oct 6 '05 #4
Thanks guys
Unfortunately I am developing something that is to be passed on to a
client who would not have access to any sort of preprocessor hence
using frames where I can reuse the code but no need for any other
software as it can then be manipulated in whatever the client has.
As for a search and replace, I think you misunderstand... I have 10 or
so pages that have common script. The whole point is to avoid loading
in each one and doing a search and replace if I wanted to do that I
would just write once and paste 9 times - that is wasteful on time and
resource.
I personally would use a preprocessor if it were just down to me. Pity
there is no #incude in HTML.
Frames will have to do for now I guess !
Cheers

Oct 7 '05 #5
ma******@hotmail.com wrote:
As for a search and replace, I think you misunderstand... I have 10 or
so pages that have common script. The whole point is to avoid loading
in each one and doing a search and replace if I wanted to do that I
would just write once and paste 9 times


An editor with a good S&R function offers directory wide S&R with an
option to include subdirs, no need to open any files.

The power of a really good S&R function is something most people
apparently cannot imagine if they don't have an editor that offers it
(few do).

--
Spartanicus
Oct 7 '05 #6

Spartanicus wrote:

An editor with a good S&R function offers directory wide S&R with an
option to include subdirs, no need to open any files.

The power of a really good S&R function is something most people
apparently cannot imagine if they don't have an editor that offers it
(few do).

--
Spartanicus

I understand what you are saying for a directory wide search and
replace but that would still mean having duplicate data everywhere.
That seems to defeat the general principle in computing of reuse. Not
trying to get into an argument but everything else seems able to reuse
boiler plate or similar e.g. resuse of stored procedures in databases,
ability to access external spreadsheets in Excel in fact almost
everything I can thinnk of except html (unless using frames or a custom
editor). Also when working on a client site, there are issues about
using software that is not generally available or part of a company's
'standard' software - hence not wanting to use a better HTML editor. It
would be OK for me but when I move on, the client would be left
maintaining loads of files - or, as you suggest, getting a directory
wide browser.
Thanks anyway !

Oct 14 '05 #7
ma******@hotmail.com wrote:
An editor with a good S&R function offers directory wide S&R with an
option to include subdirs, no need to open any files.

The power of a really good S&R function is something most people
apparently cannot imagine if they don't have an editor that offers it
(few do).
I understand what you are saying for a directory wide search and
replace but that would still mean having duplicate data everywhere.
That seems to defeat the general principle in computing of reuse.


"Reusing" data on the web with frames, iframes or any other form of
"client side inclusion" mechanism breaks a fundamental principle of the
web: a single url should refer to all content of that resource.
Not
trying to get into an argument but everything else seems able to reuse
boiler plate or similar e.g. resuse of stored procedures in databases,
ability to access external spreadsheets in Excel in fact almost
everything I can thinnk of except html


You are confusing data formats such as HTML or the Excel data format
with the applications that produce it. Reuse of data chunks is handled
by the application, and this is no less possible for HTML. Several
options are available to reuse data: using a preprocessor, S&R, content
management systems, authoring software that uses a template system such
as Frontpage or Dreamweaver etc.

All of these methods can be used to produce a proper webpage, so long as
you abstain from the fundamentally flawed "client side inclusion"
mechanisms.

--
Spartanicus
Oct 14 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gooseman | last post by:
Hi, I have coded a frame based banner (like the one you get from hotmail when you click on an external link). The problem is that when you drag and drop the ie address bar shortcut icon, it...
3
by: Dynamo | last post by:
Hi My site uses frames and some of the frame pages are ranked higher in search engine rankings than the main page. When somebody clicks on the link it takes them to the frame page and they don't...
3
by: Gigi | last post by:
Hi, I need access to a function object that corresponds to a frame object in a certain case from inside the function. I can get the frame object using: f = sys._getframe(0) But the...
5
by: Frame | last post by:
I'm looking for tutorials or articles considering HTML Frames and how to handle them with Javascript. E.g. samples how Frames can exchange information, can a Frame instruct other Frame to update...
3
by: paulgor | last post by:
Hi, May be it's a know issue but my search brought nothing... We have static HTML files with Japanese text in UTF-8 encoding - it's on-line Help for our application, so there are no Web...
1
by: Leoa | last post by:
Hi There, I made a popup window with createpopup(). The window has a frame border around it that is grey. I can't seem to find the code that would not allow the frame of the popup to show. ...
1
by: sayid | last post by:
Hello, I have a problem when altering a DIV-element from another frame. The frameset looks like this: <frameset rows=0,0,* border=0> <frame name=header src=/header.htm scrolling=no...
2
by: I Hate My Computer | last post by:
I am using frames on a website. The title link on the title page adds a query string. The link goes to a page with two rows the second has two columns. I want the right column to be changed depending...
1
by: empiresolutions | last post by:
After much research i understand that Safari isn't able to call the onClick Event like the other browsers do. So how do i get Safari to act like the other browsers is my question? I have see no real...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.