• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

how to show contain of text box as a URL  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a requirement to store URL in text box and when user link on that URL, it needs to be open. Although this text box needs to add on click on one Add button dynamically.

Is there any way to store URL in text box. Currently I am able to add new Text box dynamically by clicking on Add button. Beside this I am also able to open appropriate URL if I click on Text box.

But "how to show contain of text box as a URL." same as we have in tag.




 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is impossible to make a textbox have a working url in it.

You can format the entire element it with CSS to have underlined text.

Eric
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sachin,

You can have the feel of URL existing in the text box with this piece of style below.
<textarea name="comments" cols="50" rows="10" style="text-decoration:underline;font-family:Arial;font-size:8pt;color:blue;">http://www.google.co.in/</textarea>;

But having a active URL inside textbox is not possible.


 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!