Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The information you trace appears in the trace window when you execute the Framework in trace mode. The AVTRACE function is defined like this:

AVTRACE("Example1","Search

...

Button

...

Clicked","");


Here’s an example of an AJAX page tracing data when the user clicks a search button:

function BUTTON_Search() 


  /* Ignore if already busy */ 

...

 if (BUSY()) return;    

  /* Make busy now */ 

...

 SETBUSY(true);   

  /* Put surname and given name input by user onto virtual clipboard */ 
  PutA(SURNAME_Search.value,"SURNAME");  
PutA(GIVENAME_Search.value,"GIVENAME");  

  /* Trace the values that were put onto the clipboard */ 
  AVTRACE("BUTTON_Search","Surname value set",SURNAME_Search.value);  
 

...

AVTRACE("BUTTON_Search","Given Name value set",GIVENAME_Search.value); 

…etc…