|
Posted by sid.bachtiar on 11/18/90 11:42
Uhmm,
I think it could be a bit too tricky for you, especially after you said
that you "copied this in and tried it." :-\
Let me get this straight
- you have a page with a textarea and a link
- when you click the link, a window is opened
- you do some processing with the poped-up window
- the poped-up window is closed after processing
- you want the original window to show the changes you did in the popup
window?
The bad news is, I'm not really prepared to go into details on this as
it could get tricky for you. Other here who have the time are welcome
to collaborate further.
However, the good news is that I'll leave some clues for you to
research.
First of all, you need to use javascript to open the popup window as a
dialog using javascript function window.showModalDialog (do a research
on google about this javascript function).
Instead of:
<a href="popup_window.php" target="_blank">click me</a>
you'd use:
<a href="JavaScript: my_function_to_open_window()">click me</a>
Where in my_function_to_open_window() it will be something like:
<script>
function my_function_to_open_window()
{
// open window using window.showModalDialog()
// do stuff to refresh the page, e.g.: document.forms[0].submit()
// which will refresh the page
}
</script>
So, in summary, you do need Javascript to do what you want to do, I
can't think of any other way to handle two windows without javascript
(ofcourse I'm open to ideas).
Kind Regards,
Sid
Navigation:
[Reply to this message]
|