I didn't write this, but it is in place and working:
Open the window:
function show_lobbyist(query_str) {
var pop;
pop=window.open("/lobbyists/show.pl?" + query_str,
"_blank","width=400,height=450,status=yes,resizable=yes,scrollbars=yes");
if (pop != null) {
if (pop.opener == null)
pop.opener = self;
}
}
To save, this page uses a form in the caller page to submit the update.
function save_close () \{
opener.document.modify_list_form.add_bill_to_lists.value=add_lists;
opener.document.modify_list_form.new_bills.value="{$raw_bills}";
opener.document.modify_list_form.submit();
window.close();
\}
On 2/23/06, Jillian Koskie <[EMAIL PROTECTED]> wrote:
> I've got a question... that should be super easy but I'm WAY WAY rusty with
> JS.
>
> I had a form where I need to:
>
> a) open a pop-up window
> b) click on a link in the pop-up window to populate the form on the parent
> page
>
> Does anybody have a code snippet?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:5:197981
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54