Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to keep data between page loads?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Test  
View profile  
 More options Oct 3 2012, 4:50 am
Newsgroups: comp.infosystems.www.authoring.html
From: Test <test@.nil.invalid.com>
Date: Wed, 03 Oct 2012 11:50:46 +0300
Local: Wed, Oct 3 2012 4:50 am
Subject: How to keep data between page loads?
I have a web page that has a lengthy menu structure containing hundreds of items.
When user clicks a link the page reloads and depending on the situation a shorter
version of the list is shown to user.
Currently I am using forms and user is clicking on a:
<a target="BLAH" href="mypage.php?PARAM=125">Click this</a>

Reloading the entire structure takes time and. Is there a way to keep the
structuredata and reuse it between page loads? Cookies perhaps?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hans-Georg Michna  
View profile  
 More options Oct 3 2012, 5:03 am
Newsgroups: comp.infosystems.www.authoring.html
From: Hans-Georg Michna <hans-georgNoEmailPle...@michna.com>
Date: Wed, 03 Oct 2012 11:03:12 +0200
Local: Wed, Oct 3 2012 5:03 am
Subject: Re: How to keep data between page loads?

On Wed, 03 Oct 2012 11:50:46 +0300, Test wrote:
>I have a web page that has a lengthy menu structure containing hundreds of items.
>When user clicks a link the page reloads and depending on the situation a shorter
>version of the list is shown to user.
>Currently I am using forms and user is clicking on a:
><a target="BLAH" href="mypage.php?PARAM=125">Click this</a>

>Reloading the entire structure takes time and. Is there a way to keep the
>structuredata and reuse it between page loads? Cookies perhaps?

The most important ways to achieve this are these, as far as I
know:

1. Pull the data through the server. (I think this is what you
wanted to avoid.)

2. Stuff it into a session cookie.

3. Use the HTML5 sessionStorage.

The latter is not supported by old browsers, but it is supported
to some sufficient degree in all modern browsers.

There are some other ways, but I think these are the most widely
used ones.

Hans-Georg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Barry Margolin  
View profile  
 More options Oct 4 2012, 4:04 am
Newsgroups: comp.infosystems.www.authoring.html
From: Barry Margolin <bar...@alum.mit.edu>
Date: Thu, 04 Oct 2012 04:04:10 -0400
Local: Thurs, Oct 4 2012 4:04 am
Subject: Re: How to keep data between page loads?
In article <7dun68tbrnmm17pjoh2ip4hm20705qh...@4ax.com>,

 Test <test@.nil.invalid.com> wrote:
> I have a web page that has a lengthy menu structure containing hundreds of
> items.
> When user clicks a link the page reloads and depending on the situation a
> shorter
> version of the list is shown to user.
> Currently I am using forms and user is clicking on a:
> <a target="BLAH" href="mypage.php?PARAM=125">Click this</a>

> Reloading the entire structure takes time and. Is there a way to keep the
> structuredata and reuse it between page loads? Cookies perhaps?

Using cookies for such a large amount of data is not generally
recommended, since the browser has to send all the cookie data to the
server on every request.

HMTL5 local storage may be a better solution, although it won't work
with older browsers.

--
Barry Margolin, bar...@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jukka K. Korpela  
View profile  
 More options Oct 4 2012, 4:26 am
Newsgroups: comp.infosystems.www.authoring.html
From: "Jukka K. Korpela" <jkorp...@cs.tut.fi>
Date: Thu, 04 Oct 2012 11:26:22 +0300
Local: Thurs, Oct 4 2012 4:26 am
Subject: Re: How to keep data between page loads?

2012-10-03 11:50, Test wrote:
> I have a web page that has a lengthy menu structure containing hundreds of items.

That means a problem in usability, no matter how you implement it. But
sometimes such things may be necessary. Then the first thought should
be: can this be implemented in an application-like manner? That is, as a
"single-page application", or as an "HTML5 application", to use the
common term (which is rather misleading, since it's mainly about
JavaScript applications that operate on an HTML document tree).

> When user clicks a link the page reloads and depending on the situation a shorter
> version of the list is shown to user.

In an application-like approach, there are no page reloads. Only the
part that needs changing is changed. Maybe just "with style", as you can
hide elements with CSS. But e.g. for a select menu, you would have menu
items in a JavaScript object, and the <select> element would be
generated from it, using different setups.

> Currently I am using forms and user is clicking on a:
> <a target="BLAH" href="mypage.php?PARAM=125">Click this</a>

In an application-like approach, you would have a JavaScript-driven
button instead of a link, and clicking on the button would just set a
variable, followed by whatever updates it requires to document content.

Of course, this approach means that client-side scripting must be
enabled in the browser.

> Reloading the entire structure takes time and. Is there a way to keep the
> structuredata and reuse it between page loads? Cookies perhaps?

Well, there are frames... and they have in a sense received absolution
in HTML5 drafts, which make <iframe> a citizen of HTMLland with full
hum... I mean elemental rights. If you are very brave, you could even
use classical frames, with <frameset> and all.

But it really depends on the context and what the big picture really is.

--
Yucca, http://www.cs.tut.fi/~jkorpela/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »