Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 24th, 2005, 08:45 AM
gxk
Guest
 
Posts: n/a
Default how to reload only part of html ?

Hi

I want to understand how to reload only part of html file?
i know about frames and trying not to use them.
Consideratin is simple: same title for all pages, for example

  #2  
Old July 24th, 2005, 09:05 AM
Adrienne
Guest
 
Posts: n/a
Default Re: how to reload only part of html ?

Gazing into my crystal ball I observed "gxk" <gxkahn@gmail.com> writing in
news:1122190926.191258.47090@g47g2000cwa.googlegro ups.com:
[color=blue]
> Hi
>
> I want to understand how to reload only part of html file?
> i know about frames and trying not to use them.
> Consideratin is simple: same title for all pages, for example
>
>[/color]

The same title for all pages is not a good idea. How is one to know where
one is? This is especially true for users with tabbed browsing, or
multiple browser windows open to the same site.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
  #3  
Old July 24th, 2005, 09:15 AM
gxk
Guest
 
Posts: n/a
Default Re: how to reload only part of html ?

Well, thank you for answer. The title was just example.
Actualy i wrote index.html and quickly found that other files would
have
for 50% same code and i don't want to reload tha same things.
Now let say, i wrote some framework, where i want to open
other/external html files, called by user.
No frames and no server-side scripting.

  #4  
Old July 24th, 2005, 12:05 PM
Adrienne
Guest
 
Posts: n/a
Default Re: how to reload only part of html ?

Gazing into my crystal ball I observed "gxk" <gxkahn@gmail.com> writing in
news:1122192489.268670.259750@z14g2000cwz.googlegr oups.com:
[color=blue]
> Well, thank you for answer. The title was just example.
> Actualy i wrote index.html and quickly found that other files would
> have
> for 50% same code and i don't want to reload tha same things.
> Now let say, i wrote some framework, where i want to open
> other/external html files, called by user.
> No frames and no server-side scripting.
>
>[/color]

If it's a matter of reusing code, then get an editor that lets you save
snippets. I like HTML-Kit <http://www.chami.com/html-kit>. Of you could
use a preprocessor.


--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
  #5  
Old July 24th, 2005, 12:45 PM
gxk
Guest
 
Posts: n/a
Default Re: how to reload only part of html ?


Is it solve the problem of reloading html page partialy?

  #6  
Old July 24th, 2005, 01:25 PM
Benjamin Niemann
Guest
 
Posts: n/a
Default Re: how to reload only part of html ?

gxk wrote:
[color=blue]
>
> Is it solve the problem of reloading html page partialy?[/color]

It can't be done without JavaScript or frames. If you think it is a good
idea to use JavaScript (it is not in 99%), search the net for the keywords
XMLHttpRequest and AJAX.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
  #7  
Old July 24th, 2005, 04:05 PM
mbstevens
Guest
 
Posts: n/a
Default Re: how to reload only part of html ?

gxk wrote:[color=blue]
> Is it solve the problem of reloading html page partialy?
>[/color]
I think what you really want is some kind of 'templating' system
that can read commands in a simple file and build a more complex
page from it.

Either server side page generation or a preprocessor will work.
Try googling the following searches:

Perl HTML::Template
HTML preprocessor
server side includes
  #8  
Old July 24th, 2005, 04:25 PM
Alan J. Flavell
Guest
 
Posts: n/a
Default Re: how to reload only part of html ?

On Sun, 24 Jul 2005, gxk wrote:
[color=blue]
> I want to understand how to reload only part of html file?[/color]

I suppose you're asking how to get your readers to reload only part of
the HTML file?
[color=blue]
> i know about frames and trying not to use them.[/color]

Good stuff.

But frankly, it can't be done. When you make reference to a URL, the
browser will request that URL from the server, the server will deliver
the complete document to the browser, and that's it.

How about being more explicit about why you think it might be a good
idea, then maybe someone can explain how to address your real issue.

If you're concerned about the time taken to access your pages, then
take a look at the cacheability of /all/ your resources. Mark
Nottingham's cacheability engine can give useful hints about this.
Bet you'll find the HTML is the least of your worries. Especially
nowadays when presentational clutter is deprecated in HTML, in favour
of stylesheets.

http://www.mnot.net/cacheability/
[color=blue]
> Consideratin is simple: same title for all pages, for example[/color]

This is silly, I'm afraid. The page title is an important part of
each page. Indexing robots use it as part of their indexing strategy.
Many browsers use it by default to label bookmarks. Making all of the
titles the same is almost as bad as letting them all be "Untitled
Page".
  #9  
Old July 24th, 2005, 06:05 PM
gxk
Guest
 
Posts: n/a
Default Re: how to reload only part of html ?

How about navigation bar or any common part for number of html files

  #10  
Old July 24th, 2005, 11:35 PM
Adrienne
Guest
 
Posts: n/a
Default Re: how to reload only part of html ?

Gazing into my crystal ball I observed "gxk" <gxkahn@gmail.com> writing
in news:1122224018.193807.124880@z14g2000cwz.googlegr oups.com:
[color=blue]
> How about navigation bar or any common part for number of html files
>
>[/color]

I don't think you understand what has been said in this thread. If you
look at any document on the WWW with common menus, or other common
elements, you will see the whole page load, not just parts of it. That
would be very confusing for visitors, not to mention, probably make them
nauseaus seeing some parts update, and others not.

The _only_ way to do what you want is with frames, and that is because
there is more than one document being requested. When the server
receives a request for a document, it sends the whole page, whether it is
a static HTML file, or has been combined with server side includes.

As others have said, if you keep the document light, that is no heavy
graphics, bloated javascript, or nested tables, you should be okay.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
  #11  
Old July 25th, 2005, 03:15 AM
mbstevens
Guest
 
Posts: n/a
Default Re: how to reload only part of html ?

Adrienne wrote:[color=blue]
> Gazing into my crystal ball I observed "gxk" <gxkahn@gmail.com> writing[color=green][color=darkred]
>>>I want to understand how to reload only part of html file?
>>>i know about frames and trying not to use them.
>>>Consideratin is simple: same title for all pages, for example[/color][/color][/color]
....and later[color=blue][color=green]
>>How about navigation bar or any common part for number of html files[/color][/color]
[color=blue]
> I don't think you understand what has been said in this thread. If you
> look at any document on the WWW with common menus, or other common
> elements, you will see the whole page load, not just parts of it. That
> would be very confusing for visitors, not to mention, probably make them
> nauseaus seeing some parts update, and others not.[/color]
[color=blue]
> The _only_ way to do what you want is with frames, and that is because
> there is more than one document being requested.[/color]

Yes, without frames the pages load all at once.
But I think you're taking the intent of the question a bit too literally.

Many programs _do_ combine information so that you only write a _part_
of the file for each page.

For client side, to upload to your website with FTP, there are the
preprocessors:
http://www.htmlhelp.com/links/preprocessors.html

From server side, there is almost any blogging software, any CGI
software that generates pages from databases, text files, and the like,
and there is SSI.
http://www.cpan.org/
http://cgi.resourceindex.com/

  #12  
Old July 25th, 2005, 07:45 AM
Adrienne
Guest
 
Posts: n/a
Default Re: how to reload only part of html ?

Gazing into my crystal ball I observed mbstevens
<NOXwebmasterx@xmbstevensx.com> writing in
news:0NXEe.4191$Uk3.614@newsread1.news.pas.earthli nk.net:
[color=blue]
> Adrienne wrote:[color=green]
>> Gazing into my crystal ball I observed "gxk" <gxkahn@gmail.com>
>> writing[color=darkred]
>>>>I want to understand how to reload only part of html file?
>>>>i know about frames and trying not to use them.
>>>>Consideratin is simple: same title for all pages, for example ...and
>>>>later
>>>How about navigation bar or any common part for number of html files[/color][/color]
>[color=green]
>> I don't think you understand what has been said in this thread. If
>> you look at any document on the WWW with common menus, or other common
>> elements, you will see the whole page load, not just parts of it.
>> That would be very confusing for visitors, not to mention, probably
>> make them nauseaus seeing some parts update, and others not.[/color]
>[color=green]
>> The _only_ way to do what you want is with frames, and that is because
>> there is more than one document being requested.[/color]
>
> Yes, without frames the pages load all at once.
> But I think you're taking the intent of the question a bit too
> literally.
>
> Many programs _do_ combine information so that you only write a _part_
> of the file for each page.
>
> For client side, to upload to your website with FTP, there are the
> preprocessors:
> http://www.htmlhelp.com/links/preprocessors.html
>
> From server side, there is almost any blogging software, any CGI
> software that generates pages from databases, text files, and the like,
> and there is SSI.
> http://www.cpan.org/
> http://cgi.resourceindex.com/
>[/color]

The OP specifically said no server side, or frames. I already advised the
OP about a preprocessor.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles