Può essere usato per interrogare per WoW dati da applicazioni web interne tramite JavaScript chiama.
Utilizzo di esempio:
& # x3c;! DOCTYPE HTML & # X3e;
& # x3c; head & # X3e;
& nbsp; & nbsp; & nbsp; & # x3c; script src = "/ js / jswow.js" & # X3e; & # x3c; / script & X3e #;
& # x3c; / head & # X3e;
& # x3c; body & # X3e;
& nbsp; & nbsp; & nbsp; & # x3c; script & # X3e;
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; var jw = new JSWoW ();
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; jw.region = 'eu';
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; jw.realms («Chants & eacute; ternels ', funzione (regni) {
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; alert (regni [0] .name);
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; });
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; jw.realms («БорейCкaя тундрa ',' Aggramar ', funzione (regni) {
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; alert (regni [0] && .status regni [1] .STATUS 'Entrambi up': 'Uno o entrambi verso il basso'?);
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; });
& nbsp; & nbsp; & nbsp; & # x3c; / script & # X3e;
& # x3c; / body & # X3e;
Requisiti :
- Javascript abilitato sul lato client
I commenti non trovato