The moose likes HTML, CSS and JavaScript and the fly likes URL encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "URL encoding" Watch "URL encoding" New topic

URL encoding

Naresh Rajan
Ranch Hand

Joined: Sep 08, 2005
Posts: 45
I have an chat application which uses AJAX. In this, if I enter a URL in I will have to convert it into a link when it gets displayed in the display area. How do i do this using JavaScript??


Am not a pro and thats why am here!!!
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63533

Sorry, not getting what you are asking.

But in general, the encodeURI() and encoreURIComponent() methods are used for client-side encoding.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: URL encoding
It's not a secret anymore!