need to refresh data on page efficiently

need to refresh data on page efficiently

am 25.09.2006 17:13:01 von Jason Simmons

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 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?

Re: need to refresh data on page efficiently

am 25.09.2006 17:32:32 von reb01501

Joe Reynolds wrote:
> 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
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?

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.

Re: need to refresh data on page efficiently

am 25.09.2006 18:20:00 von Jason Simmons

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)


"Bob Barrows [MVP]" wrote in message
news:uvCETfL4GHA.4976@TK2MSFTNGP02.phx.gbl...
> Joe Reynolds wrote:
>> 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
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?
>
> 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.
>
>

Re: need to refresh data on page efficiently

am 25.09.2006 18:26:12 von reb01501

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.

Joe Reynolds wrote:
> 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)
>
>
> "Bob Barrows [MVP]" wrote in message
> news:uvCETfL4GHA.4976@TK2MSFTNGP02.phx.gbl...
>> Joe Reynolds wrote:
>>> 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
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?
>>
>> 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.