Solved

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

Posted on 2006-07-05
3
229 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 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 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