Changeset 1021 for trunk


Ignore:
Timestamp:
12/14/12 15:43:34 (12 years ago)
Author:
pharms
Message:
  • changed to add event handling only if document is loaded completely. This is less likely to destroy other java scripts of the monitored application as observed with hudson
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-htmlmonitor/src/main/js/autoquest-htmlmonitor.js

    r1020 r1021  
    245245function initEventHandling() { 
    246246    if (document.body) { 
    247         log("adding event handling attributes"); 
    248         determineDestination(); 
    249         autoquestGUIModel = addEventHandlingAndGetJSONRepresentation(document.documentElement, ""); 
    250          
    251247        if (document.readyState !== "complete") { 
    252248            // if the document is not loaded yet, try to add further event handling later 
     
    254250        } 
    255251        else if (!autoquestSendInterval) { 
     252            log("adding event handling attributes"); 
     253            determineDestination(); 
     254            autoquestGUIModel = 
     255                addEventHandlingAndGetJSONRepresentation(document.documentElement, ""); 
     256             
    256257            // recall sending data each 100 seconds to ensure, that for browser windows staying 
    257258            // open the data will be send, as well. 
Note: See TracChangeset for help on using the changeset viewer.