Groups | Blog | Home
all groups > inetserver asp db > september 2006 >

inetserver asp db : need to refresh data on page efficiently



Joe Reynolds
9/25/2006 11:13:01 AM
have an ASP page that generates a random quote from an access db.
i need to include a button that says "next" and when clicked a new quote
should be displayed.

right now theres just a simple <a href> tag that points to the same page.
this reloads the page and displays a new quote. but there must be a better
way to do this... any ideas?

Bob Barrows [MVP]
9/25/2006 11:32:32 AM
[quoted text, click to view]

What would constitute "better"? What's wrong with the current method?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Joe Reynolds
9/25/2006 12:20:00 PM
there are a lot of images on the page and while theyre cached after the
initial load, refreshing the page still makes them all reload. even though
it happens quickly, its still ugly. im thinking of putting the quotes in a
layer and just refreshing that... (off topic i know)


[quoted text, click to view]

Bob Barrows [MVP]
9/25/2006 12:26:12 PM
So you want a way to get a new quote without submitting your page.
Yep, we're definitely getting off-topic here. Google for XMLHTTP or AJAX
and post followups to a client-side scripting group.

[quoted text, click to view]



--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

AddThis Social Bookmark Button