"Doug Gunnoe" <do********@gmail.comwrote in message
news:7a**********************************@s12g2000 prg.googlegroups.com...
i'm clueless on what you explained. i'm a newbie to java. thanks.
t. hiep
Ok. Well it is Javascript not to be confused with java. However, it is
really not all that complicated.
I assume that your update.php is like a pop up window.
The following demonstrates a little of what you are looking for. It
should put you on the right path.
In the parent window (list.php for you)
<html>
<head>
<script>
function doStuff(msg){
alert("here is a message from the child window: " + msg);
}
</script>
</head>
<body>
<input type="button" value="click me"
onclick="window.open('kiddoc.html','kidwin','width =300,height=300')" /
>
</body>
</html>
In the child window which I named kiddoc.html, (but is update.php in
your case)
<html>
<head>
<script>
function sendStuff(){
window.opener.doStuff('hi there');
window.close();
}
</script>
</head>
<body>
<input type="button" value="now click on this" onclick="sendStuff()" /
>
</body>
</html>
You can cut and paste this into two docs on your desktop, just name
the child window kiddoc.html, and this will work.
Good luck.
i think i know the problem. how do i force list.php reload after update.php
page updated mysql table? in other word, after user clicked update button
on update.php page, this page will update the record in mysql table then
reload list.php page. is this possible at all? or do i need to find a
different way to update my table???
thanks