CSS Link Question about Facebook

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

CSS Link Question about Facebook

Post 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.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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.
Post Reply