Solved

document.write removing "\" I need for directory structure

Posted on 2006-07-05
3
222 Views
Last Modified: 2012-05-05
Need to add the path audit in front of the below expression but when it writes out it always path\auditClascompletionAudit.jsp and not path\audit\ClasCompletionAudit.jsp.  Have tried various ways but still cant get past the "\" being removed

Original statement....
      document.write("<A HREF=\"ClasCompletionAudit.jsp?server_name=" + serverName + "\" >");

Change I made do add audit before ClasCompletionAudit.jsp...
      
document.write("<A HREF=\"audit\ClasCompletionAudit.jsp?server_name=" + serverName + "\" >");

0
Comment
Question by:TheVeee
  • 2
3 Comments
 
LVL 5

Author Comment

by:TheVeee
ID: 17044226
Figured this out finally, had to put two \\ together...
0
 
LVL 14

Accepted Solution

by:
dfu23 earned 250 total points
ID: 17045651
The backslash "\" is Java's (and most C syntaxed languages) escape character ...

\n - new line
\t - tab

And like you did:

\\ - escaping the escape character
0
 
LVL 5

Author Comment

by:TheVeee
ID: 17050365
Thanks dfu23 for the info!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
What is Backup? Backup software creates one or more copies of the data on your digital devices in case your original data is lost or damaged. Different backup solutions protect different kinds of data and different combinations of devices. For e…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

705 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now