wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes how to show contain of text box as a URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to show contain of text box as a URL" Watch "how to show contain of text box as a URL" New topic
Author

how to show contain of text box as a URL

Sachin Telang
Greenhorn

Joined: Nov 02, 2007
Posts: 19
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.





Thanks<br />Sachin Telang<br />IBM Websphere Portal Application Developer Certified, Exam -399.
Sun Certified Java Programmer 1.5
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
Rashmi Anand
Greenhorn

Joined: Feb 10, 2009
Posts: 11
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.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to show contain of text box as a URL
 
Similar Threads
JTable problem
How to create dynamic add text box using JSF
GWT - Capture values of dynamically created components
How to add new text boxes and check boxes dynamically when clicking on button in JSF
Problem in onclick radio and dynamically populated table