Today, the BBC would like you to be afraid of sugar @BBCNewsGo5 hours ago
@preloveduk nothing but time wasters for buying and selling.. £5 down the toilet #prelovedGo22 hours ago
RT @FalkSoulBrother: I think there's some misunderstanding of how welfare works. Its there for when people fall on hard time and not as a c⦠Go2013/05/20
See how the JQuery Datepicker looks below, the example uses code from the google CDN so is quick to load for your visitors no matter where they are in the world.
Posted by Brad | Posted in Coding | Posted on 10-06-2011
First create your page on the server that can take a parameter to get some form of data and return matches found, in this case I just want to get a body of text from a database. Note that you want to prevent caching of the response in the browser above the include that supplies the connection string in this classic ASP server side script.
[codesyntax lang="asp" lines_start="1"]
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
pStr = "private, no-cache, must-revalidate"
Response.ExpiresAbsolute = #2000-01-01#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", pStr
%>
<!--#include file="../Connections/yourConnection.asp" -->
<%
Dim ID
ID = Request("ID")
Set cmd = Server.CreateObject ("ADODB.Command")
cmd.ActiveConnection = ConnString
cmd.CommandText = "SELECT TOP 1 Message FROM dbo.Table WHERE ID = " & ID
Set rs = cmd.Execute
If rs.eof = false Then
Response.Write(rs("Message"))
End If
Set rs = nothing
%>
[/codesyntax]
Below you find the client webpage containing the code required to change the innertext of a textarea to the response returned by the page above. You don’t need to worry about uploading the JQuery API to your server as it’s hosted on Google’s CDN to make it load nice and snappy geographically.
Posted by Brad | Posted in Recommendations | Posted on 11-12-2009
If you are looking at the title tags on my blog from today you will notice they look utterly friggin’ beautiful. There is a javascript include called cufon that you upload a font to their site, select a couple of easy options, their site then generates a text file that converts your TTF fonts into a mumbo jumbo code their javascript understands.
Then the magic happens
Upload the generated file, the javascript framework file, and optionally a couple of extra customizations then wack code into your header and footer.
Your regular text titles etc will be converted to super antialiased images on the fly in the browser for a super sleek custom font look, great for sites with a DB back end such as this wordpress blog!.
My cufon-config.js on day1 includes just this
Cufon.replace(‘h1′)(‘h2′)(‘h3′);
Cufon.now();
But that could change as I play with it more, but for now this is perfect.