Subscribe to forum RSS Forum

Logging in javascript?

New Topic Post Reply

Page: 1

Author Post
Member
Registered: Aug 2008
Posts: 12
Hi,

I just searched the forum for "javascript" and got no matches - now there will be at least one ;)

Would like to know if there is any way to call SI from JS, because it would certainly make sense to have that logging integrated (especially during development, when all runs on the same machine).

All the best

Michael
Administrator
Registered: Sep 2007
Posts: 132
Hello Michael,

There's unfortunately currently no direct way to use SmartInspect with Javascript. I'm not even sure if it's possible at all (does Javascript have an API for TCP sockets?). The only way I think this could work is by using Ajax to call some server routines that then forward the logging data to SmartInspect.
Hi Tobias,
Guest
Hi Tobias,

thanks for the quick reply. I don't know JS well enough myself to answer about the TCP-sockets, but I would hope that (maybe as part of some Ajax-framework) this could be done.

Maybe something for V3.5... ;)
Member
Registered: Aug 2008
Posts: 12
Ooops, I wasn't logged in when I replied - but of course I was the Guest ;)
Administrator
Registered: Sep 2007
Posts: 132
I added it to the feature request list and we will look into it whether it's possible or not. It would indeed be interesting as Javascript can get quite tedious to debug. A SmartInspect library (maybe even a very basic one) would probably help a lot.

Thanks for the suggestion!
Member
Registered: Aug 2008
Posts: 12
Great, thanks! :)

New Topic Post Reply

Page: 1