I changed I the document.form1.submit to
function refresh() {
   window.location="/cgi-bin/iteminq?SUB=/%SubCat%/"

I update the SubCat field with the item sub category when the caller
page loads. This works great for me!!! Thanks for all of the help! I
learn something cool everyday!! :)

-----Original Message-----
From: web400-admin@midrange.com [mailto:web400-admin@midrange.com] On
Behalf Of Richard B Baird
Sent: Wednesday, September 18, 2002 7:51 AM
To: web400@midrange.com
Subject: RE: [WEB400] Refreshing windows


Justin,

Yes, you could do that. But I'm not sure why document.form1 is null
though.

Is form1 defined on the page?

Is it the same form name submitted when an item is clicked for cost chg?

Or are you just running an href to a different cgi, bypassing the form
name?

What is the 'action' parm on the form tag?

Are you using post or get method?

a couple of tips/suggestions that might help you.  some or all of which
you
may already know.

you can change the 'action' of a form (the cgi program it submits) in
your
refresh() function using:
document.form1.action="cgipath/cgiprogram"

I'm a little hazy on the differences and limitations of the get vs post
methods, because my CGIs always check both methods and use the first one
it
finds, but I think that if you use document.form.submit(), it assumes
"post" method? I could be very wrong here.

or, as you said, you could just build the url string and submit it via
href.

hth,

rick

----original message------
Richard,
I understand now that I have to code a function into the caller page. I
tried using this and it didn't work....
function refresh()
{
     document.form1.submit();
}

it says that document.form1 is null.

Should I put the URL of the page or something?

_______________________________________________
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 thread ...

Replies:

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.