?
Solved

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

Posted on 2006-07-05
3
Medium Priority
?
230 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
[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
  • 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 1000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

752 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