Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

error message in html design....

Posted on 2000-05-01
10
Medium Priority
?
206 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 200 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
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…

885 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