|
I already use javascript to open the pop up window here it is.... function ItemDetails(ItemNumber){ var URL="/cgi-bin/itemdet?Item="+ItemNumber; var name="itemdet"; var attributes=",scrollbars=yes,resizable=yes,toolbar=no,location=no,status= no,directories=no,width=300,height=200"; var desc_window = window.open( URL , name , attributes ); desc_window.focus(); } ...../cgi-bin/itemdet is the CGi program that will do the update. I don't quite understand what you are doing with this....... c eval OutStr = 'Content-Type: Text/HTML' + c $CrLf + $CrLf + c '<html><script language=JavaScript>' + c 'window.close; + $CrLf c 'window.opener.refresh(); + c '</script></html>' and of course, back in the item list window, you would have a function called 'refresh()' that would resubmit the form to the refresh cgi program. -----Original Message----- From: web400-admin@midrange.com [mailto:web400-admin@midrange.com] On Behalf Of Richard B Baird Sent: Tuesday, September 17, 2002 2:44 PM To: web400@midrange.com Subject: Re: [WEB400] Refreshing windows Justin, off the top of my head, one way to skin that cat: change the <A href> tags in the 'item list' window to run a function a javascript function instead of just an href (passing the relevent fields as parms). the function would open the 'display cost chg' window using the window.open() function. (my email client won't display the var line on one line) function chgcost(item) { var CostChange = window.open ("<putcostchangecgihrefhere>","CostChange","scrollbars,resizable"); CostChange; } cost change cgi loads the new window with cost change page. user changes cost and submits the form to the 'cost update' cgi the 'cost update' cgi would close the 'cost change' window and refresh the item list by sending something like this back to the cost change cgi. c eval OutStr = 'Content-Type: Text/HTML' + c $CrLf + $CrLf + c '<html><script language=JavaScript>' + c 'window.close; + $CrLf c 'window.opener.refresh(); + c '</script></html>' and of course, back in the item list window, you would have a function called 'refresh()' that would resubmit the form to the refresh cgi program. let me know if i haven't been clear. Rick -----original message------- Hi Everyone, On my website, I have one page that lists my items and selling prices. From inside of my network I display the item number as an AREF that calls a CGI program in a little pop up window. Inside of this window I can update the cost of the item. Here is my question, is there a way that I can refresh the main page when I click the update button in the little pop up window? Thanks for all of the help in advance. Justin Houchin Programmer and Web Developer ReliaTek, Inc justin@reliatek.com _______________________________________________ This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/web400 or email: WEB400-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.