
Hi Chad!
This question probably have been answered before, but I'll take a chance and ask it once more.
Why isnt it possible to combine both javascript and asp tracking? I've seen other statistic programs like weppos (www.weppos.com) and sitelog (www.sitelog) being able to do it, so I guess its possible to do it then?
Cheers!
Kristoffer :o)
resolution and colors
======================================================================
Get a screen size without a component using ASP!!
Ive been looking for ways on how to do this for a long time. But ive never found a way to do it without a component! So i made a combo of asp and javascript to do it, heres how you do it:
First we make the javascript that gets the screen size and make a cookie:
Code:
Next we declare out asp variables and read the cookies with the screen size:
Code:
<%
'Declare variables
Dim strScreenWidth
Dim strScreenHeight
'Read the cookies with the width and height
strScreenWidth = Request.Cookies("ScreenWidth")
strScreenHeight = Request.Cookies("ScreenHeight")
'If not cookie was made then say the screen size is 800x600
If strScreenWidth = "" Then strScreenWidth = 800
If strScreenHeight = "" Then strScreenHeight = 600
%>
Now we can use strScreenWidth and strScreenHeight to display the users screen width and height:
Code:
<%
Response.Write("Your screen width is: " & strScreenWidth & "")
Response.Write("Your screen height is: " & strScreenHeight)
%>
Hope you have fun with this
======================================================================
Here's a example on how to do it. Copyright belongs to Drew (Author) @ iportalx.com
Looking forward to any reply that you might have!
Cheers!
Kristoffer :o)
resolution and colors
Have you got a chance to take a look at this example, and question Chad?
Just wondering! :)
Cheers!
Kristoffer :o)
resolution and colors
Yes, there was something similar to this in v1.3 but it was omitted in v2 for some reason. I have added it to the wishlist for v3 and until then it is here if someone wants to use it. Thanks!
~Chad
resolution and colors
Personally I don't like to depend on cookies. Today more and more people are blocking cookies as a default and mentain a short 'whitelist' of trusted sites.
Worst case your cookies might even end up on the blacklist of anti spyware software.
Geert