Re: how to reload another browser window from a form (after insert/update)
Thanks Scott, but I’m still stuck for the reason that I don’t want to use an iframe. Formb (non-sc planboard) contains a large table containing all days of a year horizontally and rental ships vertically. By scrolling horizontally the user can see all bookings of all ships over a year. I (and my customer) explicitly want to keep this planboard in a seperate browser window/tab.
I found out that using javascript it is possible to reload a different browser window/tab:
FormA -> reload button
<html>
<head>
<script language='javascript'>
function reloadplanboard(){
var w=window.open("", "planboard"); //get handle of planboard
w.location.reload(true); //reload it
}
</script>
</head>
<body>
<form onSubmit="reloadplanboard();">
<input type="submit" value="reload planboard!"/>
</form>
</body>
</html>
FormB -> page showing current time after clicking button in FormA
<html>
<head>
<script language='javascript'>window.name='planboard';</script>
</head>
<body>
<?php
echo "time: ".date('H:i:s');
?>
</body>
</html>
Maybe there’s a way to load/execute the code in formA from a SC form?