Changeset 1244 for trunk


Ignore:
Timestamp:
06/28/13 15:46:38 (11 years ago)
Author:
pharms
Message:
  • added support for preventing monitoring selected values of marked GUI elements
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-htmlmonitor-test/src/test/resources/test.html

    r1090 r1244  
    3737      </tr> 
    3838      <tr> 
     39        <td class="label">input type text (unmonitored)</td> 
     40        <td><input type="text" class=" bla djg autoquest-unmonitored bdf"/></td> 
     41      </tr> 
     42      <tr> 
    3943        <td class="label">text area</td> 
    4044        <td><textarea style="width:600px;height:120px;"></textarea></td> 
  • trunk/autoquest-htmlmonitor/src/main/js/autoquest-htmlmonitor.js

    r1082 r1244  
    524524    var eventObj = null; 
    525525    var tagName; 
     526    var unmonitored; 
    526527 
    527528    if (!autoquestDestination) { 
     
    573574    tagName = getTagName(node); 
    574575     
    575     if ("input_password" !== tagName) { 
     576    if (node.getAttribute && node.getAttribute("class")) { 
     577        unmonitored = node.getAttribute("class").indexOf("autoquest-unmonitored") >= 0; 
     578    } 
     579    else { 
     580        unmonitored = false; 
     581    } 
     582     
     583    if (!unmonitored && ("input_password" !== tagName)) { 
    576584        if ((eventType === "onkeypress") || 
    577585            (eventType === "onkeydown") || 
Note: See TracChangeset for help on using the changeset viewer.