|
Posted by Glenn on February 8, 2005, 1:02 pm
Please log in for more thread options
Is it possible to only redraw a portion of an HTML page as part of a
request? With each request, I am updating number of results but do not
want to lose where you were in a page. I created anchors at different
parts of the page but even this is a bit jumpy. Is there any other way
to implement this?
|
|
Posted by Dave Patton on February 8, 2005, 11:13 pm
Please log in for more thread options
> Is it possible to only redraw a portion of an HTML page as part of a
> request?
Technically, yes, but that would be browser-specific behaviour
that would have to compare the 'prior page' with the 'current page',
and only redraw the changed portions. In other words, it's
not under your control.
> With each request, I am updating number of results but do not
> want to lose where you were in a page. I created anchors at different
> parts of the page but even this is a bit jumpy. Is there any other way
> to implement this?
Use server-side scripting. For example, have the page be
a PHP page, and initially serve the 'start page'. The user
makes a request, and the PHP script does some processing,
and presents the 'results page', which could be substantially
the same as the 'start page', but with a "summary of results".
If the "summary of results" is always at the top of the page,
then subsequent "requests" won't 'jump around', but always
just let the page display be the default.
Another possible option, which may not work in all browsers,
is to use PHP to output results as you do the processing, by
flushing the output buffer.
--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/ My website: http://members.shaw.ca/davepatton/
|
|
Posted by Pierre Goiffon on February 9, 2005, 11:40 am
Please log in for more thread options Glenn wrote:
> Is it possible to only redraw a portion of an HTML page as part of a
> request? With each request, I am updating number of results but do not
> want to lose where you were in a page. I created anchors at different
> parts of the page but even this is a bit jumpy. Is there any other way
> to implement this?
As said before by Dave and Lachlan, the client-sides solutions are
restricted to particular browsers.
If it's not a problem for you, try a look at these :
Mozilla (XMLHTTPRequest API) :
http://jpspan.sourceforge.net/wiki/doku.php?id=javascript:xmlhttprequest
MSIE (Remote Scripting) :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rmscpt/Html/rmscpt.asp
Mozilla, MSIE, Opera, ... (JSRS) :
http://www.ashleyit.com/rs/main.htm
|
|
Posted by Glenn on February 9, 2005, 8:57 am
Please log in for more thread options One example I found was at the following url:
http://funds.reuters.com/lipper/retail/reuters/fundscreener.asp
It updates just the result row as you make changes. Is this part of
the ASP technology or is it just javascript that is not making a
request with each request? Would this method not work for other
browsers?
|
|
Posted by Colin Walls on February 9, 2005, 6:24 pm
Please log in for more thread options Glenn wrote:
> Is it possible to only redraw a portion of an HTML page as part of a
> request? With each request, I am updating number of results but do not
> want to lose where you were in a page. I created anchors at different
> parts of the page but even this is a bit jumpy. Is there any other way
> to implement this?
I have a similar type of requirement. I have been asked to put together a
set of pages that elicit information from a client wanting to order a
particular service. The sequence looks something like
Do you want A or B
If you want A are you an A1, A2, or A3
If you are an A2 then do you want to A2a, A2b or A2c
etc. Not dissimilar to an IVR system, where the subsequent menu items are
contingent on what went before.
Given that you only get to see a final form once you get to the end of the
sequence a one button per page form doesn't feel quite right. It seems to
be unaesthetic and have a low usability.
What I was looking for was something where I could populate the page with
the next section of the structured dialogue as the user made their
selection.
Any thoughts as to how one would do this (or whether it is a sensible thing
to do in the first place)?
--
Colin Walls
Removed the pink meat to mail me
|
| Similar Threads | Posted | | How to define links (css?) for just one part of a html page? | October 19, 2005, 8:43 am |
| Icon as part of the page URL | September 9, 2005, 12:09 pm |
| HTML Refreshing Problem with Meta Tags, Anchors, Commas, Semicolons | April 25, 2006, 12:25 pm |
| how to reload only part of html ? | July 24, 2005, 12:42 am |
| Refreshing the Parent | March 31, 2006, 2:37 pm |
| How to make html ignore code that is part of text? | September 7, 2004, 8:38 am |
| CSS Bug?? background-image - Not Refreshing | October 25, 2005, 10:39 am |
| How to separate a html text in order to print each part in individual pages? | January 28, 2005, 4:30 am |
| 400 Bad Request | October 23, 2007, 9:42 am |
| Site review request | September 7, 2004, 1:02 am |
|