Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie Problem

Status
Not open for further replies.

TKinton

IS-IT--Management
Apr 16, 2002
38
GB
I am currently playing with a demo version of Code Charge Studio. I have the following code which should output the user assigned to a task in Bold blue, if it is the user logged on.

if tasks.Recordset.Fields("user_id_assign_to")= Session("UserID") then
tasks.user_id_assign_to.Value= &quot;<b><font color=&quot;&quot;blue&quot;&quot;>&quot;& tasks.user_id_assign_to.Value &&quot;</font></b>&quot;
End If

but what I get is the following <b><font color=&quot;blue&quot;>User Name</b></font>

Any ideas? I have tried sticking <html> tags in there and shuffling my quotes.

Thanks in advance
 
What is your problem?
tasks.user_id_assign_to.Value is not the value that you are expecting?
 
Problem is that it is outputing &quot;<b><font color=&quot;blue>User Name</b></font>&quot; in the field rather than User Name which it should be doing. [bigsmile]

 
if you do a view source of the page and all you see is :

b><font color=&quot;blue>User Name</b></font>

without any HTML Head or BODY tags then you will need to add these for the HTML formatting to work
 
The code is outputting

[IGNORE]&quot;& l t;b& g t;&l t;font color=& quot;blue& quot;& gt;User Name& lt;/font& gt;& lt;/b& gt;& nbsp&quot;[/IGNORE]

in the page source (without the spaces)

All html tags are valid
 
sorry TKinton, it looks like your page builder is making your input HTML into text so it wont get parsed by the browser as HTML.
 
Annoying as it was one of the inbuilt tutorials that supplied the code. Oh well never mind. Thanks for help

 
As sjravee states, it looks like the codecharger application replaces the < ,> and &quot; so it won't get into trouble later when it tries to display the values filled in.
Consider you fillout this in username:
<script>

everything after and including the username wil not be visible unless the < and > are replaced.

Tek tips does the same thing otherwize you would not even be able to read the part that comes after <script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top