Thanks Kevin.
I just figured out the Chrome javascript debugger and that led me to solve my initial problem.
I wasn't writing my key field to the HTML(I don't display it in my green screen version, so I didn't write it out in the CGIDEV2 version.
I placed it in a hidden field and it seems to be working now. Now to the next step of trying to modify a record.
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kevin Turner
Sent: Monday, August 26, 2013 12:27 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] cgidev2
By the way, in my opinion, the best way to debug javascript is via the developer tools in Google Chrome, followed closely by the Firebug plug-in for Firefox. In fact, most browsers now have developer tools that allow this - even IE (albeit the worst of the bunch).
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kevin Turner
Sent: 26 August 2013 17:22
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] cgidev2
Mike
Not sure if you downloaded the IBM version or the easy400 version. If the former, then you would be much better off downloading the latter and joining the easy400 forum. That is the place you will get decent examples and proper support. The IBM version is a dead end.
http://www.easy400.net/
Rgds
Kevin
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Smith, Mike
Sent: 26 August 2013 15:41
To: 'web400@xxxxxxxxxxxx'
Subject: [WEB400] cgidev2
I am playing a bit with CGIDEV2 but I'm having a bit of a problem.
I have been following an example from this article
http://iprodeveloper.com/rpg-programming/business-quality-rpg-web-application
I have this program working, but now I've created a similar program of my own based on this code.
When I select a record to display I don't get the record I selected. I get only the first record, or sometimes I get a 'Record not found'
It appears the piece of code that determines what record is selected is a Javascript function in the HTML.
This might be obvious but how do I debug the javascript function?
Secondly, This program doesn't do all I want. I would like to be able to sort by clicking on the column headings. Does anyone have an example of how to do this?
Thanks
MIke
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.
--
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.
As an Amazon Associate we earn from qualifying purchases.