Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Javascript callback problem
Old 01-22-2007, 12:12 PM Javascript callback problem
Junior Talker

Posts: 1
Trades: 0
I have a javascript application that I have written, and am trying to include a callback feature so I can see where the script is being used, I think I have it right in the javascript but am not sure what I should do on the other end to log the callbacks.

The code I have in the javascript is

Code:
var dcl=dc.location;
var dclh=dcl.href;
var f=document.createElement("IMG");
f.src="http://www.domain.com/,"+'?'+escape(encodeURIComponent(dclh)).replace(/\+/g,'%2B');
But what do I need to collect and store this information ?
teedee is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-22-2007, 04:19 PM Re: Javascript callback problem
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
Your server should be collecting the information in its request logs by default.
On apache (by default) its in /var/log/httpd/access_log
You could write a server app to create a more meaningful log by collecting more information about the user agent making the request.


I put together a similar thing a long time ago. You can see the code here:
http://willcode4beer.com/tips.jsp?set=jslogging
willcode4beer is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Javascript callback problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11442 seconds with 12 queries