Instant Download of Premium Web Templates
2010 January | Java-ScriptGate.com

Java-ScriptGate.com - Java Script Is Difficult

Archive for January, 2010

JS and App

January 7, 2010

ECMAScript 5′s Date Extensions

SEO Service Company India - We provide ethical search engine optimisation services to companies world wide. Contact us to get high quality seo services at affordable prices. One of the changes that ECMAScript 5 introduces is extensions to the Date class. Some of these are very useful — Date.now and Date.UTC as well as ISO-8601 format support. Michael J. Ryan has written support for these API changes in DateExtensions.js so you can get started using them now. Internet Marketing Company SEO Consulting - With the most effective affordable SEO packages services in New York, ELM Consulting is the leader in helping small business grow on the web. Click here to learn more about our affordable SEO packages services and much more. redesign website Basariyorum is a leading web solution company catering to all your website design and development needs there by helping your business grow. Usage looks like this:
var epoch1 = new Date("1970-01-01T00:00:00.000Z");
var epoch2 = new Date(0);

if (epoch1.getTime() == epoch2.getTime())
    alert("Epochs match!");

alert(epoch1.toString()); //localized date instance of the JS epoch
alert(epoch2.toISOString()); // "1970-01-01T00:00:00.000Z"
alert(epoch1 instanceof Date); // true
alert(Date.UTC(1970,0,1,0,0,0,0)); // 0

More on ECMAScript

Other ECMAScript 5 extensions to the base library include: You can read a PDF of the spec here: ECMA-262.pdf Free Autoresponders - Welcome to Free autoresponders services officelive webpage. We offer to download a free email autoresponders software you can use for gmail, outlook and other email services. Web Design - Web Design offers custom web design, website development, flash website, portal development, search engine optimization and website designing services. situs-bebas.info - free download Business VPN - HughesNet Business Solutions provides business VPN, virtual private network, business internet with vpn, setting up vpn, satellite vpn for small and medium businesses, affordable and flexible, available anywhere. 0800 Numbers - Providers of a wide range of business numbers starting from 0845, 0800, 0844, 0870, 0300, 0330, regional and international numbers. Conference Call - No need to pay for Conference Calls any longer? Create a free, permanent Conference Room at 03TALK & pay no more. 0845 Numbers - Specialists in 0845 Numbers, 0800 Freephone Numbers, 0808 Numbers, Geographic and Non Geographic Numbers, Premium Rate Numbers and more. Visit the best online Number Store now. Transport Software Transport software has details of consignment, lorry hire, unloading or delivery. Transportation & Logistics Software also related with retail software, manufacturing software, ERP software, retail management, POS retail software, retail business software, production planning control PPC, human resource and payroll, sales force automation, point of sale software company, point of sale software for small business, retail point of sale solutions. Custom Web Design- Custom Website Design Services India Including Website Redesign and Ecommerce Solutions.A leading Web Design and Web Application Development Company in India, that specializes in Low Cost,Professional and Custom Website Design. Website Designs - Affordable & Professional Custom web site designing, Website development with Search Engine Optimization Services and content writing services from a 9001:2000 certified complete web solutions provider. Best address management services - Are you looking to hire best address management services. Your search ends here. Hire Improvemydata.com and get Consumer Data Cleansing & Address Management Service. Call us at 0845 60 60 609 or visit Improvemydata.com now! Offshore Product development - Q3 Technologies is Offshore Product Development Company leading in Outsourced product development, Offshore Product Development India, Outsourced product development India, software development, Application Development and Enterprise Applications Development Services. cam chat - Flashcoms is a reliable developer of flash-based interactive software designed to provide live communication support for websites and web-based communities. SEO Tools Read SEO Tools Reviews & Compare SEO Softwares for IBP, Web CEO & SEO Elite. SEO Software Reviews are rated by professional SEO Expert on the basis of customer reviews. Step and repeat buy computers TopFiveComputers.com is a user friendly computer product review and comparison site for computers and related items. The site was created by Lorenzo Loero, a CompTIA A+ certified IT technician based out of Orlando, FL. The main focus is to give novice computer shoppers the information they need to make purchasing decisions. posicionamiento paginas web Aparece en los Primeros Resultados de los Buscadores a través del servicio de Posicionamiento SEO de Internet Advantage y aumenta la visibilidad de tu Web Web Design India E2 Solutions, India's leading web design company offering top quality website designing services at affordable prices. Hosting - Web Hosting Buzz provides Reseller Web Hosting, cheap shared website hosting, virtual private server (VPS), managed dedicated servers and hosting on reliable high performance reseller hosting server, virtual hosting solutions, semi-dedicated and business hosting accounts home.php Ancestry Search - Radaris people search engine allows you to find and track anyone online. Our records contain current addresses, phone numbers and more. People Search - Online Address Book & People Search allow you to store  all your contacts, find people by name, address, etc. Comfibook helps to connect people! Justhost reviews - Best reviews of justhost hosting plan. Link building company india - cheapest SEO Company in India offers free SEO consultation and Search Engine Optimization. Laser Printers -  Thenerds.net offers great pricing on all ink cartridge, ink toner, laser printers, gps navigation, portable gps, office furniture, notebooks, hard drives, laptops, networking, systems and  digital cameras. Dog Insurance Atlanta IT Consulting- DynaSis, take care of all your Business Technology and IT Management Solutions needs. Custom Software Applications- Custom software development, consulting and data integration services. Should you buy or build a custom application? Contact us for FREE professional IT expert advise. Pink Laptops Professional Link Building Company - Link Building Company: Professional Link Building Company in India provides Professional Link Building Service. A Link Building Company with fully Professional Link Builders offering One Way, Reciprocal and Triangular Linking Services at affordable price link building services - Award winning SEO Link Building Services. Vertical Measures is top rated Internet marketing company helping businesses. get more website traffic via higher search engine rankings, link building, social media, local search, and search engine optimization. Web Design Hampshire - Web Design in Basingstoke, Hampshire. Web design and graphic design agency covering Basingstoke, Hampshire and UK. business logo design - britishlogodesign.co.uk. Custom Logo Design specialists with Business Logo Design and Company Logo Design in the UK. Corporate custom logo design packages at an affordable rate. Suchmaschinenoptimierung - Online Marketing Agentur - Erschwingliche Suchmaschinenoptimierung (SEO) von einem Online-Service Internet-Marketing-Unternehmen. SEO SEO Company Services Schweiz von einer professionellen SEO Zürich. Outsource SEO Dienstleistungen in die Schweiz SEO. Improve web site search engine rankings with high quality relevant links- Buy high quality, relevant text links from us and improve your website search engine rankings. SEO service Quickbooks Hosting - Access Quickbooks Anytime, Anywhere- NovelAspect is a trusted leader in Quickbooks Web Hosting Services. They are the most reliable, and fully-licensed desktop QuickBooks hosting provider. Their QuickBooks Hosting provides unlimited remote user capability and every feature available on the local PC. Call Center India - India homes largest number of qualified, IT literate, tech-savvy and skilled professionals; large number of companies which Outsource Call Center in India. Call Center Service in India not only saves in the total expenditure but allows companies to have a more organized approach for process they outsource. SEO India - We are New Delhi, India based internet marketing services company believe in ethical SEO. Get top ranking on Google with transactional keywords Web design - Ecommerce and Web Design by one of Scotlands leading digital marketing companies. Offering customised business web site design, internet marketing and promotion. Search engine optimisation - Guaranteed SEO offered by expert Internet Marketing company. The SEO guarantee is simple. You receive a minimum of 25% more traffic or you pay nothing, Search engine optimisation. Search Engine Optimization Company - Internet marketing company providing the worlds best SEO to businesses throughout North America. vps hosting

JS and App

January 6, 2010

Drawter

Drawter by Damian Wielgosik is a simple tool for drawing HTML interfaces and exporting the results. It uses jQuery and Damian’s own GUI code. You can draw HTML tags using The Tagname to draw option and the mouse. To switch between drawing and editing content and CSS, use the Draw Mode and Edit buttons. There are also menu items at the top of the page — click Code then Generate code to export your design. Drawter is a great example of what can be done with JavaScript, but it’s also potentially a useful tool. The author of Konigi was already blown away by it, and he’s something of a web prototyping tool enthusiast. online computer support Best Remote Computer Repair Services with Ask PC Experts on 1-888-518-9191. Online Computer Support Specialists & Remote PC Repair, We fix computer problems remotely and provide Online PC troubleshooting Help & Online Computer Tech Support Help to USA, UK, Canada, Australia and other English Speaking Countries. computer support Computer Support Specialists & Remote PC Repair in Australia. We fix computer problems remotely and provide Online PC troubleshooting Help & Online Computer Tech Support. ProStores Ecommerce Design, Customization & SEO/a> from IntuitSolutions, the Ecommerce experts.
Remote Pc Access flash game development Web Design Company Chennai - Visuals India - Web design and Development Company Chennai and SEO company. If you need our services then visit visualindia.com . When it comes to finding a reliable marketing partner the printing company http://www.originalimpressions.comperforms outstandingly as can be expected from a top tier supplier. Search Engine Optimization - India SEO company providing search engine optimization,manual directory submission,search engine submission, internet marketing,custom website designing, affordable websites,website maintenance, software development. Sharepoint Migration - Idera SharePoint migration suite is the most comprehensive solution available for SharePoint content migration. Domain Registration India - Indyadomains.com - Cheap and professional support services on Domain Registration and Web Hosting Chennai, India. IP Telephone Systems - We provide reliable IP telephone systems and we are the leading provider of pure IP telephony solutions worldwide. If you’re preparing for retirement in Ontario, OHIP may not be enough, since it does not cover some medications as well as extensive treatment. Consider individual health insurance Ontario options which will help you medical expenses you may encounter. Computer support - Computer support services can troubleshoot networking issues, software programs, computer fixing and maintenance. Computer support services also provides you with expert consultation on technical isssues. domain name search Real Time GPS Vehicle Tracking System - TrakPro is the leading real time vehicle tracking system providing company. We provide comprehensive vehicle tracking and telematics to transportation industry to keep you one step ahead from your competitors. Blue Delight Web Promotion Pvt. Ltd known as a SEO Services Company and leading for organic, affordable & ethical Search Engine Optimization. B2B Internet Marketing Company is known as bunch of various online services like web promotion, web designing, Search Engine Marketing services using some marketing strategies which include SEO, PPC and SEM for development of website. Professional SEO Services - Providing affordable organic SEO Services - SEO consultancy services and Directory Submission, Link Building, Article Submission and Search Engine Optimization.

JS and App

January 5, 2010

JSpec

We recently posted a unit test roundup, so I noticed that JSpec has been updated to version 3. This version introduces several interesting updates (see the full change list):
  • Rhino’s jar is included so console tests can work without installing extra stuff
  • Added a jspec stats command
  • Subcommand hooks — checks for spec/commands/*_command.rb
  • Ruby server is now a Sinatra app
JSpec is now version 3.0 and currently has over 200 followers on GitHub, so it’s worth checking out.

Syntax Examples

JSpec tests can be written using a custom DSL or a grammar-less JavaScript syntax. When using the DSL in browser-based tests, be sure to use JSpec.exec() to run tests rather than including the code in script tags (more details are in the README). Tests written with the DSL look like this:
describe 'ShoppingCart'
  before_each
    cart = new ShoppingCart
  end

  describe 'addProducts'
    it 'should add several products'
      cart.addProduct('cookie')
      cart.addProduct('icecream')
      cart.should.have 2, 'products'
    end
  end

  describe 'checkout'
    it 'should throw an error when checking out with no products'
      -{ cart.clear().checkout() }.should.throw_error EmptyCart
    end
  end
end
JavaScript equivalent:
JSpec.describe('ShoppingCart', function(){
  before_each(function{
    cart = new ShoppingCart
  })

  describe('addProducts', function(){
    it ('should add several products', function(){
      cart.addProducts('cookie')
      cart.addProducts('icecream')
      expect(cart).to(have, 2, 'products')
    })
  })

  describe('checkout', function(){
    it ('should throw an error when checking out with no products', function(){
      expect(function(){ cart.clear().checkout() }).to(throw_error, EmptyCart)
    })
  })
})

Custom Matchers

Custom matchers can be defined using JSpec.addMatchers. It’s possible to control the error messages. It’s also possible to create sets of macros with similar names:
JSpec.addMatchers({
  'be disabled selected checked' : function(attr) {
    return 'jQuery(actual).attr("' + attr + '")'
  },

  'have type id title alt href src sel rev name target' : function(attr) {
    return function(actual, value) {
      return value ? jQuery(actual).attr(attr) ## value:
                     jQuery(actual).attr(attr)
    }
  }
})

Other Features

JSpec includes a command-line tool that can initialise project templates, as well as auto-testing when files are changed. It can also work with Growl in Mac OS X. It includes lots of familiar matchers and works well in a browser and console.

Installation

To try JSpec out, you can install it with RubyGemsgem install jspec and read the docs on github.com/visionmedia/jspec. The future telecommunication technology is video conference facilities or video conferencing solutions. This communication facility allows several locations to interact with people via audio and video simultaneously. Video conference software brings a cost effective video conferencing system which is held over ISDN. This is very good video picture quality and also much more reliable than the normal internet.
SPORTSBETTING.COM is the simplest and most popular destination for sports betting on the Internet. Our many years of experience guarantee you a superior betting service. Join today to take advantage of all our great offers.
MCITP upgradeEnroll to Intense School's highest rated MCITP Upgrade Boot Camp now. For more information, visit Intesneschool.com now! LiteSpeed Hosting Provider-LiteSpeed hosting with Ultra Website hosting .com. Increase the speed of your website with UltraWebsiteHosting.com’s LiteSpeed web services. Three times faster than Apache with the most competitive pricing. Live Support, price guarantee, 45-day money back guarantee… it’s tough to beat these guys!

JS and App

January 4, 2010

Benchmarks in JavaScript

Speeding up page load times is a good way to decrease bounce rates and increase customer satisfaction. And if you’re using JavaScript in your server-side architecture, speed will become increasingly important. So you might be tempted to write your own benchmarking code when puzzling over a tricky performance issue. Fortunately there are quite a few JavaScript benchmarking libraries out there.

Unit Tests

If you’re writing unit tests you should get some benchmark information. Most libraries automatically benchmark tests — unittest.js includes a benchmark method. You could use this outside of tests for some foresnic analysis.

JavaScript Benchmark

JavaScript Benchmark is a nice little library that features:
  • ASCII-friendly output that’s great for server-side JavaScript
  • A simple API
  • Test suite support
Each benchmark will be run once by default, or you can specify a value:
suite('Iteration', 50000, function() {
  array = [1,2,3,4,5,6,7,8,9];

  benchmark('for', function() {
    for (var i = 0; i < array.length; ++i);
  });

  benchmark('for cached', function() {
    for (var i = 0, len = array.length; i < len; ++i);
  });

  benchmark('for in', function() {
    for (var i in array);
  });
});
This library won’t work in a browser due to the use of the print() function, but all you need to do is supply your own. Something like this will do:
function print(message) {
  document.getElementById('log').innerHTML += message + "\n";
}
I’ve put a full example up here: benchmarks.html

BenchmarkBuddy

BenchmarkBuddy is inspired by the RunSingleBenchmark from the V8 source. Here’s one of the author’s examples:
alert(BenchmarkBuddy.run(Math.random));

Benchmark.js

Benchmark.js is based on Ruby’s benchmark library. It’s still a work in progress and isn’t currently console-friendly, but when it works it will look like this:
Benchmark.benchmark(function() {
  for (i = 0; i < 10000000; i++) { }
});

link building services 
web content management

Download Premium Web Templates Instantly
Download Website Templates For Free