Javascript issues. I have a few javascrits, some are working some are not. help please.?
Question by David P: Javascript issues. I have a few javascrits, some are working some are not. help please.?
I have the following code. It isn’t working at all. If I put in a
NON WORKING JAVASCRIPT
var status = new Array(); status[0] = "Draft"; status[1] = "Approved"; status[2] = "Pending Execution"; status[3] = "Pending Order Processing"; status[4] = "Accepted Order Processing"; status[5] = "Executed"; status[6] = "Pending Operations";
var statusR = new Array(); statusR[0] = "Until Quotexxxxx is approved. The ORD should be sumbitted for approval."; statusR[1] = "All approvals recieved and we can can send ORD to rep for signature."; statusR[2] = "Signed ORD is attached to ORDxxxxx in CMS. Liaison should execute now."; statusR[3] = "Liaison has executed the singed ORD and it has been sent to Order Processing for booking."; statusR[4] = "In CMS this is the final status for an ORD. Please be sure that all documents are added."; statusR[5] = "Final Status that contracts should be in. (MSA, Schedule, NDA, SLA's). However, this shouldn't relate to an ORD."; statusR[6] = "In all cases, the Pending Ops is waiting on the Facilities manager of the site to review.";
for(i=0;i
"); }
No JavaScript
WORKING JAVASCRIPT
Acronyms
var Ac = new Array(); Ac[0] = "CRM"; Ac[1] = "AIP"; Ac[2] = "SOW"; Ac[3] = "SOF"; Ac[4] = "SIP"; Ac[5] = "CMS"; Ac[6] = "HDC"; Ac[7] = "PXP"; Ac[8] = "VRRP"; Ac[9] = "BPID"; Ac[10] = "IDC"; Ac[11] = "HIW"; Ac[12] = "SaaS"; Ac[13] = "CSR"; Ac[14] = "EBC"; Ac[15] = "SDW"; Ac[16] = "ITO"; Ac[17] = "RFI"; Ac[18] = "RFP"; Ac[19] = "eVPL";
var Acronym = new Array(); Acronym[0] = "Insite"; Acronym[1] = "Account Installed Product"; Acronym[2] = "Statement of Work"; Acronym[3] = "Service Order Form"; Acronym[4] = "Site Installed Product"; Acronym[5] = "Contracts System"; Acronym[6] = "Hosting Dedicated Connectivity Form, (Used mainly for xcon's)"; Acronym[7] = "Pricing People"; Acronym[8] = "Backup Service"; Acronym[9] = "Business Partner ID"; Acronym[10] = "Data Center"; Acronym[11] = "Hosting Implementation Workbook"; Acronym[12] = "Software as a Service, (Example: Salesforce.com)"; Acronym[13] = "Customer Service Review, (We go see the customer to see how we are doing)"; Acronym[14] = "Executive Briefing Center, (We tell a customer who Savvis is and what we can provide)"; Acronym[15] = "Solution Development Workshop, (When a customer knows what they want and we tell them more about a specific product)"; Acronym[16] = "I.T. Outsourcing, (Customer wants to give Savvis all their I.T. work that they currently do and have Savvis manage it.)"; Acronym[17] = "Request for Information"; Acronym[18] = "Request for Proposal"; Acronym[19] = "Ethernet Virtual Private Line (This is a network product)";
for(i=0;i
"); }
By the way I’m using Google Chrome
Best answer:
Answer by Ratchetr
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] + “
” );
Add your own answer in the comments!

December 29, 2010 







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] + “
“);