JavaScript runs on the client/browser (unless it's node.js) and stored procedures run on the server. You cannot run/invoke stored procedures directly from JavaScript any more than you can call an rpgle program from JavaScript. All you can do is submit an http request from JavaScript or from a web form and have the endpoint run the stored procedure - maybe via a cgi program.

[] ƕ
On 18 Dec 2016, at 20:04, Booth Martin <booth@xxxxxxxxxxxx> wrote:

Back to a simple web page... 2+ years ago I asked about stored procedures and a simple web page. The last piece, for now, is calling a stored procedure from javascript on a web page on the IFS.

The stored procedure creates a .json file on the ifs and the web page reads and presents that .json data to the user. The last step for now is to click a button on the web page and have it invoke the stored procedure to refresh the .json file.

So far I have been able to stay within the confines of HTML, javascript, and .css. I am looking to include a javascript function that invokes the stored procedure?

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,
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

The information transmitted herein is intended only for the person or entity to which it is addressed and may contain confidential, proprietary and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by 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.