Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dealing with refresh
Message
From
17/08/1999 14:05:41
 
 
To
16/08/1999 23:08:28
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00254356
Message ID:
00254612
Views:
19
>>Is there a way to tell if a page has been created from the refresh? like a onRefresh event? We're working with drumbeat and we need to keep the person from reposting from previous data.
>
>Could you expand? I started to write your answer to this, and realized I have no idea what you might mean...
>
>The server can't tell if the request comes from a "refreshed" page, because the browser sends the same form data every time. Usually, this is handled in data on the server side- if the same user has submitted data to the same method in within a certain timespan, you can reject the request...

Alright, we're using one page that will be able to add/edit/delete. We've got a hidden variable that we send up to determine what "mode" we're in. The problem is that after we've added a record, the mode is set to "add" and if the user reposts from data he gets another add. We are trying to prevent that second add on the refresh, but we're not sure where to set a variable that will tell us we're dealing with a refresh instead of a straight insert.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform