Solved

error message in html design....

Posted on 2000-05-01
10
204 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 

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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
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 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…

627 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