Forums

browser resend message

federico85 20 Dec, 2012
Hi folks,
after a lot of hours of work i created a form which shows a table depending on a previous selection.
In this table - on the right side of every record - there is a link to a form in a lightbox which allows the user to edit the record.
I wanted the lightbox to disappear and the parent table to be refreshed when the user close or submit the edit form. So I used:
<body onunload="window.parent.location.reload()">

It works perfectly but now - whenever the page is refreshed - the user is asked if he wants to resend data...
Is there a way to edit the code above and make it resend data automatically?

Thanks in advance...

Federico
GreyHead 20 Dec, 2012
Hi Federico,

I'm not sure, the 'Do you want to reload data?' is a browser enabled security feature. I think it's there to stop people re-sending checkout forms and making double purchases. I have no idea how to avoid it if you have a form in the page and the reload involves POST data.

Bob
federico85 20 Dec, 2012
Ok... thanks... i'll keep on searching
federico85 24 Dec, 2012
Hi Bob,
I searched a lot but it seems to me that the only solution is configuring browser to automatically re-send data...

I thought that - instead of refreshing the whole page - i could refresh just one column or cell:

example - this is my table:

# | NAME | LAST NAME

the edit form will edit LAST NAME column of the selected row.

Now when i close the edit page (which appears in lightbox) it redirects me to the parent page so:
1) if I don't refresh the parent page i always get old values in LAST NAME column;
2) if I refresh the page it keeps on asking the "resend data message"...

Is there a way to update just LAST NAME column using java? If yes, could you kindly post me a specific example?

I tried to search on the internet but i don't know anything about java and so it's really hard for me to understand how to do this...

Thanks again and have a merry Xmas...

Wishing you the best,

Federico
GreyHead 24 Dec, 2012
Hi federico85,

The simplest answer is probably not to use the JavaScript ReLoad but to reload the whole page somehow. Maybe just use an <a> link when you close the lightbox?

Bob
federico85 05 Apr, 2013
thank you bob...
i got it working...
This topic is locked and no more replies can be posted.