Forum Moderators: open
I have dropdown (select) boxes on this page where occasionally I need to add a value to the list, which is pulled from a database when the page is loaded. I have a link on Page A that opens the correct update page (Page B) for each list. When I close that page(Page B) causing the DB to be updated I need to reload Page A. This causes the list to be rebuilt with the new item added, that is it must behave as if the form on Page A was resubmited to itself.
Using Javascript how do I reload/submit Page A from Page B?
No frames used and Combo box type solutions have caused DB Normalization problems in the pass (Enter your version of the value rather than look for the standard version on the list)
Hope I didn't make that to muddy.
Thanks before hand
Here it is: FYI Everyone:
On Page A the related link for each dropdown box:
Has an onClick that looks like this:
OnClick = "Newpage('nextpage.htm')"
Where the Newpage function is:
<script language="javascript">
<!--
function newpage(o_file){
window.name="WhateverYouWant";
window.open (o_file, 'something', config='height=400,width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no');
}
-->
</script>
On the Newpage (Page B) the close button onClick function looks like this:
onClick ="Closed()"
Where the Closed function is:
<script language="javascript">
<!--
function Closed(){
window.opener.document.theFormNameFromPageA.submit();
window.close();
}
-->
</script>
This causes Page B to close and the form on Page A to self submit, therefore the query loading the dropdown list reruns and the list is refreshed with the new item added.
Only tested with Coldfusion form behaviors.
Thanks again