dOUbleOfour Posted May 15, 2006 Share Posted May 15, 2006 I have this code in my web[code]<script type="text/javascript"> var pageViewerID = 02; var pageOwnerID = 01; var pageViewerFName = "cat"; var pageOwnerFName = "dog"; var pandoraRegFlag = '-1'; refreshCachedPage(); </script><script>[/code] This is the piece of my profiles code. Everytime someone visits/open my profile the "var pageViewerID" changes depending of what's the visitors ID and also the "var pageViewerFName".And i want to know who whowed my profile so that im wondering if is it possible to save those "var pageviewerID" and "var pageViewerFName" to a log like PHP or mySQL? Quote Link to comment Share on other sites More sharing options...
dOUbleOfour Posted May 15, 2006 Author Share Posted May 15, 2006 anyone please... [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted May 15, 2006 Share Posted May 15, 2006 The only way this can be done is to use AJAX (asynchonous Javascript) to start a small PHP script in the background on the server. If you are unfamiliar with AJAX, there is a sister forum to this one on [a href=\"http://www.ajaxfreaks.com/\" target=\"_blank\"]ajaxfreaks.com[/a]. You can also take a look at the [a href=\"http://developer.yahoo.com/yui/connection/\" target=\"_blank\"]Connection Manager[/a] in the Yahoo! Developer Network.Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.