× 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.



good time for web service??

-----Original Message-----
From: web400-admin@midrange.com [mailto:web400-admin@midrange.com]On
Behalf Of Nathan M. Andelin
Sent: Monday, February 11, 2002 4:17 PM
To: web400@midrange.com
Subject: Re: [WEB400] call an rpg program to return a true/false value
in javascript


> if (href="/cgi-bin/myprogram?parm=parmvalue") {
>   domystuff;
>   }
>      else   {
>   dootherstuff;
>   }

It wouldn't be quite that simple.  The browser would expect a page to be
returned by an HREF.

A couple alternatives come to mind.  I think a java applet on the current
page could connect to the server and ask for a true/false response.  The
applet could export a method that could return a true/false value to java
script.

Second, an HREF link could return a page that contained a form with a hidden
variable.  If you didn't want that page to replace the current page, then
you may be able to reference a hidden target frame.  Your java script could
reference the hidden variable in the hidden frame.

Sorry, I don't have a source example.

Nathan M. Andelin
www.relational-data.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 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.