Adsense
Popular Posts
- Install APXS in Redhat Linux
- MySQL workbench -"Could not decrypt password cache"
- Transfer modules between sites
- JavaScript, remove trailing insignificant zeros after toFixed function
- Set Windows path command line
- datatable order by nunmeric
- MySQL date created and date modified
- super(props) in React
- PHP, dump varailbes in a format way
- React: connect(mapStateToProps, mapDispatchToProps)
Tuesday, February 3, 2015
Click save button, parent window refresh using JavaScript
open a window in new tab in firefox:
window.open('SITAview_form.php?sid=' + stakeholder_id + '&term=' + term + '&cid=' + course_id+'&pad_id=' + pad_id);
Now I want to refresh parent window when click save button in this window:, window.opener.location.reload(); is used to reload parent window in JS:
$('div.box#Contract_basic_Info input.saveButton').click(function() {
saveBasicInfo();
window.opener.location.reload();
});
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment