CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Embedding HTML in Text Boxes

Print topic Send  topic

Author Message
mljonzs

Posts: 124
Posted: 01/14/2008, 11:29 AM

I have an editable Grid that displays summary information. For one of the editable text fields users would like to be able to input a URL and have it active so when clicked they can go to the linked page. I know how to set this up using labels in CCS but I am having problems getting it to work with the text box and/or text Area. Is this possible? How can I do this?

Thanks!
_________________
What does not begin WITH God, will end in failure!
View profile  Send private message
Edd


Posts: 547
Posted: 01/14/2008, 1:29 PM

Suggest you put an icon button next to the textbox and use javascript to open the link as you want to have the target as a new window.

Cheers - Ed
_________________
Accepting and instigating change are life's challenges.

http://www.syntech.com.au
View profile  Send private message
mljonzs

Posts: 124
Posted: 01/14/2008, 1:39 PM

Would the javascript be responsible for searching through the text to determine if there is an embedded url then?


_________________
What does not begin WITH God, will end in failure!
View profile  Send private message
Edd


Posts: 547
Posted: 01/14/2008, 4:02 PM

What I would do is use javascript to look get the value from the row's textbox, pass it to a url validator function, eg
http://www.webbedwonder.com/javascript/Validate-URL.asp

Then if it passes open up the new window instance.

Edd
_________________
Accepting and instigating change are life's challenges.

http://www.syntech.com.au
View profile  Send private message
mljonzs

Posts: 124
Posted: 01/15/2008, 7:45 AM

Thank you Edd, I appreciate the advice and the link to example!


_________________
What does not begin WITH God, will end in failure!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.