Typo - that should say it "doesn't" happen in reverse.

Sent from my iPad

On 18 Nov 2014, at 20:50, Kevin Turner <kevin.turner@xxxxxxxxxxxxxxxxxxxx> wrote:

Firstly you probably need the easy400 forum rather than the web400 forum.

That aside, /%orequest%/ is a replacement variable that gets set by the RPG program (by updhtmlvar) when it delivers output to the browser. It does happen in reverse. So, assuming lrequest is on the form that gets submitted when the button is pressed, what is your JavaScript doing to set the value of the lrequest input field?

What does the JavaScript look like?

Sent from my iPad

On 18 Nov 2014, at 20:33, Smith, Mike <Mike_Smith@xxxxxxxxxxxxxxxx> wrote:

Raul,
Thanks for the info. I think if I understand correctly, I am doing that.
I have a section in my form like this.

<input type=hidden name="Irequest" value="/%Orequest%/">

-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Raul A. Jager W.
Sent: Tuesday, November 18, 2014 3:16 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] problems with CGIDEV2 zgbgetvarupper

The javascript variables do not get passed to the RPG, you need to put the value in an input field or in the URL that calls the rpg program.

Smith, Mike wrote:

I am trying my first meaningful program with CGIDEV2.
I have it populating the first screen of the HTML, but I cannot get the response from the pageup or pagedown button to show up in my program.

I'm basing my program loosely on a sample I found from a few years ago.
The buttons are defined as SUBMITs and call a little javascript to determine if pageup/pagedown or refresh is pressed.

I can see that it is hitting the java script and the value of field Irequest is populated with 'Pageup'

But when I get back into my program and execute

Irequest = zhbgetvarupper('Irequest') ;

The result always comes back blank and I'm at a loss as what to look for.

Thanks

Mike


Ps, I'll probably have more questions as I work through this program.



NOTICE: This message, including any attachment, is intended as a confidential and privileged communication. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this message.

-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.


NOTICE: This message, including any attachment, is intended as a confidential and privileged communication. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this message.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.

NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



--------------------------------------------------------------------------------


CoralTree Systems Limited
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton
Hampshire
SO15 2EA
VAT Registration Number 834 1020 74.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



--------------------------------------------------------------------------------


CoralTree Systems Limited
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton
Hampshire
SO15 2EA
VAT Registration Number 834 1020 74.

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.