 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
girishmr
Joined: 07 Dec 2004 Posts: 3
|
Posted: Tue Dec 07, 2004 8:43 pm CLASS Attribute - value not getting displayed |
|
|
|
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
|
Posted: Tue Dec 07, 2004 9:25 pm |
|
|
|
|
What exactly are you try to accomplish? |
|
girishmr
Joined: 07 Dec 2004 Posts: 3
|
Posted: Wed Dec 08, 2004 8:45 pm CLASS |
|
|
|
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
|
Posted: Wed Dec 08, 2004 8:51 pm |
|
|
|
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
|
Posted: Thu Dec 09, 2004 4:20 am |
|
|
|
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
|
Posted: Thu Dec 09, 2004 4:45 am |
|
|
|
| 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 |
|
|
|
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
|
|
|
|
|
 |
|
|
|
|
|
|
|