General information
Category:
Internet applications
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only