I need the code to use on a popup for an insert or update page to.
On popup
When you hit submit.
It either updates or inserts the record.
Then closes the popup.
Then refreshes the window or layer you came from.
This doesn't have the intended affect I needed.
Let me clarify.
I have a list then I want to add a note to the record on the list.
I have a link that says ADD NOTE.
This then popups an insert page.
I then enter my note.
Then when I hit the ADD or Submit button I want it to insert the record, close the popup and then refresh the list page I still have open.
The response when added instantly closes the popup and goes to the whatever.htm page I put in there.
I want the code to occur when I hit the submit not on the open.
I'm also using the built in server behaviors in Dreamweaver MX so something that works with them would be preferable.
One issues is you loose all string variables from the original page any easy way to use it like a history back and then refresh so I don't have to always know the prior variables.
Also I have to make a temp page for every page I want to do this for.
Have you ever used a variable or table to save the prior page and string variables.
You could use session variables (high server load) cookies (user may have them turned off) or you could just keep adding them to the url and use javascript to read them and keep them being passed about.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.