hi richard,
i'm not very sure to understand why you need to make an ajax call to
calculate sum's result from différent container lists.
i presume you can obtain this within a scriptlet using the jahia api
with the methods like getContainerList and getAbsoluteContainerlist,
and iterate through all these containers(and fields's values?) and
make your computing processes as u need?
for your 2nd question, there is no simple way to transfer from
javascript a java object (like jData).
Usually, in an ajax requests, you can send only unique references or
ids as parameter.
this way, server-side, the class in charge, can get the object(s) and
respond successfully to the request.
joe pillot
jahia.com
Le 12 févr. 07 à 17:56, Richard Gate a écrit :
Hi all,
I have an AJAX method that runs through some containers lists and
calculates totals. I need jData to make the
getAbsoluteContainerList call.
I can access the jData object through <%=jData%> from inside the
JSP. I want to pass this to my AJAX method but i'm not even sure if
thats possible.
Alternatively I would like to get the jData object from within my
class. I don't have access to ProcessingContext from here. Is this
possible?
Thanks,
Richard.
--
Richard Gate
Developer
Souk Digital
A Souk Group Company.
London Office
1st Floor,
Shaftesbury House,
151 Shaftesbury Avenue,
London WC2H 8AL
Tel: +44 (0) 20 7420 7880
Nottingham Office
High Pavement Business Centre,
3-5 High Pavement,
The Lace Market,
Nottingham.
NG1 1HF
Tel: +44 (0) 115 959 6455
Fax: +44 (0) 115 959 6456
www.soukdigital.com
Confidentiality: This e-mail and its attachments are intended for
the above named only and may be confidential. If they have come to
you in error you must take no action based on them, nor must you
copy or show them to anyone; please reply to this e-mail and
highlight the error.
Security Warning: Please note that this e-mail has been created in
the knowledge that Internet e-mail is not a 100% secure
communications medium. We advise that you understand and observe
this lack of security when e-mailing us.
Viruses: Although we have taken steps to ensure that this e-mail
and attachments are free from any virus, we advise that in keeping
with good computing practice the recipient should ensure they are
actually virus free.
From - Thu Oct 19 11:47:14 2006
X-Account-Key: account2
X-UIDL: A"Z!!afc!!=8'#!7b'"!
X-Mozilla-Status: 0009
X-Mozilla-Status2: 00000000
Return-Path: <developers-return-443-
[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 7867 invoked by alias); 19 Oct 2006 10:42:50 -0000
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
X-No-Archive: yes
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 7863 invoked from network); 19 Oct 2006 10:42:49
-0000
Message-ID: <[EMAIL PROTECTED]>
Date: Thu, 19 Oct 2006 11:45:51 +0100
From: Nat Titman <[EMAIL PROTECTED]>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [developers] Useful articles on accessibility and testing
X-UIDL: A"Z!!afc!!=8'#!7b'"!
Hi,
A couple of useful articles.
Accessibility for the Apathetic:
http://www.hacknot.info/hacknot/action/showEntry?eid=69
Testing:
http://www.hacknot.info/hacknot/action/showEntry?eid=68
Thanks,
Nat.
--
Nat Titman
Senior Developer
SOUK Digital
A SOUK Group Company.
http://www.soukdigital.com/
Nottingham Office
High Pavement Business Centre,
3-5 High Pavement,
The Lace Market,
Nottingham.
NG1 1HF
Tel: +44 (0) 115 959 6455
Fax: +44 (0) 115 959 6456
Direct: +44 (0) 115 959 6462
London Office
1st Floor,
Shaftesbury House,
151 Shaftesbury Avenue,
London WC2H 8AL
Tel: +44 (0) 20 7420 7880
Confidentiality: This e-mail and its attachments are intended for
the above named only and may be confidential. If they have come
to you in error you must take no action based on them, nor must
you copy or show them to anyone; please reply to this e-mail and
highlight the error.
Security Warning: Please note that this e-mail has been created
in the knowledge that Internet e-mail is not a 100% secure
communications medium. We advise that you understand and observe
this lack of security when e-mailing us.
Viruses: Although we have taken steps to ensure that this e-mail
and attachments are free from any virus, we advise that in keeping
with good computing practice the recipient should ensure they are
actually virus free.
dominique (joe) pillot
Jahia Solutions France
portable: 0663543179
bureau: 0153546968