HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
CLASS Attribute - value not getting displayed
Post new topic   Reply to topic    HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
girishmr



Joined: 07 Dec 2004
Posts: 3

PostPosted: Tue Dec 07, 2004 8:43 pm     CLASS Attribute - value not getting displayed Reply with quote

Hi

I am facing a problem with the class attribute.
I have a code as follows

Code:
<STYLE>
   p.PEM$1  {position:absolute;top:144;left:180;}
</STYLE>

<FORM>
     <PRE>
         <p class="PEM$1">          .00 </p>
     </PRE>
</FORM>


The field PEM$1 should display its value .00 but it is not. When I remove the " $ " from the word PEM$1 in both the places, the value gets displayed. I checked if $ is an entity reference and it is not. What is the reason for the $ not allowing the display ??

Please help
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Tue Dec 07, 2004 9:25 pm     Reply with quote

What exactly are you try to accomplish?
girishmr



Joined: 07 Dec 2004
Posts: 3

PostPosted: Wed Dec 08, 2004 8:45 pm     CLASS Reply with quote

Hi

This is a part of the code which gets generated while converting CICS BMS Macros to HTML page. In the macros, there would be certain protected fields which are having default values (0 when numeric field) which gets displayed on the mainframe screen.
Same here. PEM$1 is the said field with .00 as its initial value. The value actually gets populated in its corresponding program and then gets displayed.

In HTML code too, PEM$1 serves as a field as well as a class for which the attribute is set in p.PEM$1.
Since "$" is embedded in this field name, the values are not getting displayed. Any Idea why ?? If the same is changed to any other character, the value gets displayed !!!!

Hope you got it clear !!!

Regards
Girish
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Wed Dec 08, 2004 8:51 pm     Reply with quote

I am not familiar with CICS BMS Macros, but when I use your code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<style type="text/css">
   p.PEM$1  {position:absolute;top:144;left:180;}
</style>
<body>
<pre>
     <pre>
         <p class="PEM$1">          .00 </p>
     </pre>
</pre>
</body>

</html>

I get the display: .00
And when I use:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<style type="text/css">
   p.PEM1  {position:absolute;top:144;left:180;}
</style>
<body>
<pre>
     <pre>
         <p class="PEM1">          .00 </p>
     </pre>
</pre>
</body>

</html>

I get the display: .00

I do not see a field named PEM$1 - you only have a class named PEM$1.
girishmr



Joined: 07 Dec 2004
Posts: 3

PostPosted: Thu Dec 09, 2004 4:20 am     Reply with quote

Hi

I see the display now. Honestly it was not coming all these days ( AS it happens to all programmers )

When the $ in PEM$1 is replaced by say, "A". the content that is getting displayed will be at a different position. Is it something to do with charset ?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Thu Dec 09, 2004 4:45 am     Reply with quote

Could be with the DOCTYPE. If you do not express the appropriate DOCTYPE there might be one problem. The character set could pose other issues as well. Both tell the browser how to render the site
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial