Page 1 of 1

CSS Link Question about Facebook

Posted: Tue Dec 18, 2007 9:23 pm
by tecktalkcm0391

Code: Select all

<link rel="stylesheet" href="http://static.ak.facebook.com/css/dialog.css?12:39930" type="text/css"/>
Can someone explain why there is the ?12:39930 on the end of the css href... and why just dialog.css sometimes doesn't work it has to have the ?12:39930


--------------

Also, how can I highlight text in a suggest like Facebook has for Names?
What Javascript functions should I use... i like facebook's because it does only one AJAX request.

Posted: Tue Dec 18, 2007 10:12 pm
by Kieran Huggins
They're using a script to generate and serve the CSS. It's likely an authentication token of sorts, as well as forcing the browser to pull a fresh copy. Since the script has arguments, the browser won't use the cached copy.

As for ajax auto-suggest, I'd take a look at one of the frameworks for a ready-made solution. I'm partial to jQuery, personally.