1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Solving Common Client Requets with jQuery
-
Upload
chris-coyier -
Category
Design
-
view
3.916 -
download
1
description
Transcript of Solving Common Client Requets with jQuery
Hey Chris,
Can we change the text “Add a coupon:” to “Enter voucher code:”
Also, can the box to enter that code be shown by default?
- Fake Client
Change Text
Display
• Find out a year later...FoxyCart totally does allow you to
change language
• Don’t have markup control / Can use jQuery
• Fairly rare... Third party services, Huge applications - Separation between
designers and developers
Hey Chris,
Can we add this text right below the dropdown for the shipping choice?
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus
Thanks!
- Fake Client
Before
Friday at 4:52pm
Monday at 9:08am
Monday at 1:20pm
Monday at 1:20pm
• jQuery: Pop-up box, .load() content
• What are they really asking for?
• What do the users need?
• Enough content to warrant a special page?
• What are they really asking for?
• Enough content to warrant a special page?
• What do the users need?
• jQuery: Pop-up box, .load() content
• Traditional Ways: Frames, Separate Windows, Flash
• The browser window can’t reload
• Low content site = simulate Flash
• High content site = AJAX load pages
Hey Chris,
We would like to show our latest “tweet” from Twitter on our website. Can you do this!?- Fake Client
• “Tweetify” (or @Anywhere)
• Top priority: it doesn’t affect the normal page load time.
(You don’t want to rely on the Twitter API for your site to load)
• Only append (entire area)to page upon success
• Only showing non-replies
Hey Chris,
One of the things we want for our new site is a music player. The music should continue playing when they click to go to other pages.- Fake Client
• Small site = content on one page, animateLarge site = AJAX load other pages
• Music will stop on a page load,there is no way around it.
• Solution: do not reload the page
• Bad solutions: Frames, Flash, Pop-up Windows
Reset Stuff
Truncated Shows
Quick Plugin,reduced repeated code
Hash tag links
Internal Links
Fade out old
Load and fadein new
Hash tags
Hey Chris,
Can we put the category navigation from the store part of the site on the homepage of the site?- Fake Client
$(function() {
$("#dropdown-bar").load("/store #dropdown-bar");
$("#blog-promo span").load("/blog .post:first h2");
});
• AJAX .load() just parts
• The best way would probably beserver side
• Store is a different CMS than home =(
BONUSWe need a new
form on our website,can you help?
Thanks!