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




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.