fancy quotes [example]

via http://tutorialzine.com/2009/11/fancy-quotes/

Fancy Quotes With jQuery, AJAX & CSS

A Fancy Quote System

div > #topPart

IE6 does not support the min-height property. It also incorrectly interprets height as specifying minimum height.

provide both in the #topPart rules and later set height to auto for browsers that support the > CSS selector. As IE6 does  not understand this operator, it is left with a height behaving like min-height and ignoring the original one.

The quote manager explained

PHP generates the quote list by running an SQL query against the database, and selecting all the quotes. This data is also passed to the JavaScript front end with the help of the fillData() JS function.

Replacing fonts with Cufon

jQuery handles all the user interactions with the quote rating system. It shows the quote in full view, issues the replacement of the fonts with Cufon and handles the voting process.

$.post() – The $.post() method loads data from the server using a HTTP POST request.

$(selector).post(URL,data,function(data,status,xhr),dataType)

URL Required. Specifies the url to send the request to
data Optional. Specifies data to send to the server along with the request
function(data,status,xhr) Optional. Specifies a function to run if the request succeeds
Additional parameters:

  • data – contains the resulting data from the request
  • status – contains the status of the request (“success”, “notmodified”, “error”, “timeout”, or “parsererror”)
  • xhr – contains the XMLHttpRequest object

$.post(‘vote.php’,{qid:ob.id,vote:value},function(data){ }; //handles the AJAX requests to vote.php and updates the interface if necessary.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

生活在西班牙

自己动手丰衣足食

BlueAsteroid

Just another WordPress.com site

Jing's Blog

Just another WordPress.com site

Start from here......

我的心情魔方

天才遠私廚

希望能做一個分享各種資訊的好地方

语义噪声

西瓜大丸子汤的博客

笑对人生,傲立寰宇

Just another WordPress.com site

Where On Earth Is Waldo?

A Project By Melanie Coles

the Serious Computer Vision Blog

A blog about computer vision and serious stuff

Cauthy's Blog

paper review...

Cornell Computer Vision Seminar Blog

Blog for CS 7670 - Special Topics in Computer Vision

datarazzi

Life through nerd-colored glasses

Luciana Haill

Brainwaves Augmenting Consciousness

槑烎

1,2,∞

Dr Paul Tennent

and the university of nottingham

turn off the lights, please

A bunch of random, thinned and stateless thoughts around the Web

%d bloggers like this: