Client-side logging

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Client-side logging

Chris Bailey-2
Hi all,

I wondered if there is any way of getting javascript error messages back
from the client?

I notice that when a javascript error happens, Orbeon display "Error while
processing response: XXX" in the top left of the page.

Is there a way of catching this error so that one could send it back to the
server for logging. The problem is that even when this error occurs the
rest of the xform might appear to work correctly but still failing for some
reason.

I had a situation a while ago and my users could not tell that a problem
had occurred (especially in situations where the page scrolls down and the
top-left area of the page is then hidden). They just noticed that their
data was suddenly not being saved.

Chris.

--
----------------------
Chris Bailey
[hidden email]



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Client-side logging

Erik Bruchez
Administrator
Chris,

> I wondered if there is any way of getting javascript error messages back
> from the client?
>
> I notice that when a javascript error happens, Orbeon display "Error
> while processing response: XXX" in the top left of the page.
>
> Is there a way of catching this error so that one could send it back to
> the server for logging. The problem is that even when this error occurs
> the rest of the xform might appear to work correctly but still failing
> for some reason.
>
> I had a situation a while ago and my users could not tell that a problem
> had occurred (especially in situations where the page scrolls down and
> the top-left area of the page is then hidden). They just noticed that
> their data was suddenly not being saved.
That would be interesting. Of course in some cases your application may
be bust enough that sending something back to the server wouldn't work.

I think that we already catch errors so that we can give the form a
chance to keep working. Alex should be able to comment a little more on
this.

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Client-side logging

Alessandro Vernet
Administrator
In reply to this post by Chris Bailey-2
Hi Chris,

On 6/14/07, Chris Bailey <[hidden email]> wrote:
> I notice that when a javascript error happens, Orbeon display "Error while
> processing response: XXX" in the top left of the page.

Two things:

1) We could display the errors in a more end-user-friendly way. This involves:
1.1) Giving the option to reload the page, or to go to a "home page"
when an error happens.
1.2) Display the error message the same way we now display the Loading
indication, so people get a chance to see the message even if they
have scrolled down.
2) Reporting back errors to the server, so you can find then in the log files.

We already have an RFE for (1). I added comment relative to (1.2), per
your suggestion.
http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail&aid=305542

I added an RFE for (2):
http://forge.objectweb.org/tracker/index.php?func=detail&aid=307183&group_id=168&atid=350207

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Client-side logging

joac
Dear Orbeon guys,

Regarding this issue, I am getting errors like this one on top of the page
and I don't know if it is possible to show the html page defined in the
error message instead of the red text with all this message:

Error while processing response: <html><head><title>Apache Tomcat/5.5.16 -
Informe de Error</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:22px;} H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:16px;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
12px;}A {color : black;}A.name {color : black;}HR {color :
#525D76;}--></style> </head><body><h1>Estado HTTP 500 - </h1><HR size="1"
noshade="noshade"><p><b>type</b> Informe de estado</p><p><b>mensaje</b>
<u></u></p><p><b>descripción</b> <u>El servidor encontró un error interno ()
que hizo que no pudiera rellenar este requerimiento.</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/5.5.16</h3></body></html>

Thanks,
Jordi

-----Mensaje original-----
De: [hidden email] [mailto:[hidden email]] En nombre de Alessandro
Vernet
Enviado el: viernes, 15 de junio de 2007 12:13
Para: [hidden email]
Asunto: Re: [ops-users] Client-side logging

Hi Chris,

On 6/14/07, Chris Bailey <[hidden email]> wrote:
> I notice that when a javascript error happens, Orbeon display "Error while
> processing response: XXX" in the top left of the page.

Two things:

1) We could display the errors in a more end-user-friendly way. This
involves:
1.1) Giving the option to reload the page, or to go to a "home page"
when an error happens.
1.2) Display the error message the same way we now display the Loading
indication, so people get a chance to see the message even if they
have scrolled down.
2) Reporting back errors to the server, so you can find then in the log
files.

We already have an RFE for (1). I added comment relative to (1.2), per
your suggestion.
http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail&aid
=305542

I added an RFE for (2):
http://forge.objectweb.org/tracker/index.php?func=detail&aid=307183&group_id
=168&atid=350207

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Client-side logging

Erik Bruchez
Administrator
Jordi,

We are in the process of making displaying of Ajax and JavaScript errors
much nicer. This should be in the nighly builds over the next few days,
so stay tuned.

-Erik

Jordi Amatller wrote:

> Dear Orbeon guys,
>
> Regarding this issue, I am getting errors like this one on top of the page
> and I don't know if it is possible to show the html page defined in the
> error message instead of the red text with all this message:
>
> Error while processing response: <html><head><title>Apache Tomcat/5.5.16 -
> Informe de Error</title><style><!--H1
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
> nt-size:22px;} H2
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
> nt-size:16px;} H3
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
> nt-size:14px;} BODY
> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> P
> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
> 12px;}A {color : black;}A.name {color : black;}HR {color :
> #525D76;}--></style> </head><body><h1>Estado HTTP 500 - </h1><HR size="1"
> noshade="noshade"><p><b>type</b> Informe de estado</p><p><b>mensaje</b>
> <u></u></p><p><b>descripción</b> <u>El servidor encontró un error interno ()
> que hizo que no pudiera rellenar este requerimiento.</u></p><HR size="1"
> noshade="noshade"><h3>Apache Tomcat/5.5.16</h3></body></html>
>
> Thanks,
> Jordi
>
> -----Mensaje original-----
> De: [hidden email] [mailto:[hidden email]] En nombre de Alessandro
> Vernet
> Enviado el: viernes, 15 de junio de 2007 12:13
> Para: [hidden email]
> Asunto: Re: [ops-users] Client-side logging
>
> Hi Chris,
>
> On 6/14/07, Chris Bailey <[hidden email]> wrote:
>> I notice that when a javascript error happens, Orbeon display "Error while
>> processing response: XXX" in the top left of the page.
>
> Two things:
>
> 1) We could display the errors in a more end-user-friendly way. This
> involves:
> 1.1) Giving the option to reload the page, or to go to a "home page"
> when an error happens.
> 1.2) Display the error message the same way we now display the Loading
> indication, so people get a chance to see the message even if they
> have scrolled down.
> 2) Reporting back errors to the server, so you can find then in the log
> files.
>
> We already have an RFE for (1). I added comment relative to (1.2), per
> your suggestion.
> http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail&aid
> =305542
>
> I added an RFE for (2):
> http://forge.objectweb.org/tracker/index.php?func=detail&aid=307183&group_id
> =168&atid=350207
>
> Alex
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Client-side logging

Chris Bailey-2
That's great news :)

Just as a follow up for any interested parties, there is Log4JS
(<http://log4js.sourceforge.net/>) which is modeled on Log4J, however I've
found JSLog (<http://earthcode.com/blog/2005/12/jslog.html>) which provides
a nice, simple and easy to use inline Javascript logging console. I also
hear that the Google Maps API provides a GLog object which works in a
similar way.

However these are all client-side only solutions so I'll be eagerly looking
forward to seeing the solution you guys develop.

Regards,
Chris.

--On 25 June 2007 16:48 +0200 Erik Bruchez <[hidden email]> wrote:

> Jordi,
>
> We are in the process of making displaying of Ajax and JavaScript errors
> much nicer. This should be in the nighly builds over the next few days,
> so stay tuned.
>
> -Erik
>
> Jordi Amatller wrote:
>> Dear Orbeon guys,
>>
>> Regarding this issue, I am getting errors like this one on top of the
>> page and I don't know if it is possible to show the html page defined in
>> the error message instead of the red text with all this message:
>>
>> Error while processing response: <html><head><title>Apache Tomcat/5.5.16
>> - Informe de Error</title><style><!--H1
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
>> 6;fo nt-size:22px;} H2
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
>> 6;fo nt-size:16px;} H3
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
>> 6;fo nt-size:14px;} BODY
>> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;
>> } B
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
>> 6;} P
>> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-s
>> ize: 12px;}A {color : black;}A.name {color : black;}HR {color :
>> # 525D76;}--></style> </head><body><h1>Estado HTTP 500 - </h1><HR
>> # size="1"
>> noshade="noshade"><p><b>type</b> Informe de estado</p><p><b>mensaje</b>
>> <u></u></p><p><b>descripción</b> <u>El servidor encontró un error
>> interno () que hizo que no pudiera rellenar este
>> requerimiento.</u></p><HR size="1" noshade="noshade"><h3>Apache
>> Tomcat/5.5.16</h3></body></html>
>>
>> Thanks,
>> Jordi
>>
>> -----Mensaje original-----
>> De: [hidden email] [mailto:[hidden email]] En nombre de Alessandro
>> Vernet
>> Enviado el: viernes, 15 de junio de 2007 12:13
>> Para: [hidden email]
>> Asunto: Re: [ops-users] Client-side logging
>>
>> Hi Chris,
>>
>> On 6/14/07, Chris Bailey <[hidden email]> wrote:
>>> I notice that when a javascript error happens, Orbeon display "Error
>>> while processing response: XXX" in the top left of the page.
>>
>> Two things:
>>
>> 1) We could display the errors in a more end-user-friendly way. This
>> involves:
>> 1.1) Giving the option to reload the page, or to go to a "home page"
>> when an error happens.
>> 1.2) Display the error message the same way we now display the Loading
>> indication, so people get a chance to see the message even if they
>> have scrolled down.
>> 2) Reporting back errors to the server, so you can find then in the log
>> files.
>>
>> We already have an RFE for (1). I added comment relative to (1.2), per
>> your suggestion.
>> http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail
>> &aid =305542
>>
>> I added an RFE for (2):
>> http://forge.objectweb.org/tracker/index.php?func=detail&aid=307183&grou
>> p_id =168&atid=350207
>>
>> Alex


--
----------------------
Chris Bailey
[hidden email]



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Client-side logging

joac
In reply to this post by Erik Bruchez
Hi Erik,

I will stay tuned.

Thanks,
Jordi



-----Mensaje original-----
De: Erik Bruchez [mailto:[hidden email]] En nombre de Erik Bruchez
Enviado el: lunes, 25 de junio de 2007 16:49
Para: [hidden email]
Asunto: Re: [ops-users] Client-side logging

Jordi,

We are in the process of making displaying of Ajax and JavaScript errors
much nicer. This should be in the nighly builds over the next few days,
so stay tuned.

-Erik

Jordi Amatller wrote:
> Dear Orbeon guys,
>
> Regarding this issue, I am getting errors like this one on top of the page
> and I don't know if it is possible to show the html page defined in the
> error message instead of the red text with all this message:
>
> Error while processing response: <html><head><title>Apache Tomcat/5.5.16 -
> Informe de Error</title><style><!--H1
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
> nt-size:22px;} H2
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
> nt-size:16px;} H3
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
> nt-size:14px;} BODY
> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> P
>
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
> 12px;}A {color : black;}A.name {color : black;}HR {color :
> #525D76;}--></style> </head><body><h1>Estado HTTP 500 - </h1><HR size="1"
> noshade="noshade"><p><b>type</b> Informe de estado</p><p><b>mensaje</b>
> <u></u></p><p><b>descripción</b> <u>El servidor encontró un error interno
()

> que hizo que no pudiera rellenar este requerimiento.</u></p><HR size="1"
> noshade="noshade"><h3>Apache Tomcat/5.5.16</h3></body></html>
>
> Thanks,
> Jordi
>
> -----Mensaje original-----
> De: [hidden email] [mailto:[hidden email]] En nombre de Alessandro
> Vernet
> Enviado el: viernes, 15 de junio de 2007 12:13
> Para: [hidden email]
> Asunto: Re: [ops-users] Client-side logging
>
> Hi Chris,
>
> On 6/14/07, Chris Bailey <[hidden email]> wrote:
>> I notice that when a javascript error happens, Orbeon display "Error
while

>> processing response: XXX" in the top left of the page.
>
> Two things:
>
> 1) We could display the errors in a more end-user-friendly way. This
> involves:
> 1.1) Giving the option to reload the page, or to go to a "home page"
> when an error happens.
> 1.2) Display the error message the same way we now display the Loading
> indication, so people get a chance to see the message even if they
> have scrolled down.
> 2) Reporting back errors to the server, so you can find then in the log
> files.
>
> We already have an RFE for (1). I added comment relative to (1.2), per
> your suggestion.
>
http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail&aid
> =305542
>
> I added an RFE for (2):
>
http://forge.objectweb.org/tracker/index.php?func=detail&aid=307183&group_id
> =168&atid=350207
>
> Alex
>


--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws