tag:blogger.com,1999:blog-23714519.post3055628099776516146..comments2023-10-18T02:14:08.061+11:00Comments on Alex's Corner: More Logged In User Detection via Authenticated Redirectskuza55http://www.blogger.com/profile/03932544559060480887noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-23714519.post-33857445295415998182007-01-09T23:20:00.000+11:002007-01-09T23:20:00.000+11:00I'll get something working soon then. I figured ou...I'll get something working soon then. I figured out what <i>one</i> of the problems that PoC has in IE - its that onload attributes can seemingly only be set after the element has been appended to an object, so swapping those two lines around gets the code executing, but for some reason the CSS detection just doesn't seem to work.<br /><br />How I hate writing PoC code......Its so much work, so much undocumented crap (well, with IE anyway, Firefox has good javascrippt docs) and its not even as if I'm ever going to personally use it......Oh well, I'll still fix it.....kuza55https://www.blogger.com/profile/03932544559060480887noreply@blogger.comtag:blogger.com,1999:blog-23714519.post-72148076494348582282007-01-08T22:32:00.000+11:002007-01-08T22:32:00.000+11:00Hi Alex.
Yes, it worked for me on all levels.
I m...Hi Alex.<br /><br />Yes, it worked for me on all levels.<br />I made a PoC last year:<br /><br />http://www.jungsonnstudios.com/cool.php<br /><br />To see the example:<br /><br />1) turn on javascript<br />2) do not have "safe cache" ext. installed.<br />3) cache must be turned on in the browser.<br /><br />If it doesn't work, I really like to hear it from you.<br /><br />-JungsonnAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-23714519.post-57965967178521208692007-01-05T15:59:00.000+11:002007-01-05T15:59:00.000+11:00Hmmm, I must have forgotten to test it in IE, my m...Hmmm, I must have forgotten to test it in IE, my mistake, I'll try to figure out what is causing it to not work.....<br /><br />And the reason I didn't use link colour is because people were reporting problems with IE not displaying the link colour properly if the links were added after the document had loaded.<br /><br />Does that code you posted solve the problem?kuza55https://www.blogger.com/profile/03932544559060480887noreply@blogger.comtag:blogger.com,1999:blog-23714519.post-53612185983924570742007-01-05T13:15:00.000+11:002007-01-05T13:15:00.000+11:00Alex, I've got a better working cross broswer vers...Alex, I've got a better working cross broswer version because both versions I saw did not work for me. And the visited link color(purple) is also correct in my example. I have not tested it in Opera, but MSIE & FF works.<br /><br />Like:<br /><br />var x = document.getElementById(el);<br />if (x.currentStyle) {<br />var y = x.currentStyle[color];<br />} else if (window.getComputedStyle) {<br />var y = document.defaultView.getComputedStyle<br />(x,null).getPropertyValue(color);<br />}<br /><br />// Check visited link color:<br /><br />if(y=='#800080') {<br />// MSIE color<br />} <br />if (y=="rgb(128, 0, 128)") {<br />// Mozilla/Gecko color<br />}<br /><br />-JungsonnAnonymousnoreply@blogger.com