confirmation page URL (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


sarge -> confirmation page URL (4/7/2008 12:07:49)

Hi-
I have a page that displays table records via a DRW.
At the bottom of the page, the visitor can add another record.
It's a bit like a blog.
That all works fine.

What I'd like is to have the page refresh when the new record is added, so the visitor can see his entry, placed within the table.
So, I thought the easy way would be to specify the same page for the confirmation page in the DRW.

Trouble is, the page has parameters ...asp?S=nnnn&P=xxxxx
I've tried every which way to specify these parameters in the confirmation page URL, but no luck.

So, I tried creating a new confirmation page that automatically went to window.history.go(-1).
That worked, but the page doesn't get refreshed, even with <meta...refresh..> in the head. The visitor has to do a refresh (F5) to see his entry placed in the table.
I'm running out of ideas...

This is so fundamental that it must have a simple answer, but I can't find it in the Outfront archives.
Can somebody please point me in the right direction??
Thanks,
Sarge




Spooky -> RE: confirmation page URL (4/7/2008 15:52:36)

How amny parameters are in the URL and which are the important ones? (page no. most likely)
When the record is added currently - what is the confirmation URL?




sarge -> RE: confirmation page URL (4/7/2008 19:16:47)

Hi Spooky!

There's a test page HERE.
The page is normally accessed from a clicked link (not a form).
It's confirmation page is HERE.
At the moment it's just using history.go(-1) to go back.

The important parameters are S (the identifier) and P (a password).
S gets written out when a new line is added, but P does not. Therefore I need to pick up the parameters from the input querystring and somehow pass them to the confirmation page (which would simply be, ideally, the original page - track01.asp - so that it just gets re-displayed).

Sarge




Spooky -> RE: confirmation page URL (4/7/2008 20:18:25)

You are displaying the page with the DRW.
Are you also using the DRW to "Update" the record?

It seems it posts back to itself at track01.asp however the confirmation is track02.asp?




sarge -> RE: confirmation page URL (4/7/2008 21:00:10)

Yes, I'm using the DRW to insert new records.
Confirmation page track02.asp goes back to Track01.asp with history.go(-1).




sarge -> RE: confirmation page URL (4/9/2008 8:34:51)

It's OK, I've got it working (by coding the insert, instead of using the DRW with confirmation page).
It would be nice to know if the DRW could handle that, but it's only academic now.
Sarge




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625