Re: WebObjects and Javascript Response Rewriter
Re: WebObjects and Javascript Response Rewriter
- Subject: Re: WebObjects and Javascript Response Rewriter
- From: Jérémy DE ROYER via Webobjects-dev <email@hidden>
- Date: Thu, 2 Jan 2020 19:04:37 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ingencys.net; dmarc=pass action=none header.from=ingencys.net; dkim=pass header.d=ingencys.net; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kaYAHOu4OO/p22FyxMOK66Jg+IViMSc5vvxL+c5WNgI=; b=k2jnZb+tQ8MjjZhNRXZBsJHLD0Vl+FBqavyZhtUaHY6BaeS77cLjmxdSw0/RfNh8vNVy5ojs1/wvmNnT2uTDtQENOTKVKJuYjlQDttgKU3+Zywj2NFVxD9d3m7UWe9fY6BGBDLW0FfLvomPPWXESwRITfRoGvInhV4VAq6uETsAdFV+Ungho5AqN3TuSg8JEfILHzOt+fWeqv2wAlh4BHd50Bgd1jNiHt/rnc4BmUmTLwKXW9y3QN0ZnT7dm4oinRIdhHHhTrsK0JUgB/eCrEO7HEpFzWoVmU8q3x9OqriOsiq7Iqi2cNm9RTuGbtBK2MyZTu5JvvvPvdAWL9iW8GA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N+aTfH1XyUv9IF59F0eQd7nvAIv6KPSTz3+8Ss2guO/bTkgNjBl5wRWdcf0UYaHTExtcxZ3Kgr3wtZ/lP+omiTx5S3PjS+aLvJGWdAvoGLWfZxoB4NJWbmfwafM7kei8tebHF981JLdJpUmCXbKBRJcw1uu/TQss/AZHjq26Lik1PqGYRwHfENutM/HV6VcAS64mOjtIeONMO4F4kjV74SMtuWeKJ6uQp4uZ1RztpPvb7vXDvxOShedN2fYdEkt0sLScnCn/jkFKZz7vaUWbqVVgl6/wDx1w1YK1i0fX/z/mGUqGDK8sDaECf8Oe86GLaMVQctcZRf5VUlQUUB+p9A==
- Thread-topic: WebObjects and Javascript Response Rewriter
We only need it for our web commerce app were the front-end part of changes is
really important.
The advantage of this, compare to use jQuery inside the client browser, is the
possiblities to :
- avoid the one-javascript-with-bug-blocks the entire page
- call other apis without showing it to the client
- and more
It’s like an ERXResponseRewriter… but in javascript ;-)
Jérémy
Le 2 janv. 2020 à 19:47, Jesse Tayler
<email@hidden<mailto:email@hidden>> a écrit :
I see.
Well, that’s a bit of a trick but of course, you can decide what you’d like to
do.
I once realized that my UI elements often needed settings, defaults and
configurations to exist in javascript — it seemed a waste and trouble to create
new components of course, in my case, I use a lot of D2W and did not need
programming outside the regular dev tools — but I did move the css and
javascript additions into D2W rules, which made the component reliable and the
programming of details often a matter of copying configurations you know work
and writing the rule to determine when that script should be placed into the
component.
In your case, it sounds like you might want a way they can write HTML /
javascript components that are pulled from your app and then vended from the
server.
Or better yet, a stub of your page with only the HTML required to jump off a
few queries to render the rest of the page using largely website type tools
with html segments deployed somewhere.
My sense is this would not be clean and likely won’t work out the way you’d
really like it to, but who knows! Your situation might lend itself to some
design choice like these and maybe that works for you.
On Jan 2, 2020, at 1:40 PM, Jérémy DE ROYER
<email@hidden<mailto:email@hidden>> wrote:
Hi Jesse,
for the moment we are using jquery to modify the html code, but after rendering
in the client browser and our front end designers don’t feel like « real »
developpers.
I would like to give the possibility to our front-end (javascript) designers to
add their custom js code without having to change the back end that is all
written in java with webobjects
is this better explained ?
Jérémy
Le 2 janv. 2020 à 19:33, Jesse Tayler
<email@hidden<mailto:email@hidden>> a écrit :
I might be confused —
Don’t you already have control at both ends?
On Jan 2, 2020, at 1:31 PM, Jérémy DE ROYER via Webobjects-dev
<email@hidden<mailto:email@hidden>> wrote:
Hi all… and Happy New Year !
For this new year, I’de like to add a javascript postprocessor to the
webobjects response.
I mean I would like to give our front-end developpers the possiblity to rewrite
the reponse… before sending it to the customer.
Have any of you already done such a mechanism ?
Jérémy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list
(email@hidden<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden<mailto:email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden