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



Richard

I use several AJAX calls when i launch my portal.

First the main accordion that is generated based on user rules.

Each of these accordion tabs is an object that points back to a service
that populates them using a simple JSON structure also based on
user rules.

This means that user A dosn't sees the same menues as user B since
he only sees functions he is allowed to process.

While this process i running the actual tree structure are build using
a Tree Traversal algoritm that also use recursive calls og sub-procedures.

And every for evry function there are issued a request in a tabel that
consist of the session random number, the request random number,
the CGI program name that all has to match to run the function and
the request may also hold server side parameters.

When a function is called the process starts again, request are made
for each service the function uses an server side parameters are
replicated down through the chain.

Since it is totally server controlled there are no cookies and the method
has also been SOX audited and by EU to meet the standards for protecting
systems that handles personal sensitive information where the penalty for
not doing that is up to 20 million EURO or, if you are a big international
company, 25% of the company global turnover. Nice guy's them in the
EU commission and i'm afraid that your cookie strategy down bring you
far in that line of business since they are regarded as unsafe ;-(

On Sat, Mar 4, 2017 at 3:39 PM, Bradley Stone <bvstone@xxxxxxxxx> wrote:

Richard,

Using AJAX or even SSI can result in a single page making many multiple
requests for one single page displayed.

I personally do the same thing with web page design as with ILE. If it
will be displayed on more than one page (or on every page, for example a
user's signon status) it because an AJAX or SSI call.

So it's really no problem for one page when displayed loads data from 5
different places. Of course, each of those "calls/reuests" will use it's
first available job.

Bradley V. Stone
www.bvstools.com
Native IBM i e-Mail solutions for Microsoft Office 365, Gmail, or any Cloud
Provider!

On Sat, Mar 4, 2017 at 8:14 AM, Richard Schoen <
Richard.Schoen@xxxxxxxxxxxxxxx> wrote:

Thanks for the education on Ajax also in response to my simple question
on
QTEMP.

If the Apache server is set to single-thread then I imagine these Ajax
requests would be stacked and each would wait for the thread to service
it
and could possibly time out.

Out of curiousity: For application efficiency why are you making 5 Ajax
calls at once ?

I tend to try to simplify any apps I write to minimize the back and forth
interaction to the back end. I try not to get data until needed and
sometimes cache data app side in a database or local data variables.

I've been writing apps for devices and try to minimize network impact so
I
guess you could say I'm more passive than aggressive :-)

Regards,

Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com

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

message: 1
date: Sat, 4 Mar 2017 11:13:05 +0100
from: Henrik R?tzou <hr@xxxxxxxxxxxx>
subject: Re: [WEB400] Question on QTEMP and CGI Jobs

Kevin

well, it may be understod that they share QTEMP since a call to PGMA from
user 1 and thereafter call to PGMB from user 2 running under the same
QZSRCGI shares the same QTEMP that belongs to the QZSRCGI and not PGMA or
PGMB.

PS - I don't think you uses AJAX as agressivly as I, if you fires 4-5
unnested AJAX calls from the browser at the same time it will result in
4-5
QZSRCGI jobs handling the requests, in other word they aren't queued to
the
same QZSRCGI job.

Remember that persistence CGI was written way before AJAX where AJAX may
run many independend sockets to the server at the same time.


On Sat, Mar 4, 2017 at 10:42 AM, Kevin Turner <
kevin.turner@xxxxxxxxxxxxxx

wrote:

So the even shorter answer to this question "Would there be any way
for two CGI calls at the same time to overlap the QTEMP libs ?"
is
"No!"

HTH


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


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





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.