codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Unterminated String Constant in innerhtml  JeniEck at 14:37 on Wednesday, January 07, 2004
 

I am trying to create the below using innerhtml.

However when I try to display this I get an 'Unterminated string constant' error. Does anyone know what the problem is?
Are there any rules anywhere for dealing with including calls to subroutines & scripts within innerhtml?

Many thanks

Jeni


fieldname.innerhtml = "<input name='recdate' type='text' readonly class='goBORDER' size='10' value='<%=(Date)%>'>" & _
"<a href=javascript:show_calendar('form1.recdate'); onMouseOver=window.status='Date Picker';return true; onMouseOut=window.status='';return true;><img src='../../include/show-calendar.gif' width=24 height=22 border=0 align='absmiddle'></a>"



© Copyright codetoad.com 2001-2005