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>"








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: JavaSript Problem In Mac Safari Browser
•  Re: DHTML div positionning Problem
•  Convert script to NS6 compatible - Please Help!
•  Print .doc file from the website using System.Diagnostics.Process
•  Re: Fullscreen code
•  Re: iframe targeting
•  Excel n ASP
•  Remote Cart Shopping Cart
•  Mouse click coordinates on an ActiveX control?


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005