1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
9966 [12]
4 years ago
11

Describe each of the following terms in the context of Ajax: a) type-ahead b) edit-in-place c) partial page update d) asynchrono

us request e) XMLHttpRequest f) ""raw"" Ajax g) callback function h) same origin policy i) Ajax libraries j) RIA
Engineering
1 answer:
slavikrds [6]4 years ago
7 0

Answer:

a. The idea behind a type-ahead field is very simple: As soon as the user enters a character into the input field, the browser issues an AJAX request to the server by passing the current content of that field as the parameter. The server evaluates the content and returns a list of suggestions to the browser.

b. The Goal

An AJAX (or AHAH) proof-of-concept page that allows the visitor to edit the very (x)HTML page they are viewing, without leaving the page

c. Partial pages can be used to break up complex pages into smaller units, thereby reducing the complexity and allowing teams to work on different units concurrently. They can also be used to provide content for updating part of the rendered web page via AJAX in client side script. A partial page is a single .cshtml file.

d. AJAX, which stands for asynchronous JavaScript and XML, is a technique that allows web pages to be updated asynchronously, which means that the browser doesn't need to reload the entire page when only a small bit of data on the page has changed. AJAX passes only the updated information to and from the server.

e. XMLHttpRequest (XHR) is an API that can be used by JavaScript, JScript, VBScript, and other web browser scripting languages to transfer and manipulate XML data to and from a webserver using HTTP, establishing an independent connection channel between a webpage's Client-Side and Server-Side.

f. A function to be used to handle the raw response data of XMLHttpRequest. dataType : The type of data expected back from the server. error : A function to be called if the request fails. global : Whether to trigger global Ajax event handlers for this request.

g. callback() function. The Ajax callback itself works like this: The browser sends a message (i.e. data) to the server, and specifies the page (usually the . A5W page in Alpha Anywhere) on the server that will receive the message.

h. The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin. It helps isolate potentially malicious documents, reducing possible attack vectors.

i. AJAX is a set of web development techniques used by client-side frameworks and libraries to make asynchronous HTTP calls to the server. ... AJAX used to be a common name in the web development circles and many of the popular JavaScript widgets were built using AJAX.

j. AJAX is the most viable Rich Internet Application (RIA) technology so far. It is getting tremendous industry momentum and several tool kit and frameworks are emerging. But at the same time, AJAX has browser incompatibility and it is supported by JavaScript, which is hard to maintain and debug.

You might be interested in
Why does voltage have so many names
BARSIC [14]

Answer:

Europe and most other countries in the world use a voltage which is twice that of the US. ... Originally Europe was 120 V too, just like Japan and the US today, but it was deemed necessary to increase voltage to get more power with fewer losses and less voltage drop from the same copper wire diameter

www.worldstandards.eu › electricity › why-no-standard-voltage

Explanation:

6 0
3 years ago
Read 2 more answers
What would be the most likely scale factor to use for an n-gauge model train setup? (An n-gauge layout uses locomotives that are
slega [8]
A or b for sure brother
8 0
3 years ago
Write a Lottery class that simulates a lottery. The class should have an array of five integers named lotteryNumbers. The constr
Bezzdna [24]

Answer:

Output:-

Enter the five digit lottery number

Enter the digit 1 : 23

Enter the digit 2 : 44

Enter the digit 3 : 43

Enter the digit 4 : 66

Enter the digit 5 : 33

YOU LOSS!!

Computer Generated Lottery Number :

|12|38|47|48|49|

Lottery Number Of user:

|23|33|43|44|66|

Number Of digit matched: 0

Code:-

import java.util.Arrays;

import java.util.Random;

import java.util.Scanner;

public class Lottery {

int[] lotteryNumbers = new int[5];

public int[] getLotteryNumbers() {

return lotteryNumbers;

}

Lottery() {

Random randomVal = new Random();

for (int i = 0; i < lotteryNumbers.length; i++) {

lotteryNumbers[i] = randomVal.nextInt((50 - 1) + 1);

}

}

int compare(int[] personLottery) {

int count = 0;

Arrays.sort(lotteryNumbers);

Arrays.sort(personLottery);

for (int i = 0; i < lotteryNumbers.length; i++) {

if (lotteryNumbers[i] == personLottery[i]) {

count++;

}

}

return count;

}

public static void main(String[] args) {

int[] personLotteryNum = new int[5];

int matchNum;

Lottery lnum = new Lottery();

Scanner input = new Scanner(System.in);

System.out.println("Enten the five digit lottery number");

for (int i = 0; i < personLotteryNum.length; i++) {

System.out.println("Enter the digit " + (i + 1) + " :");

personLotteryNum[i] = input.nextInt();

}

matchNum = lnum.compare(personLotteryNum);

if (matchNum == 5)

System.out.println("YOU WIN!!");

else

System.out.println("YOU LOSS!!");

System.out.println("Computer Generated Lottery Number :");

System.out.print("|");

for (int i = 0; i < lnum.getLotteryNumbers().length; i++) {

System.out.print(lnum.getLotteryNumbers()[i] + "|");

}

System.out.println("\n\nLottery Number Of user:");

System.out.print("|");

for (int i = 0; i < personLotteryNum.length; i++) {

System.out.print(personLotteryNum[i] + "|");

}

System.out.println();

System.out.println("Number Of digit matched: " + matchNum);

}

}

Explanation:

5 0
3 years ago
Who is the first presidant of the us?
dexar [7]

Answer:

George Washington was the first president

8 0
3 years ago
Read 2 more answers
Find the second derivative of: y = sqrt(x + 4)/4; x ≥ -4.
hammer [34]

Answer: \dfrac{-1}{16(x+4)^{\frac{3}{2}}}

Explanation:

Given

y=\dfrac{\sqrt{x+4}}{4}\\\text{differentitate w.r.t x}\\\dfrac{\mathrm{d} y}{\mathrm{d} x}=\dfrac{1}{4}\times \dfrac{1}{2\sqrt{x+4}}=\dfrac{1}{8\sqrt{x+4}}

\dfrac{\mathrm{d} y}{\mathrm{d} x}=\dfrac{(x+4)^{-0.5}}{8}

Again differentiate for the second derivative

\frac{\mathrm{d^2} y}{\mathrm{d} x^2}=\dfrac{1}{8}\times \dfrac{-1}{2(x+4)^{\frac{3}{2}}}=\dfrac{-1}{16(x+4)^{\frac{3}{2}}}

8 0
3 years ago
Read 2 more answers
Other questions:
  • Calculate the availability of a system where the mean time between failures is 900 hours and the mean time to repair is 100 hour
    15·1 answer
  • Describe with an example how corroded structures can lead to environment pollution? ​
    13·1 answer
  • Rivers account for _____% of the earth's fresh water.<br> ?
    10·2 answers
  • The hot-wire anemometer is an instrument used for measuring velocities or temperatures. If, during its calibration, the output s
    6·1 answer
  • Suppose that the number of times that Vampire Bill gets attacked by Hep V in a given year is a Poisson random variable with para
    7·1 answer
  • The volume of a right circular cone of radius r and height h is V = 1 3 πr 2h (a) (i) Find a formula for the instantaneous rate
    8·1 answer
  • When using a Hammer I should always keep an eye on may fingers so as not to hit them.?
    14·2 answers
  • Tech A says that some starters use gear reduction to improve efficiency. Tech B says that a starter converts electrical energy t
    14·1 answer
  • Need help<br> What is elasticity?
    8·2 answers
  • How to clean a snowblower carburetor without removing it.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!