CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Textbox with HTML link information

Print topic Send  topic

Author Message
Markie


Posts: 251
Posted: 08/13/2008, 8:44 AM

I want to make a textbox with information how to link to a photo, you can find an example of this on this page:

http://www.zoto.com/chocomama/other_sizes/#d20167b10d4606c7a7de2f70865428a9

just below the photo of the dog :-)

It's a box showing a complete HTML link (starting with <a href ... and ending with </a>)
I have tried to make such a box with a textarea form field and added the <a href etc. etc. behind

value=<a href ...

but, this simply doesn't work and several html code has been dissapeared when I open the webpage. What's the right way to make such a 'link information' box and how can I select all HTML codes simply by clicking in the box ?

Markie
_________________
The Netherlands, GMT+1
Tools: CCS 5.1, Windows 7, Navicat, Ultraedit
Local server: XAMPP with Apache, php and MySQL
Webserver: Windows 2008 IIS 7, php and MySQL
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/13/2008, 5:00 PM

The field in which you have this linkcode stored.
Put it on the Form,
Properties->Data Type = Memo
Properties->Format Tab->ReadOnly checked

Works for me.

Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/13/2008, 5:07 PM

Previous post depends on the link string already being in a database field.
If not, then
Put a textarea on the form, set it's properties as described.
The BeforeShow of that field would then be:
  
$Component->SetValue('<a href="http://www.zoto.com/site/#USR.chocomama::PAG.detail::d20167b10d4606c7a7de2f70865428a9"><img src="http://www.zoto.com/chocomama/img/500x375/d20167b10d4606c7a7de2f70865428a9.jpg"/></a>');  
notice I am using single quotes to enclose the linkcode as it contains double quotes we do not want to disturb.

Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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