Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URL encoding

 
Naresh Rajan
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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??

Regards.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65227
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, not getting what you are asking.

But in general, the encodeURI() and encoreURIComponent() methods are used for client-side encoding.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic