Machine Learning Authors: Zakia Bouachraoui, Liz McMillan, Roger Strukhoff, Pat Romanski, Carmen Gonzalez

Related Topics: Machine Learning

Machine Learning : Article

Real-World AJAX Book Preview: Some Basic JavaScript Tools

Real-World AJAX Book Preview: Some Basic JavaScript Tools

This content is reprinted from Real-World AJAX: Secrets of the Masters published by SYS-CON Books. To order the entire book now along with companion DVDs for the special pre-order price, click here for more information. Aimed at everyone from enterprise developers to self-taught scripters, Real-World AJAX: Secrets of the Masters is the perfect book for anyone who wants to start developing AJAX applications.

Some Basic JavaScript Tools
Learning JavaScript can be a pain, largely because in most cases you're either limited to working in the browser's command line or building JavaScript in script blocks and leaning heavily on the refresh button in a browser.

While JavaScript command-line environments are available, one of the more useful is an extension to the Firefox browser. Ted Mielczarek's Extension Developer extension (http://ted.mielczarek.org/code/mozilla/extensiondev/) is actually a wonderful tool to experiment on many aspects of Mozilla's XUL and JavaScript features, but it includes a live JavaScript environment as part of its package that you can test scripts in.

If you have Firefox (and if you're developing AJAX applications you probably should have Firefox), then go to the site listed above and select the Install link. This will, in all likelihood, bring up a window at the top of the page indicating that you have to specify this site as being one that you can download programmatic content from. Click the button in the dialog to change the settings, then add the site to the ones you've permission to download from. Then click on the link to the extension and this will open the extension dialog and add it into the environment. Finally, you'll have to restart Firefox.

Once restarted, you'll have a number of buttons on the toolbar along with a new menu item in the Tools menu (see Figure 2.1). Pressing either the JS button or the JavaScript Shell entry will launch the JavaScript Shell (see Figure 2.2), an area where you can enter commands or create objects and have them persist in memory. This is an incredibly useful development tool, since it lets you prototype JavaScript objects before trying to run them as scripts and lets you play with the capabilities of the language.

Keep in mind that the version of JavaScript exposed by this interface is that used by Mozilla's C++ Seamonkey JavaScript language (version 1.5 or 1.6 depending on the version of Firefox you're using). Internet Explorer uses an earlier version of the language (which will be covered later in this chapter), so once you develop an object in JavaScript under this interface you should be very scrupulous in testing it in IE.

This content is reprinted from Real-World AJAX: Secrets of the Masters published by SYS-CON Books. To order the entire book now along with companion DVDs, click here to order.

More Stories By Kurt Cagle

Kurt Cagle is a developer and author, with nearly 20 books to his name and several dozen articles. He writes about Web technologies, open source, Java, and .NET programming issues. He has also worked with Microsoft and others to develop white papers on these technologies. He is the owner of Cagle Communications and a co-author of Real-World AJAX: Secrets of the Masters (SYS-CON books, 2006).

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.

CloudEXPO Stories
The precious oil is extracted from the seeds of prickly pear cactus plant. After taking out the seeds from the fruits, they are adequately dried and then cold pressed to obtain the oil. Indeed, the prickly seed oil is quite expensive. Well, that is understandable when you consider the fact that the seeds are really tiny and each seed contain only about 5% of oil in it at most, plus the seeds are usually handpicked from the fruits. This means it will take tons of these seeds to produce just one bottle of the oil for commercial purpose. But from its medical properties to its culinary importance, skin lightening, moisturizing, and protection abilities, down to its extraordinary hair care properties, prickly seed oil has got lots of excellent rewards for anyone who pays the price.
The platform combines the strengths of Singtel's extensive, intelligent network capabilities with Microsoft's cloud expertise to create a unique solution that sets new standards for IoT applications," said Mr Diomedes Kastanis, Head of IoT at Singtel. "Our solution provides speed, transparency and flexibility, paving the way for a more pervasive use of IoT to accelerate enterprises' digitalisation efforts. AI-powered intelligent connectivity over Microsoft Azure will be the fastest connected path for IoT innovators to scale globally, and the smartest path to cross-device synergy in an instrumented, connected world.
There are many examples of disruption in consumer space – Uber disrupting the cab industry, Airbnb disrupting the hospitality industry and so on; but have you wondered who is disrupting support and operations? AISERA helps make businesses and customers successful by offering consumer-like user experience for support and operations. We have built the world’s first AI-driven IT / HR / Cloud / Customer Support and Operations solution.
ScaleMP is presenting at CloudEXPO 2019, held June 24-26 in Santa Clara, and we’d love to see you there. At the conference, we’ll demonstrate how ScaleMP is solving one of the most vexing challenges for cloud — memory cost and limit of scale — and how our innovative vSMP MemoryONE solution provides affordable larger server memory for the private and public cloud. Please visit us at Booth No. 519 to connect with our experts and learn more about vSMP MemoryONE and how it is already serving some of the world’s largest data centers. Click here to schedule a meeting with our experts and executives.
Darktrace is the world's leading AI company for cyber security. Created by mathematicians from the University of Cambridge, Darktrace's Enterprise Immune System is the first non-consumer application of machine learning to work at scale, across all network types, from physical, virtualized, and cloud, through to IoT and industrial control systems. Installed as a self-configuring cyber defense platform, Darktrace continuously learns what is ‘normal' for all devices and users, updating its understanding as the environment changes.