Reload of .asp page

T

Trillian

Is there a way to have a database results area show new data based on the
value selected in a dropdown - without! - reloading the entire .asp page?
 
T

Thomas A. Rowe

Not unless you want to load the entire database into memory array when the page is first loaded.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
K

Kevin Spencer

How do you reload PART of any HTML page? (Hint: you don't). One Request, one
Response. That's HTTP for you.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
C

clintonG

Yes. What you want to do is called an 'asynchronous callback' and it is
currently being expressed by several methodologies the most popular of which
seems to be the use of XmlHttpRequest.

Google: "XmlHttpRequest" and ignore my fellow 'experts' (this time) as they
know not what they are talking about.

Rowe is wrong and needs to learn how to filter or cache data.
Spencer is wrong because he has been asleep for the last year and needs to
learn the DOM.
 
K

Kevin Spencer

Spencer is wrong because he has been asleep for the last year and needs to
learn the DOM.

Clinton,

I was wrong. I admit it (you should try sometime). However, your insinuation
that it is because I am asleep is simply ignorant, rude and mean-spirited.
The truth is, I haven't done much front-end web work in the past year. I
have been working on other projects, such as a Direct3D Terrain-modelling
application that uses Digital Elevation model data, National Land Cover
data, FAA airport and weather data, and other GIS-related data, and runs off
a GPS using Indigo services, for NASA.

I have also been working on the business end of a web application that
duplicates a desktop interface using Flash, to enable users of the desktop
flight-planning software to use it online. Mostly business classes and web
services on my part.

I have written about 30 different projects of various kinds over the past
year, using the gamut of Microsoft technologies. Apparently, in my sleep.

Thomas (who you rudely call "Rowe") is one of the most helpful and kind
people here, and he has been through quite a bit in the last year. I think
I'm more angry about the way you slighted him than myself.

You may be a self-styled "expert" but you are also an asshole. You willl
NEVER elevate yourself by putting others down. But my guess is, you'll keep
trying.

So pardon me for overlooking your suggestion, and f**k off.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
A

Andrew Murray

it has to reload the page to display the new content which was pulled from
the database (?).
 
C

Chris Leeds, MVP-FrontPage

Kevin,
On my recent trip to Disney I was reading a .net book, well skimming
actually.
what about a repeater?

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
--
 
K

Kevin Spencer

Hi Chris,

I was mistaken. There are a couple of ways of making a Request for data
without refreshing the entire page. One is using JavaScript and Web
Services. But not using a Repeater. A Repeater is just a mechanism for
displaying multiple objects (repeating) in a web page.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
C

Chris Leeds, MVP-FrontPage

I guess my misunderstanding of it would be a good reason to _read_ rather
than "skim" this type of material. ;-)

seemed to me that the repeater would be a good alternative to the sps
webpart that shows docs from a library.

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
--
 
J

Jon Spivey

I've got a site that does this - basically the need is to make 12 http
requests to 12 other sites - this usually takes 6 -10 seconds. Rather than
do all the requests before displaying the page I get most of the page on the
screen then run the request scripts (asp.net) in a non-displaying i-frame
and then use the DOM to write the results to the main page as they come in.
I was rather proud of that solution when I came up with it :)
 
T

Thomas A. Rowe

Jon,

No Windows SP2 issues with this approach?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
J

Jon Spivey

Yes there is but only for traffic from Yahoo Hong Kong - because they use a
redirect in their search results rather than a direct link. The redirect
seems to cause SP2 to fall over, resigned myself to not being able to fix
this. For various reasons I took the decision that the method is worth
sticking with. Hong Kong is not a major market for the site.
 
T

Thomas A. Rowe

Jon,

Thanks.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Top