SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 54 | Next

Deepak Vohra

"Ajax in Oracle JDeveloper"

failure element is
used if the Ajax call fails. The url parameter specifies the url to which
the request is sent. The options parameter specifies the Ajax options,
which are the same as for Ajax.Request class. In addition to the
Ajax.Request options, an insertion class may be specified with
insertion property. Insertion class value may be
Insertion.Before (adds HTML before the element),
Insertion.After(adds HTML after the element),
Insertion.Top(adds HTML as a first child of the element), or
Insertion.Bottom(adds HTML as the last child of the element).
Another option that may be specified with Ajax.Updater is
evalScripts, which indicates if scripts shall be evaluated when the
response is received. Default value of evalScripts is false. For
example, send an XMLHttpRequest with Ajax.Updater to update a
form element, userid, with the response HTML.
var ajaxRequest = new Ajax.Updater('userid', url,
{method: 'get',
parameters: pars});
50 3 Less JavaScript with Prototype
3.2.10 Ajax.PeriodicalUpdater Class
The Ajax.PeriodicalUpdater class is similar to Ajax.Updater
class and is used to update a form element periodically. The frequency
with which the element is updated is specified with the frequency
option. The constructor for Ajax.PeriodicalUpdater is the same as
Ajax.Updater. For example, update a validationMessage div
periodically.
Var ajaxRequest= new Ajax.PeriodicalUpdater
('validationMessage', url,
{frequency: '2',
method: 'get',
parameters: pars
});
3.


Pages:
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66