Ignore:
Timestamp:
06/27/13 17:12:41 (11 years ago)
Author:
pharms
Message:
  • improved logging
  • corrected handling of onchange events
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorServlet.java

    r1228 r1233  
    182182                ("could not parse incoming data --> discarding it (" + e.toString() + ")"); 
    183183        } 
     184         
     185        // this must be done to prevent firefox from notifying the "element not found" error 
     186        response.setContentType("text/plain"); 
     187        response.getOutputStream().write(' '); 
    184188    } 
    185189 
     
    223227                else { 
    224228                    messageListener.handleMessage(clientInfos, guiStructure, events); 
     229                    Console.println 
     230                        ("handled message of " + clientInfos.getClientId() + " (" + 
     231                         clientInfos.getWebAppId() + "; " + events.length + " events)"); 
    225232                } 
    226233            } 
     
    516523        } 
    517524        else if ("onchange".equals(eventType)) { 
    518             // "input_password" don't have a selectedValue 
    519             if (domPath.contains("input_password")) { 
    520                 result = 
    521                     (coordinates == null) && (key == null) && 
    522                     (scrollPosition == null) && (selectedValue == null); 
    523             } 
    524             else { 
    525                 result = 
    526                     (coordinates == null) && (key == null) && 
    527                     (scrollPosition == null) && (selectedValue != null); 
    528             } 
    529  
     525            // onchange events may have and may also not have a selected value. In the second 
     526            // case it means, that null was selected 
     527            result = (coordinates == null) && (key == null) && (scrollPosition == null); 
    530528        } 
    531529        else if ("onkeypress".equals(eventType) || "onkeydown".equals(eventType) || 
Note: See TracChangeset for help on using the changeset viewer.