Home | History | Annotate | Download | only in resources
      1 {{header}}
      2 {{object 1 0}} <<
      3   /Type /Catalog
      4   /Pages 2 0 R
      5   /OpenAction 4 0 R
      6   /AcroForm 3 0 R
      7 >>
      8 endobj
      9 {{object 2 0}} <<
     10   /Type /Pages
     11   /Count 3
     12   /Kids [6 0 R 7 0 R 8 0 R ]
     13 >>
     14 endobj
     15 {{object 3 0}} <<
     16   /CO [11 0 R]
     17   /Fields [11 0 R 9 0 R]
     18 >>
     19 endobj
     20 {{object 4 0}} <<
     21   /Type /Action
     22   /S /JavaScript
     23   /JS 5 0 R
     24 >>
     25 endobj
     26 {{object 5 0}} <<>>
     27 stream
     28 var i = 0;
     29 function run()
     30 {
     31   t = this.getField('txtName1');
     32   t2 = this.getField('txtName2');
     33   t2.setFocus();
     34   t.setFocus();
     35   t.value='G';
     36 }
     37 
     38 function remove(){
     39   if (i==1){
     40     this.removeField('txtName2');
     41   }
     42   i++;
     43 }
     44 
     45 app.setTimeOut('run()',2000);
     46 endstream
     47 endobj
     48 {{object 6 0}} <<
     49   /Type /Page
     50   /Parent 2 0 R
     51   /MediaBox [0 0 612 792]
     52   /Resources <<>>
     53 >>
     54 endobj
     55 {{object 7 0}} <<
     56   /Type /Page
     57   /Parent 2 0 R
     58   /MediaBox [0 0 612 792]
     59   /Resources <<>>
     60 >>
     61 endobj
     62 {{object 8 0}} <<
     63   /Type /Page
     64   /Parent 2 0 R
     65   /MediaBox [0 0 612 792]
     66   /Resources <<>>
     67   /Annots [9 0 R 11 0 R]
     68 >>
     69 endobj
     70 {{object 9 0}} <<
     71   /FT /Tx
     72   /Type /Annot
     73   /Subtype /Widget
     74   /T (txtName2)
     75   /F 4
     76   /AP <</N 10 0 R>>
     77   /Rect [20 20 400 60]
     78 >>
     79 endobj
     80 {{object 10 0}} <<
     81   /Type /XObject
     82   /Subtype /Form
     83   /FormType 1
     84 >>
     85 endobj
     86 {{object 11 0}} <<
     87   /FT /Tx
     88   /Type /Annot
     89   /Subtype /Widget
     90   /T (txtName1)
     91   /F 4
     92   /AP <</N 12 0 R>>
     93   /Rect [200 200 400 260]
     94   /AA 13 0 R
     95 >>
     96 endobj
     97 {{object 12 0}} <<
     98   /Type /XObject
     99   /Subtype /Form
    100   /FormType 1
    101 >>
    102 endobj
    103 {{object 13 0}} <<
    104   /C 14 0 R
    105 >>
    106 endobj
    107 {{object 14 0}} <<
    108   /Type /Action
    109   /S /JavaScript
    110   /JS 15 0 R
    111 >>
    112 endobj
    113 {{object 15 0}} <<>>
    114 stream
    115 this.getField('txtName2').value='B';
    116 this.pageNum=1;
    117 remove();
    118 endstream
    119 endobj
    120 {{xref}}
    121 trailer <<
    122   /Size 16
    123   /Root 1 0 R
    124 >>
    125 {{startxref}}
    126 %%EOF
    127