Solved

html appears as text

Posted on 2011-02-12
3
190 Views
Last Modified: 2012-05-11
I have this in an html file:
<html>
<body>
<a href="ccs.jnlp">Start CCS</a>
</body>
</html>

When I dbl-clk on the file, it displays this text in the browser, not the link.
What is wrong?
0
Comment
Question by:allelopath
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
jppinto earned 500 total points
ID: 34879585
Try like this:

<html>
<body>
<a href="/ccs.jnlp">Start CCS</a>
</body>
</html>

jppinto

0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34879628
'jnlp' is not a known HTML format.  Does it have a MIME type associated with it so the browser knows what to do?  I found a reference to it http://download.oracle.com/javase/1.5.0/docs/guide/javaws/developersguide/syntax.html but since I don't know Java, I don't know if this is supposed to run in the browser or on the server.

Ok, I found a demo page http://www.oracle.com/technetwork/java/javase/demos-nojavascript-137100.html and when I click on the links in Firefox, a popup asks if I want to open the 'jnlp' with Java Web Start because that's in the Windows File Associations.  You can take look at those demos on that page and see what headers they're sending.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34879630
I see the solution was simpler than I thought.  good.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

895 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

15 Experts available now in Live!

Get 1:1 Help Now