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



Have you across a good tutorial for Angular?

A friend of mine just sent over a decent one for EmberJS. Doesn't look as powerful though.


On 08/02/2021 3:45 PM Tim Fathers <tim@xxxxxxxxxxxxx> wrote:


...it's probably unfortunate that you found AngularJS and not Angular and wasted your time with that. The learning curve is steep but Angular is easier and faster to get started with and Single Page Web-apps are, IMO, definitely better than the alternative. Maybe give it another try later 🙂 I have used it for quite a few years so can maybe help if you get stuck.

Tim.

________________________________
From: WEB400 <web400-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Jay <tegger@xxxxxxxxxxx>
Sent: 02 August 2021 20:41
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxxxxxxxx>
Subject: Re: [WEB400] AngularJS

I went with Angular as a trial.

In the last 20-minutes or so, I've decided it was a waste of time and the existing CGIDEV2 will stay as is.


On 08/02/2021 3:27 PM Tim Fathers <tim@xxxxxxxxxxxxx> wrote:


You definitely shouldn't be using AngularJS, it's long since been deprecated by Angular (no JS), which is now some 12 versions further on than the original. It's also alot nicer to use and with its CLI, you can get a skeleton project up and running quite quickly, although after that, the learning curve is steep!

Get Outlook for Android<https://aka.ms/AAb9ysg>

________________________________
From: WEB400 <web400-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Jay <tegger@xxxxxxxxxxx>
Sent: Monday, August 2, 2021 6:51:25 PM
To: web400@xxxxxxxxxxxxxxxxxx <web400@xxxxxxxxxxxxxxxxxx>
Subject: [WEB400] AngularJS

I'm using AngularJS to replace a CGIDEV2 application. So far, it is not working out with the time I've wasted on it.

The $http post doesn't want to pass parms to the RPGLE routines. I can see the routine trying, but the POST variables aren't there.

I have the following:
var data = {
pagectl:"LOGIN",
pagesub1:"VALIDATE",
username: username,
password: password
};
var config= {
headers: {"Content-Type": "application/json"}
};
$http( { url:'/cgi-bin/wqa0100c',
method:"POST",
headers: {"Content-Type": "application/json"},
data: data
}
)
.success(function(response) {
console.log(response);
if( response.status=="OK" ) {
smn=response.smn;
slname=response.name;
} else {
$rootScope.error=response.errmsg;
}
});

The data isn't seen by the RPGLE routine. I can call it from the webbrowser and pass parameters as a GET process, no issue.
The same chunk of code is running in production now with the CGIDEV2 processes and is access via AJAX.

Any ideas?
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.