Hi

  Seems like this is related to javascript.  I have a spellchecker which works 
fine with struts with the following code.

 
        <a href="javascript:doSpell(this,
                                        'forms[0].language',
                                        'forms[0].elements[\'<%="comment" + 
studentGradeInd + "_" + gradingMetaInd%>\']',
                                        true,
                                        '<%= acct.getWebUserNo() %>',
                                        '');">
                <img src="xde/spellcheck.gif" border="0">
        </a> 

When I put the same piece of code (pasted below, not exactly same..) with in a 
verbatim tab in a JSF page I get javascript error "Object expected" at line 1 
char 1.

<f:verbatim>
        <a href="javascript:doSpell( this, 
'forms[0].elements[\'frmClassNotes:language\']',
                                              
'forms[0].elements[\'frmClassNotes:classNote\']', true, '132', '');" >
                Spell Check
        </a>
</f:verbatim>

Any ideas why?

Thanks in advance.
-Srikanth Madarapu

Reply via email to