On this page:

Target audience:

Users of the extension providing jQuery support for Web applications.

Summary: This document provides basic information about the extension providing jQuery support for Web applications.

Description

This extension provides support for jQuery.

In what situation should you install this extension?

If your Web application contains jQuery source code and you want to view these object types and their links with other objects, then you should install this extension:

$('#advancedLoginOptionsLink').bind('click', dm.login.toggle_advanced);
$('#advancedLoginOptionsLink').click(dm.login.toggle_advanced);
$('#advancedLoginOptionsLink').on('click', this.destroy.bind(this));....
/* GET REQUEST USING AJAX OR GET ANNOTATIONS */
$.ajax({
  url: url,
  data: data,
  success: success,
  dataType: dataType
});
 
$.get( "ajax/test.html", function( data ) {
  $( ".result" ).html( data );
  alert( "Load was performed." );
});
/* POST REQUEST USING AJAX OR POST ANNOTATIONS */
$.ajax({
  type: "POST",
  url: url,
  data: data,
  success: success,
  dataType: dataType
});
 
$.post( "ajax/test.html", function( data ) {
  $( ".result" ).html( data );
});

Transaction configuration

Default entry point is the HTML file content.

Supported jQuery versions

Function Point, Quality and Sizing support

This extension provides the following support:

Function Points
(transactions)
Quality and Sizing
(tick)(tick)

Comparison with existing support for JavaScript in CAST AIP

CAST AIP has provided support for analyzing JavaScript via its J2EE and .NET analyzers (provided out of box in CAST AIP) for some time now. The HTML5/JavaScript extension (on which the jQuery extension depends) also provides support for JavaScript but with a focus on web applications. CAST highly recommends that you use this extension if your Application contains JavaScript and more specifically if you want to analyze a web application, however you should take note of the following:

CAST AIP compatibility

This extension is compatible with:

CAST AIP release
Supported
8.2.x(tick)
8.1.x(tick)
8.0.x(tick)
7.3.4 and all higher 7.3.x releases(tick)

Supported DBMS servers

This extension is compatible with the following DBMS servers:

CAST AIP releaseCSS2OracleMicrosoft
All supported releases(tick)(tick)(error)

Prerequisites

(tick)An installation of any compatible release of CAST AIP (see table above)

Dependencies with other extensions

Some CAST extensions require the presence of other CAST extensions in order to function correctly. The jQuery extension requires that the following other CAST extensions are also installed:

Note that when using the CAST Extension Downloader to download the extension and the Manage Extensions interface in CAST Server Manager to install the extension, any dependent extensions are automatically downloaded and installed for you. You do not need to do anything.

Download and installation instructions

Please see:

The latest release status of this extension can be seen when downloading it from the CAST Extend server.

Packaging, delivering and analyzing your source code

Please see: jQuery - Packaging, delivering and analyzing your source code

What results can you expect?

Once the analysis/snapshot generation has completed, you can view the results in the normal manner (for example via CAST Enlighten). Click to enlarge:

Objects

The following specific objects are displayed in CAST Enlighten:

IconDescription
jQuery Selector
jQuery $.ajax, $.get Get Resource Service
jQuery $.ajax, $.post Post Resource Service
jQuery $.ajax Put Resource Service
jQuery $.ajax Delete Resource Service

Rules

List of rules is available here: https://technologies.castsoftware.com/?rlH=extensions/com.castsoftware.jquery/1.3.0-funcrel.json