Solved

html appears as text

Posted on 2011-02-12
3
189 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 82

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 82

Expert Comment

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

707 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

12 Experts available now in Live!

Get 1:1 Help Now