Solved

error message in html design....

Posted on 2000-05-01
10
202 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
ID: 2766819
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
ID: 2766829
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
ID: 2766894
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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:ftom24
ID: 2766932
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
ID: 2766961
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
 

Author Comment

by:ftom24
ID: 2766974
IT WORKED, THANK YOU SO MUCH SIR!!!!!!
0
 
LVL 1

Expert Comment

by:lambda
ID: 2766982
It did?

:o)
0
 

Author Comment

by:ftom24
ID: 2766988
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
ID: 2815142
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
ID: 2828241
Thanks, rayt333.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

830 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