Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 05-17-2004, 01:11 PM   #1 (permalink)
lampoin
Registered User
 
Join Date: May 2004
Posts: 2
lampoin is on a distinguished road
refresh page automaticlly

Hi


I have a page with a table of 1000 rows. If the user is on a f.ex 500 record row,
how can I refresh the page automatically without pressing on a 'refresh button'? I want the page to appear on the same place (500 record) and not on the begining of the same page (I know that by using META tags the page wil be refreshed and appear on the begining of the same page) .



I am looking forward to your answer as soon as posible.


Thank you in advance


Lampion
lampoin is offline   Reply With Quote
Old 05-17-2004, 01:19 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
what does this mean?
Quote:
If the user is on a f.ex 500 record row,
can you give a little more detail on when you want the page to refresh?
__________________
Mike
sde is offline   Reply With Quote
Old 05-17-2004, 01:44 PM   #3 (permalink)
lampoin
Registered User
 
Join Date: May 2004
Posts: 2
lampoin is on a distinguished road
I have a large table of records shown on a web page, and the user is in a middle of this page.I need to refresh the page on a regular basis,f.ex. each 10s. There is no need for returning the user at the beginning of the page and scrolling through many records, but to return the user on the same place like previously.
So the user will not notice that the page is actually refreshed.

Do you have any idea about this problem?


Lampion
lampoin is offline   Reply With Quote
Old 05-17-2004, 02:38 PM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
i get it now. it's going to be really difficult. even if you managed to get it working ( with javascript probably ) it would still jump when the data refreshed.

if data is refreshing, then you are using a server-side language to generate the page right?

the best thing for you to do is set a limit to what the user is viewing. view maybe 50 rows at a time ( whatever fits in 1 page without scrolling ) , ... then make a paging .. but when the page refreshes itself, it will never move. this will make pages load faster too since you are only looping through 50 rows of data.

maybe there is a good way, .. but i don't know it.
__________________
Mike
sde is offline   Reply With Quote
Old 05-17-2004, 08:43 PM   #5 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
Yep, sounds like a pain. Even loading 500 "rows" of whatever in a static html file is going to be noticable, so it'll be slower in something dynamic. (ignoring that a visible refresh every 10s [even if it did return the user to the spot they were reading] sounds horribly annoying.)

As far as returning them to their current spot, that's even harder. How do we know where they're scrolled to? eg: They PGDN'ed several times and now "see" rows 150-164 on the screen. (obviously variable by screen size) You're looking to return them to row 150 to continue viewing with the possibility that there's new data below?

I'll let you know if I think of something, but it seems very awkward. Now if there were some form fields and the cursor was in one, it might be a bit easier.


-r
idx is offline   Reply With Quote
Old 06-18-2004, 08:13 AM   #6 (permalink)
sammy
Code Monkey
 
sammy's Avatar
 
Join Date: Jun 2004
Location: Brooklyn/Rochester
Posts: 53
sammy is on a distinguished road
Send a message via AIM to sammy
Its best to group them, like sde said. You know how online dictionaries are constructed, and you can have a navigation on top with links to each group. In my opinion, thats the most organized way, instead of displaying that much data on one page.
__________________
sammy is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to prevent images in a page from caching? Epsilon HTML, XML, Javascript, AJAX 2 09-06-2004 01:58 AM
jsp page triggering twice sde Java 1 09-01-2004 08:32 AM
Trying to get number of e-mails in a txt file to appear on my main page netpants PHP 4 08-19-2003 08:46 PM


All times are GMT -8. The time now is 08:48 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting