| Author |
Post |
|
|
#1 Wed Aug 27, 2008 9:14 am
|
|
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
|
|
|
#2 Wed Aug 27, 2008 2:18 pm
|
|
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,
|
#3 Wed Aug 27, 2008 3:09 pm
|
|
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... 
|
|
|
#4 Wed Aug 27, 2008 3:11 pm
|
|
Member
Registered: Aug 2008
Posts: 12
|
Ooops, I wasn't logged in when I replied - but of course I was the Guest 
|
|
|
#5 Wed Aug 27, 2008 6:09 pm
|
|
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!
|
|
|
#6 Wed Aug 27, 2008 8:21 pm
|
|
Member
Registered: Aug 2008
Posts: 12
|
Great, thanks! 
|