× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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?



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.