|
If I'm late or repeating someone else's solution excuse me but... Couldn't you just write a cookie out and then read it back in the JavaScript? Bob Cozzi cozzi@rpgiv.com Visit the on-line Midrange Developer forum at: http://www.rpgiv.com > -----Original Message----- > From: web400-admin@midrange.com [mailto:web400-admin@midrange.com] On Behalf > Of Richard B Baird > Sent: Tuesday, February 12, 2002 1:07 PM > To: web400@midrange.com > Subject: Re: [WEB400] call an rpg program to return a true/false value in > javascript > > > thanks Nathan, > > I was trying to avoid reloading the page, but that will have to do. > > I'm not going to try to code my first java applet on a deadline. > > thanks anyway, > > rick > > ---original message--- > > 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 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.