Solved

error message in html design....

Posted on 2000-05-01
10
197 Views
Last Modified: 2013-12-03
I cut and pasted a webring html fragment for my page.  The page and all the links load fine, but I get the little error icon in the lower left side of the IE browser.  The details show 5 errors, all 5 are:

unterminated string constant.

What is it and how do I fix it??

thanx

franx
0
Comment
Question by:ftom24
  • 5
  • 4
10 Comments
 
LVL 1

Expert Comment

by:lambda
Comment Utility
Some where you might have missed out a " or a '. Or perhaps you have to escape another quote using a \. Not sure unless you show the code...

£.
0
 

Author Comment

by:ftom24
Comment Utility
Ok, my fault, here is the code:

<!-- Begin Pittsburgh Music Ring Fragment -->
<Center><p>
<table border=6>
   <tr>
      <td>
         <a href="http://members.tripod.com/~bjcollins/index.html"
target=_top
                    onMouseOver="window.status='Pittsburgh Music Ring';  
return true">
            <img border=0 src="pittring.gif">
         </a>
      </td>
      <td>
         <center>
            <b>
               <font size=2>
                  This
                  <a
href="http://members.tripod.com/~bjcollins/index.html" target=_top
                            onMouseOver="window.status='Pittsburgh
Music Ring';  return true">
                     Pittsburgh Music Ring
                  </a>
                  site is owned by:
                  <p>
                  <font size=3>
                  <i>
                     <a href="mailto:bdfngr@yahoo.com">
                         Pittsburgh Musicians Classified Ads
                     </a>
                  </i>
               </font>
               <p>
               Click for the
               <br>
               [
               <a
href="http://www.webring.org/cgi-bin/webring?id=81&ring=pitt&prev"
target=_top
                         onMouseOver="window.status='Visit The Previous
Site In The Pittsburgh Music Ring';  return true">
                  Prev Page
               </a>
               |
               <a
href="http://www.webring.org/cgi-bin/webring?id=81&ring=pitt&skip"
target=_top
                         onMouseOver="window.status='Skip A Site In The
Pittsburgh Music Ring';  return true">
                  Skip It
               </a>
               |
               <a
href="http://www.webring.org/cgi-bin/webring?id=81&ring=pitt&next5"
target=_top
                         onMouseOver="window.status='Check Out The Next
Five Sites In The Pittsburgh Music Ring';  return true">
                  Next 5
               </a>]<BR>
            [<a href="http://www.webring.org/cgi-bin/webring?ring=pitt&list"
target="_top">List Sites</a>]
            </b>
         </center>
      </td>
      <td>
         <a
href="http://www.webring.org/cgi-bin/webring?id=81&ring=pitt&next"
target=_top
                   onMouseOver="window.status='Visit The Next Site In
The Pittsburgh Music Ring';  return true">
            <img border=0 src="pittnext.gif">
         </a>
      </td>
   </tr>
</table>
<p>
<!-- End Pittsburgh Music Ring Fragment -->


0
 
LVL 1

Accepted Solution

by:
lambda earned 50 total points
Comment Utility
What browser are you using? IE5?

I am not sure whether this is the problem, but do check this:

This shld be in a single line with no line breaks in between, especially in the onMouseOver="....."

<a href="http://members.tripod.com/~bjcollins/index.html" target=_top onMouseOver="window.status='Pittsburgh Music Ring';  return true">

I don't know if it was the problem with the way u posted it here, but the linebreaks caused a problem for me in the foll places:

onMouseOver="window.status='Visit The Previous Site In The Pittsburgh Music Ring';  return true">

onMouseOver="window.status='Skip A Site In The Pittsburgh Music Ring';  return true">


etc.


________________________________________________________________________________________________________________________

Do check it out.
0
 

Author Comment

by:ftom24
Comment Utility
Tried it, but it did not work, I still come up with the:

line 137
char 27
error unterminated string constant

line 155
char 35
error unterminated string constant

line 162
char 35
error unterminated string constant

line 169
char 35
error unterminated string constant

line 181
char 39
error unterminated string constant

Any other ideas...??
0
 
LVL 1

Expert Comment

by:lambda
Comment Utility
The errors occur exactly at the lines I mentioned, right? I can't find any  problem other than the <a href ... being placed in multiple lines... Let's see.

0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:ftom24
Comment Utility
IT WORKED, THANK YOU SO MUCH SIR!!!!!!
0
 
LVL 1

Expert Comment

by:lambda
Comment Utility
It did?

:o)
0
 

Author Comment

by:ftom24
Comment Utility
YES IT DID!!!!  I HAD TO TAKE THE HTML AND USE A TEXT EDITOR TO RUN IT TOGETHER CORRECTLY AND CLOSE UP THOSE GAPS YOU SPOTTED.  ONCE THAT WAS DONE, I RE-CUT AND RE-PASTED BACK INTO MY WEBSITE, AND VIOLA!!!!

http://www.pghmusicads.cjb.net

thanx again!!
0
 
LVL 17

Expert Comment

by:rayt333
Comment Utility
ftom24
If the comments from lambda helped you solve this then you should accept his comment as the answer, there should be an option to "accept this comment as the answer" in the header for his comment.
Do that and grade it and this question can be closed out.
0
 
LVL 1

Expert Comment

by:lambda
Comment Utility
Thanks, rayt333.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now