Thursday, September 9, 2010

Javascript issues. I have a few javascrits, some are working some are not. help please.?

July 6, 2010 by  
Filed under software development schedule

I have the following code. It isn’t working at all. If I put in a tag I get my text saying I don’t have javascript enabled. However, I have other javascript in the page and it works fine. All scripts are built into the page, and are not being called from a separate file.

NON WORKING JAVASCRIPT

No JavaScript

WORKING JAVASCRIPT

Acronyms


By the way I’m using Google Chrome

Comments

2 Responses to “Javascript issues. I have a few javascrits, some are working some are not. help please.?”
  1. Ratchetr says:

    The Firefox error console gives this error:

    Error: unterminated string literal
    Source Code:
    document.write(“” + status[i] + “” + ” = ” +statusR[i] + ”

    You can’t split your quoted string across multiple lines like that.
    If you’re trying to split across multiple lines, do this:
    document.write(“” + status[i] + “” + ” = ” +statusR[i] + “
    ” );

  2. stratsandlespauls says:

    I don’t see how either one would work but try replacing this line with what I have.

    document.write(“” + status[i] + “” + ” = ” +statusR[i] + “
    “);
    or
    document.write(“” + Ac[i] + “” + ” = ” +Acronym[i] + “
    “);

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

Powered by Yahoo! Answers