|
How do I determine the CGIDEV2 version I have
installed?
Thanks! Mary
¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥« Mary Kern Director of Information
Services University of Toledo Foundation 2801 W Bancroft St Mail Stop
319 Toledo, OH 43606 Voice: (419) 530-5611 (800) 640-0147 Fax:
419-530-2895 Email: [EMAIL PROTECTED]
Cheers to a new year and another chance for us to get it
right.
-- Oprah Winfrey ¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«
Matt,
Back in May of last year there was a bug reported in the
Easy400 under the subject "Garbage in HTML Output."
I posted a fix in
message number 5623. You can find it at http://groups.yahoo.com/group/Easy400Group/message/5623
It's
likely that this fix is what you need.
Before applying this fix, it would
be a good idea to make sure you have the latest CGIDEV2 version, 2005-03-10
20:21:21, and to back up member XXXWRKHTML.
Because IBM has taken control
of CGIDEV2, Giovanni and I are unable to apply fixes or distribute
updates.
Maybe IBM will soon release an updated CGIDEV2 containing this
fix, other fixes, and perhaps some enhancements.
Mel Rothman Mel
Rothman, Inc.
[EMAIL PROTECTED]
wrote:
D bytesToUse s
10i 0
bytesToUse = %len(%trim(allqrydta)); updHtmlVar2('openquery':%addr(allqrydta):bytesToUse);
Mel -
I modified the code according to your advice (see
above). Unfortunately, I am still having the same problem. I
checked and allqrydta is NOT varying. Any other ideas? Is there a
problem with the code above?
Thanks, Matt
This could be related to whether field allqrydta is defined as varying or not.
If
varying, the first two bytes at %addr(allqrydta) contains the current length
which is returned by the %len built-in function. The data would start at
%addr(allqrydta) + 2. It is also for a varying field to inadvertently set
%len(allqrydta) to the wrong value or to mess up the contents with pointer
operations.
If allqrydta is not varying, the first two bytes contain
data, not the length. In this case %len returns the size of the field in
bytes.
If allqrydta is varying, the call to updhtmlvar2 should be: updHtmlVar2('openquery':%addr(allqrydta)+2:%len(allqrydta)); // note that 2 is added to the address.
Otherwise, you
need to compute how many bytes of allqrydta are to be used (e.g. bytesToUse) and use that in the call to
UpdHtmlVar2: updHtmlVar2('openquery':%addr(allqrydta):bytesToUse); // note that nothing is added to the address
Mel
Rothman Mel Rothman, Inc.
[EMAIL PROTECTED] wrote:
I have having a very strange HTML
variable problem. I have some HTML code that looks like the
following:
<textarea name="openquery" id="openquery" rows="10"
cols="80">/%openquery%/</textarea>
When I update the variable
"openquery", it seems to overwrite the closing textarea tag. By the way,
we use IFS files to store our HTML source. Here is the code in the
RPG:
updHtmlVar2('openquery':%addr(allqrydta):%len(allqrydta));
I am using updHtmlVar2
because allqrydta can be over 2700 characters long.
To keep the program from
overwriting </textrarea>, I had to add 13 spaces following the closing
'/' of the HTML variable. That seemed to fix the issue; however, I am
not satisfied. I have not had this sort of problem in the past.
Everything was working fine earlier this morning and it started doing
what was described without any major changes. All I did was modify the
HTML of a different section in the same document.
I would like to know why this is
occurring because we have several applications programmed using CGIDEV2 and I
would hate to think they could all start experiencing similar problems.
Does anyone have any idea of what could cause the problem
above?
Thanks, Matt
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- RE: [Easy400Group] HTML Variable Problem Kern, Mary T
-