Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Resurrect the 10.5 Movies widget in Tiger' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Resurrect the 10.5 Movies widget in Tiger
Authored by: happygouki on Jun 13, '08 02:07:36PM

i couldn't get this to work for canadian postal codes

there is a function in the movies.js file that verifies the zip code (as 5 digits)

function isValidPostalCode(n) {
return n && isFinite(n) && 5 == n.toString().length && n > 0;
}

i tried commenting out the ANDs (i.e. changed it to):

function isValidPostalCode(n) {
return n;
// && isFinite(n) && 5 == n.toString().length && n > 0;
}

seems to work :)



[ Reply to This | # ]