Elenco di funzioni mbox.js da utilizzare per l'implementazione con mbox.js.
Se si utilizza at.js, questi metodi non sono applicabili.
Metodo | Note |
---|---|
mbox.getName() |
|
mbox.getURL() |
|
mbox.getDiv() |
Restituisce il div associato alla mbox (con il contenuto predefinito o un'offerta) |
mbox.getParameters() |
Matrice di parametri con due campi, nome e valore |
mbox.setOnError() |
Esempio:mbox.setOnError(function() { alert(this.getName() +" had error"}); |
mbox.setMessage(message) |
È possibile visualizzare il messaggio nella finestra di debug. |
mboxCurrent.activate() |
|
mboxCurrent.cancelTimeout() |
|
mboxCurrent.finalize() |
|
mboxCurrent.getDefaultDiv() |
|
mboxCurrent.getDiv() |
Restituisce il div associato alla mbox (con il contenuto predefinito o un'offerta) |
mboxCurrent.getEventTimes() |
|
mboxCurrent.getFetcher() |
|
mboxCurrent.getId() |
|
mboxCurrent.getImportName() |
|
mboxCurrent.getName() |
|
mboxCurrent.getOffer() |
|
mboxCurrent.getParameters() |
Matrice di parametri con due campi, nome e valore. |
mboxCurrent.getURL() |
|
mboxCurrent.getURLBuilder() |
|
mboxCurrent.hide() |
|
mboxCurrent.isActivated () |
|
mboxCurrent.load() |
|
mboxCurrent.loaded() |
|
mboxCurrent.setEventTime() |
|
mboxCurrent.setFetcher() |
|
mboxCurrent.setMessage() |
|
mboxCurrent.setMessage(message) |
Visualizza il messaggio nella finestra di debug. |
mboxCurrent.setOffer() |
|
mboxCurrent.setOnError() |
Esempio:mboxCurrent.setOnError(function(){ alert(this.getName() +" had error"}); |
mboxCurrent.setOnLoad() |
Esempio:mboxCurrent.setOnLoad(function(){alert(this.getName()+" loaded")}); |
mboxCurrent.show() |
|
mboxCurrent.showContent() |
|
mboxFactoryDefault.addOnLoad(action) |
L'azione viene chiamata quando la pagina viene caricata. |
mboxFactoryDefault.getMboxes().each() |
Esempio:mboxFactoryDefault.getMboxes().each(function() { alert(mbox.getName()) }; |
mboxFactoryDefault.getMboxes().length() |
|
mboxFactoryDefault.getPageId() |
|
mboxFactoryDefault.getPCId().getId() |
|
mboxFactoryDefault.getSessionId().getId() |
|
mboxFactories.get('default').getSessionId()​.forceId("1276011116668"); |
|
mboxFactories.get('default').getPCId()​.forceId("1276011116668"); |
|
mboxFactoryDefault.create() |
|
mboxFactoryDefault.disable() |
|
mboxFactoryDefault.enable() |
|
mboxFactoryDefault.get() |
|
mboxFactoryDefault.getCookieManager() |
|
mboxFactoryDefault.getDisableReason() |
|
mboxFactoryDefault.getEllapsedTime() |
|
mboxFactoryDefault.getEllapsedTimeUntil() |
|
mboxFactoryDefault.getMboxes() |
Restituisce un valore mboxList . |
mboxFactoryDefault.getSignaler() |
|
mboxFactoryDefault.getURLBuilder() |
|
mboxFactoryDefault.isAdmin() |
|
mboxFactoryDefault.isDomLoaded() |
|
mboxFactoryDefault.isEnabled() |
|
mboxFactoryDefault.isSupported() |
|
mboxFactoryDefault.limitTraffic() |
|
mboxFactoryDefault.update() |
|
mboxFactoryDefault.getCookieManager()​.getCookie("name")//!= null) { |
|
mboxFactoryDefault.getCookieManager()​.setCookie(_name,_value, _duration); |