Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2004, 09:58 AM
Registered User
 
Join Date: Feb 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default unterminated string constant

Can anyone help!! I am getting the unterminated string constant error coming up which I understand is missing ". however I can't see where its going wrong

<APPLET code="AcuteShifter.class" archive="AcuteShifter.jar"
           align="centre" width="163" height="136" name="labPanelApplet">
  The message that will be displayed in the applet.<PARAM name="Message" value="
         <list Section-Name='FAQ'>
         <h><link Link-Section-Name='seminars'><important>Free! </important>Office Seminars</link></h>
         <h><link Link-Section-Name='XBOX'><important>Free XBOX!</important></link></h>
         <h><link Link-Section-Name='vouchers'>Free Training Vouchers</link></h>
         <h><link Link-Section-Name='availability'>Late Availability</link></h>
         <h><link Link-Section-Name='OfficeXP'>Office XP Tips</link></h>
         <h><link Link-Section-Name='Accredit'>Accreditations</link></h>
         <h><link Link-Section-Name='partner'>Partners</link></h>

         </list>

         <item Section-Name='vouchers'>
         <h>Free Training Vouchers</h>
         <p>New additions to their Microsoft Software Assurance for Volume Licensing Programme</p>
         <p><link URL = '../solutions1/client_info.htm'>further details...</link></p>
         <p><link Link-Section-Name='FAQ'>Back to links...</link></p>
         </item>

         <item Section-Name='seminars'>
         <h>Seminars</h>
         <p>For further information click the appropriate link</p>
         <p><link URL = '../solutions1/seminars_xp.htm'>Office XP</link></p>
         <p><link URL = '../solutions1/seminars_2003.htm'>Office 2003</link></p>
         <p><link Link-Section-Name='FAQ'>Back to links...</link></p>
         </item>

         <item Section-Name='XBOX'>
         <h>Free XBOX</h>
         <p>To receive a free XBOX just book onto any of our 5-day Microsoft Technical Courses </p>
        <p><link URL = '../solutions1/offer.htm'>further details...</link></p>
         <p><link Link-Section-Name='FAQ'>Back to links...</link></p>
         </item>

         <item Section-Name='availability'>
         <h>Late Availability</h>
         <p>Late Available Desktop Application courses at discounted prices</p>
        <p><link URL = '../solutions1/late_availability.asp'>further details...</link></p>
         <p><link Link-Section-Name='FAQ'>Back to links...</link></p>
         </item>

         <item Section-Name='officeXP'>
         <h>Office XP Tips n Tricks</h>
         <p>Learn all the nifty shortcuts and tricks to Office XP</p>
         <p><link URL = '../solutions1/101 XP Tips and Tricks sample.htm'>further details...</link></p>
         <p><link Link-Section-Name='FAQ'>Back to links...</link></p>
         </item>

         <item Section-Name='Accredit'>
         <h>Accreditations</h>
         <p>For further details of our Accreditations</p>
         <p><link URL = '../solutions1/accreditations.htm'>click here...</link></p>
         <p><link Link-Section-Name='FAQ'>Back to links...</link></p>
         </item>

         <item Section-Name='partner'>
         <h>Partners</h>
         <p>View details of our trusted Partner Network</p>
         <p><link URL = '../solutions1/partners.htm'>click here...</link></p>
         <p><link Link-Section-Name='FAQ'>Back to links...</link></p>
         </item>



         ">The definition of all styles used by the message.<PARAM name="Style" value="
         <default
            Shift-In-Time = '400'
            Shift-Pause='-1'
            Background-Color='f8f8f8'
            Border-Type='full'
            Border-Width='1'
            Border-Color='0033CC'
            >
         <list
            Section-Header='true'
            Shift-In-Effect='shift-right'
            Background-Image='../solutions1/images/applet_background1.jpg'>
         <item
            Section-Header='true'
            Shift-In-Effect='shift-left'
            Background-Image='../solutions1/images/applet_background1.jpg'>

         <h
            Text-Color='000000'
            Padding-Top='2'
            Text-Size='11'>
         <p
            Line-Break='true'
            Text-Size='11'
            Padding-Top='5'>

         <important
             Text-Size='11'
            Text-Color='FF0000'
            Padding-Top='2'>


         <link
            Text-Color='000000'
            Text-Color-Over='00afea'
            Text-Color-Click = 'ff0000'>
         ">The following parameters are used to format the applet
           area while images and input files are loaded. (Optional).<PARAM name="Loading-Text" value="Loading images..."><PARAM name="Loading-Text-Color" value="333333"><PARAM name="Loading-Background-Color" value="f8f8f8">When you register AcuteApplets you will get Domain-Keys
           that removes the intro nag-screen.<param name="Domain-Keys" value="15924,16179">



        </APPLET>
 
Old February 3rd, 2005, 05:56 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I'm fairly sure it's illegal to have makup in an attribute, the "message" param in your case. You might try escaping the angle brackets (not sure how this will look in the forum):
Code:
<
=>
& l t ;

>
=>
& g t ;
There are no spaces between the entity characters.

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Unterminated string constant cnottingham Classic ASP Databases 8 October 28th, 2011 01:43 PM
Unterminated String Constant Apocolypse2005 Javascript 2 June 22nd, 2006 08:36 AM
Unterminated String Constant Ben Horne Javascript 7 October 21st, 2004 11:26 AM
Unterminated String Constant Ben Horne Javascript 2 April 9th, 2004 02:26 PM
unterminated string constant mariakovacs Classic ASP Basics 3 January 26th, 2004 03:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.